Withdraw Funds from Cards
POST/api/v1/cards/withdrawal
Facilitates the withdrawal of funds from the balance of one or more cards to the wallet balance. This endpoint requires a list of card IDs and the withdrawal amount for each card. Users can perform batch withdrawals by specifying multiple cards. Each withdrawal transaction is processed individually, and the endpoint returns a list of results, including the updated card data or an error message for each card.
Request
- application/json
Body
required
cards string[]required
A list of unique card identifiers for which the operation is to be performed.
amount Amountrequired
The specified amount for the financial operation. This value will be used to adjust the balance of each card listed.
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
anyOf
[
{}
]
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- Array [
- MOD1
- MOD2
- ]
- ]
detail object[]
loc object[]required
anyOf
string
integer
msg Messagerequired
type Error Typerequired
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
Loading...