Endpoint:
Method: POST
Type: RAW
URL: {{API_BASE_URL}}/cards/withdraw
Request Parameter
| Parameter | Required | Type | Description | |
|---|---|---|---|---|
| type | Y | enum, [custom_amount, all_amount, reserved_amount] | custom_amount: Custom withdrawal amount, all_amount: Withdraw entire card balance, reserved_amount: Reserved amount, withdraw non-reserved portion |
|
| amount | N | number | when type is reserved_amount,amount was required | |
| items | Y | object | items | |
| card_number | Y | string | card number | |
| amount | N | number | when type is custom_amount,amount was required | |
| request_id | N | string | number | Optional,A unique request ID specified by the client. Requests with the same request_id will be ignored. This allows requests to be replayed if client is unsure of the outcome, e.g. due to network issues, system failures, etc. Note: Can be non-UUID as long as it is unique between requests |
{
"amount": 10,
"type": "custom_amount",
"request_id": "xxxxx",
"items": [
{
"card_number": "5329594889465733",
"amount": 10
}
]
}
Response
Status:200 ok