Skip to main content
PATCH
/
card
/
{cardId}
cURL
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
        }
      }
    }
  }
}

Authorizations

x-api-key
string
header
required

Path Parameters

cardId
string
required

Body

application/json
name
string
status
enum<string>
Available options:
active,
paused,
inactive,
closed
spendingConstraint
object

Spending constraint of the card

Response

OK

id
string
required

Id of the card

last4
string
required

Last 4 digits of the card number

name
string
required

Name of the card holder

expiryMonth
string
required

Expiry month of the card

expiryYear
string
required

Expiry year of the card

status
enum<string>
required

Status of the card

Available options:
active,
paused,
inactive,
closed
createdAt
string<date-time>
required

Creation date of the card

spendingConstraint
object

Spending constraint of the card