POST
/
v1
/
pay
/
withdrawals
/
complete
curl --request POST \
  --url https://api.onsi.com/v1/pay/withdrawals/complete \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '{
  "withdrawalIntentId": "wi_<id>"
}'
{
  "message": "<string>"
}

At this point you should’ve presented the withdrawal intent to the user, once they’ve confirmed the amount, fees, and destination bank account, you can proceed to complete the withdrawal.

Once this request is complete the fund transfer will be initiated to the destination bank account, and any applicable fees will be deducted from the user’s balance.

Relevant Error Codes

The endpoint-specific error codes to pay attention to are:

Authorizations

X-API-KEY
string
header
required

Headers

x-idempotency-key
string

Unique key to ensure idempotency of the request

Body

application/json

Body

The body is of type object.

Response

201 - application/json

201

The response is of type object.