/v1/orders/{order_id}/rollback

Request for payment cancellation.

Available for payments in any status. Disables further payment for the order and, if the payment has been made, refunds the full amount to the customer. If the request is successful, the payment status changes to FAILED.

Request

POST

https://pay.yandex.ru/api/merchant/v1/orders/{order_id}/rollback

Production

POST

https://sandbox.pay.yandex.ru/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 response to /order/create.

Max length: 2048

Responses

200 OK

Body

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

Name

Description

code

Type: number

Default: 200

data

Type: object

status

Type: string

Default: success

Enum: success