POST Respond to Catering Quote
Records the customer's answer to a quote: approve it, decline it, or ask the catering team for changes.
Send status as 3 approved, 4 declined or 5 changes requested. A customer may not set 2 sent — that is the brand's action, and attempting it returns 400.
Only certain moves are allowed. From sent a customer can go to approved, declined or changes requested; from declined or changes requested the brand can send a revised quote, which puts it back to sent. Approved and expired are final. An invalid move returns 422 with "The selected status change from X to Y is invalid."
Use message to pass a note to the team, and reason when declining.
Approving here records the decision and notifies the brand, but it does not create the order on its own. The order is created when the quote's basket is checked out — see Catering Quotes.
Path Parameters
- Type: integercustomer
_account _id requiredCustomer account ID. Must match the signed-in customer.
- Type: integerquote
_id requiredQuote ID
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
- Type: 3 or 4 or 5enumstatusrequired
3approved,4declined,5changes requested - Type: string | nullmessagemax length:2000
- Type: string | nullreasonmax length:1000
Responses
- application/json
- 400
A customer tried to set the status to
sent. - 401
Missing or invalid customer token, or
customer_account_iddoes not match the signed-in customer. - 404
No such quote for this customer.
- 422
The status is not allowed, or the transition from the quote's current status is invalid.
curl https://api-public-demo.menu.app/api/customer-accounts/88211/quotes/1421/statuses \
--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' \
--data '{
"status": 3,
"message": "Approved — please proceed."
}'
{
"status": "OK",
"code": 200,
"data": {
"quote_status": {
"id": 5512,
"quote_id": 1421,
"status": 3,
"changed_by": "CUSTOMER",
"properties": {
"message": "Approved — please proceed."
}
}
}
}