Getting a list of order rejection reasons
Query example
Infocode | ||
---|---|---|
| ||
GET https://delivery.ucs.ru/orders/api/v1/rejectionReasons |
Response example
Code Block | ||
---|---|---|
| ||
{ "result": [ { "idID": "a762a6da-2379-4fa2-9a04-7f5ca82b39d4", "reason": "Test order", "type": "simple", "isPossibleDelete": true }, { "idID": "4239979e-093c-43c0-8351-6918364c5c94", "reason": "Duplicate", "type": "simple", "isPossibleDelete": true }, { "idID": "37631981-7d11-4e36-8465-dd1887d888cc", "reason": "Rejected by guest", "type": "simple", "isPossibleDelete": true }, { "idID": "7c224784-7382-4a47-8e5a-849d8529a34a", "reason": "Guest is not available / has not opened the door", "type": "simple", "isPossibleDelete": true }, { "idID": "bb8502fa-dfcc-4196-a306-08ec526abc91", "reason": "Dish is not available", "type": "simple", "isPossibleDelete": true }, { "idID": "73f8e0eb-06d5-489f-8258-42a941bede14", "reason": "Rejected by restaurant", "type": "simple", "isPossibleDelete": false }, { "idID": "5ff37e88-61ef-46ff-9f6c-4c9579e74210", "reason": "Other", "type": "text" "isPossibleDelete": true } ] } |
...
Info | ||
---|---|---|
| ||
PUT https://delivery.ucs.ru/orders/api/v1/orders/{orderIdorderID}/reject Content-Type: application/json |
Query example
Code Block | ||
---|---|---|
| ||
{ "rejectionReasonIdrejectionReasonID": "7ca12506-0c20-4417-88b2-2a5b0d237770", "rejectionReasonText": "Rejected by guest" } |
Query example (if order rejection reasons are turned off)
Code Block | ||
---|---|---|
| ||
{ "rejectionReasonIdrejectionReasonID": "", "rejectionReasonText": "" } |
Parameters description
Parameter | Description | |
---|---|---|
rejectionReasonIdrejectionReasonID | string | Order rejection reason idID |
rejectionReasonText | string | Text of order rejection reason |
The order id ID (orderIdorderID) is is used as an identifying IDentifying code.
The query may also contain the restaurant id ID (restaurantIdrestaurantID) as related information.
Find the errors description in this article.