Update Card Details
PATCH/api/v2/cards/:id
Retrieve details for a bank card based on the provided card ID.
Request
Path Parameters
id The card id to update details forrequired
- application/json
Body
required
status BankCardStatusrequired
Possible values: [ACTIVE, FROZEN, BLOCKED]
An enumeration.
cardName Cardname
limits object
single object
amount Amount
The limit amount.
daily object
amount Amount
The limit amount.
monthly object
amount Amount
The limit amount.
autoTopUp object
thresholdAmount Thresholdamountrequired
The balance threshold to trigger an automatic top-up.
topUpAmount Topupamountrequired
The amount to be automatically topped up when the threshold is reached.
isFavorite Isfavoriterequired
wallet_id uuid
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...