APG PayAPG Paydocs

Card issuer

Update card

PATCH/cards/{cardId}

Update a digital card's mutable attributes.

4 actionsCardUpdateActivateCardUpdateAmendCardUpdateCancelCardUpdateGenerateSynonym

Permissions

Required permission
creditCards:update

Requires the `update` action on `creditCards` for the supplied runtime context

Path parameters

cardIdstring
required

Request body

This body is a typed union. Pick a variant to see its fields and a matching example.

Discriminated by type
type = "CardUpdateActivate"

This variant has no additional fields.

curl -X PATCH https://api.tst.au.apgpay.dev/cards/{cardId} \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "type": "CardUpdateActivate"
}'

Responses

The response is a tagged shape: type is always "CardUpdateRspAttributes". Switch on it; subtypes can be added, and a client that already reads it will not break.

Discriminated by type
type = "CardUpdateRspAttributes"

The resource as it stands after the change.

Example
{
  "type": "CardUpdateRspAttributes",
  "updated": {
    "type": "CardViewAttributes",
    "cardId": "dcard_9f2Kd8QpLzXw",
    "cardType": "Virtual",
    "status": "Active",
    "card": {
      "type": "CardRedactedAttributes",
      "last4": "4242",
      "bin": "424242",
      "brand": "Visa",
      "expiryMonth": 6,
      "expiryYear": 2029
    },
    "cardUser": {
      "type": "CardUserAttributes",
      "name": "Ada Lovelace",
      "emailAddress": "ada@example.com",
      "phoneNumber": "+61400000000"
    },
    "amounts": {
      "type": "CardAmountsAttributes",
      "currency": "AUD",
      "cardLimit": 500000,
      "transactionLimit": 500000,
      "available": 1250
    },
    "validFrom": "2026-08-19T04:21:07Z",
    "validTo": "2026-08-19T04:21:07Z",
    "usage": "Single",
    "currencies": [
      "AUD"
    ],
    "synonyms": [
      "string"
    ],
    "creator": "string",
    "providerIdentifier": "string",
    "metadata": {
      "yourKey": {}
    },
    "createdAt": "2026-08-19T04:21:07Z"
  }
}

Error responses