/v1/devices/pairPair a driver's device with a pairing code
Request body · object
codestring, requireddevice_namestringListed for staff; up to 100 characters.
{
"code": "string",
"device_name": "string"
}Response 200 · object
Done.
tokenstring, requiredThe device session; it lasts until the device is unpaired.
driverDriver, requiredidinteger (int64)first_namestring, requiredlast_namestring, requiredphonestring
{
"token": "string",
"driver": {
"id": 0,
"first_name": "string",
"last_name": "string",
"phone": "string"
}
}Response 400 · Error
The request is not valid.
errorobject, requiredcodestring, requiredA short machine-readable name, such as not_found.
messagestring, requiredWhat went wrong, for people.
request_idstring, requiredMatches the X-Request-ID response header.
{
"error": {
"code": "string",
"message": "string"
},
"request_id": "string"
}Response 401 · Error
No tenant key, or no valid session.
Fields as in Pair a driver's device with a pairing code
Response 404 · Error
Not found, or not yours.
Fields as in Pair a driver's device with a pairing code
Response 409 · Error
It clashes with what is stored.
Fields as in Pair a driver's device with a pairing code
Response 429 · Error
Too many attempts; see Retry-After.
Fields as in Pair a driver's device with a pairing code
Response 500 · Error
Something failed on our side.
Fields as in Pair a driver's device with a pairing code