GET Customer Order Count
Returns how many orders the customer has placed — useful for "you have ordered 12 times" style screens, or for deciding whether to show first-order onboarding.
Orders still being initialised, failed orders and superseded revisions are excluded. Where order archiving is enabled the count includes archived orders.
Note the response key is singular, order_count, even though the path is plural.
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: 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
Responses
- application/json
- 401
Missing or invalid token, or the path account is not the signed-in account.
Request Example for get/customer-accounts/{customer_account_id}/orders-count
curl https://api-public-demo.menu.app/api/customer-accounts/9031/orders-count \
--header 'Accept: application/json' \
--header 'Application: application-key' \
--header 'API-VERSION: ' \
--header 'X-Request-ID: c10b4a70-6274-490d-80a0-03e7bb826937'
{
"status": "OK",
"code": 200,
"data": {
"order_count": 12
}
}