curl https://api.thanxsandbox.com/users/:id/check_in_code \
-X GET \
-H "Content-Type: application/json" \
-H "Accept-Version: v4.0" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${token}" \
-H "X-ClientId: ${client_id}"
{
"check_in_code": "1234s6",
}
Users
Get Check In Code
This endpoint will return the check-in code for a user. The check-in code can be matched to a location.
GET
/
users
/
:id
/
check_in_code
curl https://api.thanxsandbox.com/users/:id/check_in_code \
-X GET \
-H "Content-Type: application/json" \
-H "Accept-Version: v4.0" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${token}" \
-H "X-ClientId: ${client_id}"
{
"check_in_code": "1234s6",
}
The check-in code can use specific formats for different merchants/locations.
If no location or merchant is provided, the check-in code provided will be automatically matched to the merchant account to which the user belongs to.
Please review proper request headers here.
Parameters
string
Retrieve a check-in code for this location
Response
string
The check-in code
curl https://api.thanxsandbox.com/users/:id/check_in_code \
-X GET \
-H "Content-Type: application/json" \
-H "Accept-Version: v4.0" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${token}" \
-H "X-ClientId: ${client_id}"
{
"check_in_code": "1234s6",
}
{
"check_in_code": "LSTR|1234s6||LEND"
}