Update Card
Overview
This route will allow users to update their Card. Users can only update whether the card is the default card for external cards and the credit limit and daily spend limit for P cards.
Resource Access
POST https://<hostname>/buyer/v1/buyer/<buyerID>/updateCard
Arguments
The requested criteria can be a combination of one or more of the following fields:
Field | Additional Information |
---|---|
type | Mandatory |
cardID | Mandatory |
isDefault | Optional |
newCreditLimit | Optional |
newDailySpendLimit | Optional |
Example Request
{
"cardId": "844f0b1e10b5369626387be2eb7d4325048c2c382006ea63b1668b8162b0f1b0",
"type": "ExternalCard",
"isDefault": true
}
{
"cardId": "844f0b1e10b5369626387be2eb7d4325048c2c382006ea63b1668b8162b0f1b0",
"type": "Lodged / P-Card",
"newCreditLimit": 4000,
"newDailySpendLimit": 100
}
Example Response
{
"card": {
"id": "844f0b1e10b5369626387be2eb7d4325048c2c382006ea63b1668b8162b0f1b0",
"address": {
"city": "Los angeles",
"state": "CA",
"country": "USA",
"street1": "Address 1234",
"postalCode": "12345"
},
"cardHolderName": "John doe new 3",
"expirationString": "02/2025",
"last4": "****0009",
"isDefault": true
}
}
{
"card": {
"id": "844f0b1e10b5369626387be2eb7d4325048c2c382006ea63b1668b8162b0f1b0",
"address": {
"city": "Los angeles",
"state": "CA",
"country": "USA",
"street1": "Address 1234",
"postalCode": "12345"
},
"cardHolderName": "John doe new 3",
"expirationString": "02/2025",
"last4": "****0009",
"isDefault": true
}
}
Updated 3 days ago