Session withdrawals

Cancel session withdrawal

Use this method to cancel a confirmed session withdrawal until an administrator decides on it. The cancelation is an intent: the held funds are returned once the payment system ends the session or the request; a withdrawal the payment system approves anyway is processed as usual. A repeated cancelation answers 409. Show the button by `sessionWithdrawal.cancelable` of the transaction.

POST
/api/v2/my/session-withdrawals/cancel

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Header Parameters

accept-language?string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/v2/my/session-withdrawals/cancel" \  -H "accept-language: ja" \  -H "Content-Type: application/json" \  -d '{    "operationId": 1024  }'
Empty
{  "error": {    "message": "Bad Request",    "details": [      {        "issue": "The selected value is invalid.",        "field": "parameter",        "name": "email_domain_not_found"      }    ]  }}
{  "error": {    "message": "Unauthorized"  }}
{  "errors": [    {      "name": "Error name",      "description": "Description",      "args": {}    }  ]}
{  "errors": [    {      "name": "Error name",      "description": "Description",      "args": {}    }  ]}
{  "error": {    "message": "Access from this country is restricted",    "details": {      "ip": "203.0.113.42",      "country": "RU"    }  }}
{  "errors": [    {      "name": "Error name",      "description": "Description",      "args": {}    }  ]}