Cards
Update Card
Overview
Customers
Funding Sources
Cards
Accounts
Authorizations
Transactions
Cards
Update Card
Update details for a specific card.
PUT
/
cards
/
{id}
curl --request PUT \
--url https://api.sandbox.sudo.cards/cards/{id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"fundingSourceId": "<string>",
"status": "active",
"metadata": "<string>",
"spendingControls": {
"allowedCategories": [
"[]"
],
"blockedCategories": [
"[]"
],
"channels": {
"atm": true,
"pos": true,
"web": true,
"mobile": true
},
"spendingLimits": [
{
"amount": 123,
"interval": "daily"
}
]
},
"cancellationReason": "lost",
"creditAccountId": "<string>"
}'
"{}"
Authorizations
Path Parameters
The _id
of the card to update.
Body
application/json
Response
200
application/json
200
The response is of type object
.
curl --request PUT \
--url https://api.sandbox.sudo.cards/cards/{id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"fundingSourceId": "<string>",
"status": "active",
"metadata": "<string>",
"spendingControls": {
"allowedCategories": [
"[]"
],
"blockedCategories": [
"[]"
],
"channels": {
"atm": true,
"pos": true,
"web": true,
"mobile": true
},
"spendingLimits": [
{
"amount": 123,
"interval": "daily"
}
]
},
"cancellationReason": "lost",
"creditAccountId": "<string>"
}'
"{}"