| Requires any of the roles: | Admin, TenantAdmin, AccessAdmin, Receptionist |
| GET | /reservation/userreservation/getqrcode | Gets a QR code for a user reservation in Base64 format (done by a business user). |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| UserReservationId | query | string | Yes | User reservation Id (GUID) |
| ThingId | query | string | No | Thing Id (GUID) |
| KeyLockCodeTypeEnum | query | KeyLockCodeTypeEnum | No | Key code type (access, command)Allowable Values
|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Version | form | integer | No | Api version |
| Name | Value |
|---|---|
| NotSet | 0 |
| AccessCode | 1 |
| ProgramAccessCode | 2 |
| ThirdPartyLockId | 3 |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Data | form | Dictionary<string, string> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ResponseStatus | form | ResponseStatus | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /reservation/userreservation/getqrcode HTTP/1.1 Host: api.4spaces.io Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"data":{"String":"String"},"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}