Withdraw from Card
POST/api/v2/cards/:id/withdraw
Withdraws a specified amount of money from a bank card.
Request
Path Parameters
id The card id to withdraw fromrequired
- application/json
Body
required
amount Amountrequired
The amount of money to withdraw from the card.
note Noterequired
A note or description for the withdrawal transaction.
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
code Code
Default value: 200
detail Detail
Default value: ok
{
"code": 200,
"detail": "ok"
}
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...