---
title: "Update card details"
method: PATCH
path: "/issuing/cards/{cardId}"
tags: ["Cards"]
---

# Update card details

`PATCH /issuing/cards/{cardId}`

## Request

- Base URL: `https://{prefix}.api.sandbox.checkout.com`
- URL: `https://{prefix}.api.sandbox.checkout.com/issuing/cards/{cardId}`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `string` scopes: `issuing:card-management-write`
- TypeScript: <https://skmtc.dev/checkout/apis/checkout-com-api-reference/docs/issuing/cards/:cardId/patch.ts> (a function with typed inputs; its response is checked against the schema)

Update the details of an issued card.

Only the fields for which you provide values will be updated. If you pass `null`, the existing value will be removed.

## Path parameters

- `cardId` string, required: The card's unique identifier.

## Request body

- UpdateCardRequest: The card fields to update.
  - `status` 'active': Set the card's status to `active` to activate an `inactive` or `suspended` card. If you submit this field, you cannot specify a `scheduled_activation_date`. If you do, you receive a `scheduled_activation_date_conflicts_with_activation` error.
  - `reference` string: Your reference.
  - `metadata` IssuingCardMetadata: User's metadata.
    - `udf1` string: User defined field 1
    - `udf2` string: User defined field 2
    - `udf3` string: User defined field 3
    - `udf4` string: User defined field 4
    - `udf5` string: User defined field 5
  - `expiry_month` integer: The card's expiration month.
  - `expiry_year` integer: The card's expiration year.
  - `scheduled_revocation_date` string, date: The card will be revoked at midnight UTC on the date specified. - Format: `YYYY-MM-DD`
  - `revocation_date` string, date: Deprecated. Use `scheduled_revocation_date` instead. Date scheduling the card's automatic revocation. - Supported format: `YYYY-MM-DD` (time is midnight UTC)
  - `scheduled_activation_date` string: Date scheduling the card's first activation. Only applies to the initial activation of a card. Two formats are supported: - Date only: `YYYY-MM-DD` (treated as midnight UTC) - Date with round hour: `YYYY-MM-DDTHH:mmZ` (UTC) or `YYYY-MM-DDTHH:mm±HH:mm` (offset) Only round hours are allowed when a time is provided (`HH:00`). The value must be at least the next round hour after the request time.

## Response `200`

Card updated successfully

- UpdateCardResponse
  - `id` string, required: The card's unique identifier.
  - `client_id` string, required: The client's unique identifier.
  - `entity_id` string, required: The entity's unique identifier.
  - `cardholder_id` string, required: The cardholder's unique identifier.
  - `card_product_id` string, required: The card product's unique identifier.
  - `user_id` string: The Dashboard user's unique identifier.
  - `last_four` string, required: The last four digits of the card number, also known as the PAN.
  - `expiry_month` integer, required: The card's expiration month.
  - `expiry_year` integer, required: The card's expiration year.
  - `status` 'active' | 'inactive' | 'revoked' | 'suspended', required: The card's status, which determines whether it can approve incoming authorizations: - `inactive`: the default state - authorizations will be declined until the card is activated - `active`: authorization requests can be approved - `suspended`: incoming authorization requests will be declined - the card can be reactivated to accept new authorizations - `revoked`: incoming authorization requests will be permanently declined - the card cannot be reactivated from this state
  - `display_name` string: The name to display on the card.
  - `type` string, required: The card type.
  - `billing_currency` string, ISO4217, required: The issuing currency, as a three-letter <a href="https://docs.checkout.com/docs/currency-codes" target="blank">ISO currency code</a>.
  - `issuing_country` string, required: The issuing country, as a two-letter <a href="https://www.checkout.com/docs/resources/codes/country-codes" target="blank" >ISO country code</a>.
  - `reference` string: Your reference.
  - `metadata` IssuingCardMetadata: User's metadata.
    - `udf1` string: User defined field 1
    - `udf2` string: User defined field 2
    - `udf3` string: User defined field 3
    - `udf4` string: User defined field 4
    - `udf5` string: User defined field 5
  - `scheduled_revocation_date` string, date: The card will be revoked at midnight UTC on the date specified. - Format: `YYYY-MM-DD`
  - `revocation_date` string, date: Deprecated. Use `scheduled_revocation_date` instead. Date scheduling the card's automatic revocation. - Supported format: `YYYY-MM-DD` (time is midnight UTC)
  - `scheduled_activation_date` string: Date scheduling the card's first activation. Only applies to the initial activation of a card. Two formats are supported: - Date only: `YYYY-MM-DD` (treated as midnight UTC) - Date with round hour: `YYYY-MM-DDTHH:mmZ` (UTC) or `YYYY-MM-DDTHH:mm±HH:mm` (offset) Only round hours are allowed when a time is provided (`HH:00`). The value must be at least the next round hour after the request time.
  - `last_activated_on` string, date-time, nullable: The date and time the card was last activated. If the card has never been activated, this field returns `null`.
  - `root_card_id` string: When a card is renewed, the unique identifier of the first card in the renewal history.
  - `parent_card_id` string: When a card is renewed, the unique identifier of the previous card in the renewal history.
  - `scheme` 'mastercard' | 'visa', required: the card scheme.
  - `created_date` string, UTC
  - `last_modified_date` string, UTC, required
  - `_links` CardLinks: The links related to the card.
    - `self` IssuingLink, required
      - `href` string, required: The link URL.
      - `actions` string[], required: The HTTP Methods that can be performed on the link.
      - `types` string[], required: The Content Types for the link to the resource
    - `credentials` IssuingLink, required
      - `href` string, required: The link URL.
      - `actions` string[], required: The HTTP Methods that can be performed on the link.
      - `types` string[], required: The Content Types for the link to the resource
    - `revoke` IssuingLink, required
      - `href` string, required: The link URL.
      - `actions` string[], required: The HTTP Methods that can be performed on the link.
      - `types` string[], required: The Content Types for the link to the resource
    - `controls` IssuingLink, required
      - `href` string, required: The link URL.
      - `actions` string[], required: The HTTP Methods that can be performed on the link.
      - `types` string[], required: The Content Types for the link to the resource

## Other responses

- `401`: Unauthorized
- `404`: Card not found
- `422`: Invalid data was sent.
- `500`: Internal Server Error

---

[API](https://skmtc.dev/checkout/apis/checkout-com-api-reference.md) - [All operations](https://skmtc.dev/checkout/apis/checkout-com-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/checkout/apis/checkout-com-api-reference/revisions/0f1abdb1c3e9?raw)
