POST Submit Feedback

​

Submits feedback, either about a specific order or about the brand in general.

About an order — send the confirmation_code from the feedback request the customer was sent, with type_id 2 and a feedback_rate out of five. The customer does not have to be signed in; the code identifies them.

About the brand — send type_id 1 with feedback_body, from a signed-in customer.

Where the brand runs an external loyalty platform, feedback is forwarded to it rather than stored here. A brand can switch either kind of feedback off, in which case the submission is rejected.

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
  • 1 for general feedback about the brand, 2 for feedback about an order.

  • The code from the feedback request sent to the customer. Required for order feedback.

  • The customer's comment. Required for general feedback.

  • Rating out of five. Required for order feedback.

  • Whether the customer also rated the app in the store.

Responses

  • application/json
  • The brand does not accept this kind of feedback, the confirmation code is unknown, or a required field for the chosen type is missing.

  • General feedback was sent without a signed-in customer.

Request Example for post/feedback
curl https://api-public-demo.menu.app/api/feedback \
  --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 '{
  "type_id": 2,
  "confirmation_code": "7f3c1a9e42",
  "feedback_rate": 5
}'
{
  "status": "OK",
  "code": 200
}