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: 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: integertype
_id required1for general feedback about the brand,2for feedback about an order. - Type: stringconfirmation
_code The code from the feedback request sent to the customer. Required for order feedback.
- Type: stringfeedback
_body max length:2000The customer's comment. Required for general feedback.
- Type: integerfeedback
_rate min:1max:5Rating out of five. Required for order feedback.
- Type: booleanis
_app _rated Whether the customer also rated the app in the store.
Responses
- application/json
- 400
The brand does not accept this kind of feedback, the confirmation code is unknown, or a required field for the chosen type is missing.
- 401
General feedback was sent without a signed-in customer.
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
}