Skip to main content
PATCH
/
v1
/
cards
/
{cardId}
Update card
curl --request PATCH \
  --url https://api.ledger.so/v1/cards/{cardId} \
  --header 'Api-Key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "status": "active",
  "limits": {
    "perAuth": 123,
    "perDay": 123,
    "perMonth": 123
  }
}
'
{
  "id": "<string>",
  "agentId": "<string>",
  "userId": "<string>",
  "type": "single",
  "purpose": "<string>",
  "status": "active",
  "last4": "<string>",
  "createdAt": 123,
  "credentialExposure": "never",
  "expirationMonth": "<string>",
  "expirationYear": "<string>",
  "limits": {
    "perAuth": 123,
    "perDay": 123,
    "perMonth": 123
  },
  "merchantHint": "<string>",
  "ttlDays": 123
}

Authorizations

Api-Key
string
header
required

API key for authentication. Get your key from the Dashboard.

Path Parameters

cardId
string
required

The card ID

Body

application/json
status
enum<string>

Set to frozen to freeze, active to unfreeze

Available options:
active,
frozen
limits
object

Response

Card updated

id
string
required
agentId
string
required
userId
string
required
type
enum<string>
required

Card type

Available options:
single,
multi
purpose
string
required
status
enum<string>
required
Available options:
active,
frozen,
closed,
notActivated
last4
string
required

Last 4 digits of card number

createdAt
integer
required
credentialExposure
enum<string>
Available options:
never,
extensionOnly,
rawPan
expirationMonth
string
expirationYear
string
limits
object
merchantHint
string
ttlDays
integer