/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 /orders request when creating the order.

Max length: 2048

Example: ``

Responses

200 OK

Body

application/json
{
  "code": 200,
  "data": {},
  "status": "success"
}

Name

Description

code

Type: unknown

Default: 200

data

Type: object

Example
{}

status

Type: string

Default: success

Const: success