Respond to a customer feedback for an order with the option to send a text and/or promo code.
Note
This method is only available by subscription.
Request
POST
/feedback-answer
Body
application/json
{
"feedback_id": 1234567,
"text": "string",
"order_nr": "string",
"promo": 10
}
|
Name |
Description |
|
feedback_id* |
Type: string the ID of the feedback to be answered Example: |
|
text* |
Type: string The text of the partner's response to the feedback |
|
order_nr |
Type: string End-to-end order identifier on the Yandex side in the format DDDDDD-DDDDDDDD |
|
promo |
Type: integer Promo code with a percentage discount Enum: |
Responses
200 OK
Successful request, response to feedback sent to the customer. No response body..
204 No Content
Successful request, but the review is not actual. In this case, the client will not receive a response, and it will also not be possible to issue a promo code to the client.
400 Bad Request
Invalid feedback ID format. No response body.
401 Unauthorized
Authorization failed - the token expired or was not passed in the request. A retry will be made.
Body
application/json
{
"code": "invalid-token",
"message": "Bad token"
}
|
Name |
Description |
|
code |
Type: string Reason for authorization failure Example: |
|
message |
Type: string Text description of the reason for authorization failure Example: |
403 Forbidden
The restaurant does not have a subscription. No response body.
No longer supported, please use an alternative and newer version.