POST Customer Identification Code

​

Generates a short numeric code the customer can read out or show at the counter so staff can find their account — for loyalty accrual on an in-store order, for example.

Each call replaces any code the customer already had, so only the most recent one works.

The code is short-lived, but the response does not include its expiry, so display it with your own countdown or simply regenerate on demand.

Send Content-Type: application/json even though there is no request body.

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

  • User's Device UUID

Body

application/json

No request body.

Responses

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

Request Example for post/customer-accounts/{customer_account_id}/identification-codes
curl https://api-public-demo.menu.app/api/customer-accounts/9031/identification-codes \
  --request POST \
  --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' \
  --header 'Device-UUID: 1234'
{
  "status": "OK",
  "code": 200,
  "data": {
    "identification_code": {
      "code": "046213"
    }
  }
}