Skip to Content
Session withdrawals

Get session withdrawal action

Use this method to learn what is needed from the client now. Poll it every 2-3 seconds while the status is `pending` and request it again on the `session_withdrawal_updated` WebSocket event. `ready` gives the action (a redirect to the payment system or requisites), `completed` means nothing is needed from the client and the withdrawal is processed (its outcome is shown in the operations history), `failed` gives the error. The action exists for the stage before the session of the payment system ends: once the session is over, the withdrawal is followed in the operations history and this method answers 404.

GET
/api/v2/my/session-withdrawals/{id}/action

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Session withdrawal identifier.

Formatuuid

Header Parameters

accept-language?string

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v2/my/session-withdrawals/01928f4e-7b3a-7c1d-9e2f-3a4b5c6d7e8f/action" \  -H "accept-language: ja"
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "sourceCurrencyAmount": "string",  "sourceCurrencyAlphaCode": "string",  "destinationCurrencyAmount": "string",  "destinationCurrencyAlphaCode": "string",  "method": {    "id": 0,    "caption": "string"  },  "updatedAt": "2019-08-24T14:15:22Z",  "status": "pending",  "action": null,  "error": null,  "steps": [    {      "name": "confirmation",      "status": "pending"    }  ]}