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

  • Customer account ID. Must match the signed-in customer.

Headers

  • Type of content accepted by the API (application/json in most cases)

  • Application key for specific client app

  • Content-Type header

  • Version of the API to be used

  • Authorization header

  • Unique request identifier

Body

required
application/json
  • Properties: 1

Responses

  • application/json
  • The customer has no active application session.

  • Missing or invalid token, or the path account is not the signed-in account.

  • device_info.device_token is missing or longer than 231 characters.

Request Example for put/customer-accounts/{customer_account_id}/device-info
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
}