Exchange legacy Checkin credential
Exchanges a legacy Checkin credential for a paired device and a device bearer token returned exactly once. Each installation gets its own device.
POST
/v1/hq/device_legacy_exchangesRequest Body
application/json
legacy_token*string
Legacy Checkin credential stored on the device.
company_id*string
installation_id*string
Stable identifier generated once per app installation. Repeating an exchange with the same value returns a new token for the same device.
terminal_id?string
Terminal selected on the device. Ignored when it is not available for check-in.
name?string
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://api.noona.is/v1/hq/device_legacy_exchanges" \ -H "Content-Type: application/json" \ -d '{ "legacy_token": "string", "company_id": "string", "installation_id": "string" }'{
"device": {
"id": "string",
"company": "string",
"name": "string",
"type": "checkin",
"status": "unpaired",
"configuration": {
"terminal": "string",
"success_message": "string",
"success_message_translations": {
"is": "King Accounting tenging",
"fr": "Connexion King Accounting"
},
"languages": [
"en"
],
"default_language": "en",
"brand_color": "string"
},
"pairing": {
"expires_at": "2019-08-24T14:15:22Z",
"consumed_at": "2019-08-24T14:15:22Z",
"attempts_remaining": 0
},
"masked_token": "string",
"last_active": "2019-08-24T14:15:22Z",
"revoked_at": "2019-08-24T14:15:22Z",
"created_by": "string",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
},
"token": "string"
}Empty
{
"message": "Customer onboarding error."
}{
"message": "Customer onboarding error."
}Empty
{
"message": "Customer onboarding error."
}