/v1/orders/{order_id}/rollback
Request to cancel an order.
Available for payments in any status.
Disables further payment for the order and, if the payment has already been made,
fully refunds the customer.
If successful, the payment status changes to FAILED.
Request
POST
https://pay.yandex.uz/api/merchant/v1/orders/{order_id}/rollback
Production
POST
https://sandbox.pay.yandex.uz/api/merchant/v1/orders/{order_id}/rollback
Sandbox
Path parameters
|
Name |
Description |
|
order_id |
Type: string Order ID on the merchant's side that was passed in the Max length: Example: `` |
Responses
200 OK
Body
application/json
{
"code": 200,
"data": {},
"status": "success"
}
|
Name |
Description |
|
code |
Type: unknown Default: |
|
data |
Type: object Example
|
|
status |
Type: string Default: Const: |