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
- 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
- Type: stringDevice
- U U I D requiredUser's Device UUID
Body
No request body.
Responses
- application/json
- 401
Missing or invalid token, or the path account is not the signed-in account.
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"
}
}
}