PUT Customer Device Info
Registers the device's push notification token against the customer's current session, so the brand can send them order status notifications. Call it after sign-in and whenever the platform issues a new token.
The token is stored on the active application session rather than the account, so a customer signed in on two devices keeps a token for each.
Nothing is returned beyond the status envelope.
Path Parameters
- Type: integercustomer
_account _id requiredCustomer account ID. Must match the signed-in customer.
Headers
- Type: stringAcceptrequired
Type of content accepted by the API (application/json in most cases)
- Type: stringApplicationrequired
Application key for specific client app
- Type: stringContent
- Type requiredContent-Type header
- Type: stringA
P I - V E R S I O N requiredVersion of the API to be used
- Type: stringAuthorization
Authorization header
- Type: stringX
- Request - I D requiredUnique request identifier
Body
- Properties: 1Type: objectdevice
_info required
Responses
- application/json
- 400
The customer has no active application session.
- 401
Missing or invalid token, or the path account is not the signed-in account.
- 422
device_info.device_tokenis missing or longer than 231 characters.
curl https://api-public-demo.menu.app/api/customer-accounts/9031/device-info \
--request PUT \
--header 'Accept: application/json' \
--header 'Application: application-key' \
--header 'Content-Type: application/json' \
--header 'API-VERSION: ' \
--header 'X-Request-ID: c10b4a70-6274-490d-80a0-03e7bb826937' \
--data '{
"device_info": {
"device_token": "fMEp3Nq8T0qOaWvZx1yK9d"
}
}'
{
"status": "OK",
"code": 200
}