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

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

  • Quote ID

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
  • 3 approved, 4 declined, 5 changes requested

Responses

  • application/json
  • A customer tried to set the status to sent.

  • Missing or invalid customer token, or customer_account_id does not match the signed-in customer.

  • No such quote for this customer.

  • The status is not allowed, or the transition from the quote's current status is invalid.

Request Example for post/customer-accounts/{customer_account_id}/quotes/{quote_id}/statuses
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."
      }
    }
  }
}