curl --request PATCH \
--url https://api.covenance.com/card/{cardId} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "<string>",
"status": "active",
"spendingConstraint": {
"spendingRule": {
"utilizationLimit": {
"preset": "daily",
"timezone": "<string>",
"limitAmount": {
"amountCents": 123
},
"startDate": "<string>"
},
"transactionSizeLimit": {
"minimum": {
"amountCents": 123
},
"maximum": {
"amountCents": 123
}
}
}
}
}
'{
"id": "<string>",
"last4": "<string>",
"name": "<string>",
"expiryMonth": "<string>",
"expiryYear": "<string>",
"status": "active",
"createdAt": "2023-11-07T05:31:56Z",
"spendingConstraint": {
"spendingRule": {
"utilizationLimit": {
"preset": "daily",
"timezone": "<string>",
"limitAmount": {
"amountCents": 123
},
"startDate": "<string>"
},
"transactionSizeLimit": {
"minimum": {
"amountCents": 123
},
"maximum": {
"amountCents": 123
}
}
}
}
}Update a card
curl --request PATCH \
--url https://api.covenance.com/card/{cardId} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "<string>",
"status": "active",
"spendingConstraint": {
"spendingRule": {
"utilizationLimit": {
"preset": "daily",
"timezone": "<string>",
"limitAmount": {
"amountCents": 123
},
"startDate": "<string>"
},
"transactionSizeLimit": {
"minimum": {
"amountCents": 123
},
"maximum": {
"amountCents": 123
}
}
}
}
}
'{
"id": "<string>",
"last4": "<string>",
"name": "<string>",
"expiryMonth": "<string>",
"expiryYear": "<string>",
"status": "active",
"createdAt": "2023-11-07T05:31:56Z",
"spendingConstraint": {
"spendingRule": {
"utilizationLimit": {
"preset": "daily",
"timezone": "<string>",
"limitAmount": {
"amountCents": 123
},
"startDate": "<string>"
},
"transactionSizeLimit": {
"minimum": {
"amountCents": 123
},
"maximum": {
"amountCents": 123
}
}
}
}
}active, paused, inactive, closed Spending constraint of the card
Show child attributes
Show child attributes
Show child attributes
daily, weekly, monthly, yearly, collective Show child attributes
OK
Id of the card
Last 4 digits of the card number
Name of the card holder
Expiry month of the card
Expiry year of the card
Status of the card
active, paused, inactive, closed Creation date of the card
Spending constraint of the card
Show child attributes
Show child attributes
Show child attributes
daily, weekly, monthly, yearly, collective Show child attributes