---
updatedAt: 2025-11-13T14:40:59.000Z
agentTools:
  siteIndex: https://docs.affirm.com/llms.txt
  projectIndex: https://docs.affirm.com/developers/v1.0-Global-Integration/llms.txt
---

# Read Card

Returns the card details.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Cards API",
    "version": "3.0"
  },
  "security": [
    {
      "basicAuth": []
    }
  ],
  "paths": {
    "/cards/{checkout_id}": {
      "get": {
        "tags": [
          "Cards API"
        ],
        "operationId": "read_card",
        "summary": "Read Card",
        "description": "Returns the card details.",
        "parameters": [
          {
            "in": "path",
            "name": "checkout_id",
            "description": "A `checkout_token` that represents the purchase and customer information on purchase (e.g tokenization).",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "country-code",
            "description": "Required param to identify the country in which Affirm is used and uses an \"alpha-3\" three-letter country code. Supported countries are the United States (`USA`), Canada (`CAN`), and the United Kingdom (`GBR`).",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "HTTP 200 OK",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ReadCard"
                }
              }
            }
          },
          "400": {
            "description": "HTTP 400 Bad Request",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBadRequest"
                }
              }
            }
          },
          "401": {
            "description": "HTTP 401 Unauthorized",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorUnauthorized"
                }
              }
            }
          },
          "404": {
            "description": "HTTP 404 Not Found",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorNotFound"
                }
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.global.affirm.com/api/v2"
    },
    {
      "url": "https://api.global.sandbox.affirm.com/api/v2"
    }
  ],
  "components": {
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic"
      }
    },
    "schemas": {
      "ErrorBadRequest": {
        "properties": {
          "message": {
            "description": "The error message.",
            "example": "Bad Request",
            "type": "string"
          },
          "status_code": {
            "description": "The HTTP status code.",
            "example": 400,
            "type": "integer"
          },
          "type": {
            "description": "The error type.",
            "example": "BAD_REQUEST",
            "type": "string"
          },
          "code": {
            "description": "The error type.",
            "example": "BAD_REQUEST",
            "type": "string"
          }
        }
      },
      "ErrorNotFound": {
        "properties": {
          "message": {
            "description": "The error message.",
            "example": "Not Found",
            "type": "string"
          },
          "status_code": {
            "description": "The HTTP status code.",
            "example": 404,
            "type": "integer"
          },
          "type": {
            "description": "The error type.",
            "example": "NOT_FOUND",
            "type": "string"
          },
          "code": {
            "description": "The error type.",
            "example": "NOT_FOUND",
            "type": "string"
          },
          "token": {
            "description": "The error response embedded in a JWT token",
            "type": "string"
          }
        },
        "type": "object"
      },
      "ErrorUnauthorized": {
        "properties": {
          "message": {
            "description": "The error message.",
            "example": "Unauthorized",
            "type": "string"
          },
          "status_code": {
            "description": "The HTTP status code.",
            "example": 401,
            "type": "integer"
          },
          "type": {
            "description": "The error type.",
            "example": "UNAUTHORIZED",
            "type": "string"
          },
          "code": {
            "description": "The error type.",
            "example": "UNAUTHORIZED",
            "type": "string"
          },
          "token": {
            "description": "The error response embedded in a JWT token",
            "type": "string"
          }
        },
        "type": "object"
      },
      "ReadCard": {
        "type": "object",
        "properties": {
          "billing_address": {
            "type": "object",
            "properties": {
              "street1": {
                "type": "string",
                "description": "Address line 1 (e.g., street, PO Box, or company name).",
                "example": "123 Example Street"
              },
              "street2": {
                "type": "string",
                "description": "Address line 2 (The apartment #, floor or suite that complements the street address).",
                "example": "Apt 123"
              },
              "city": {
                "type": "string",
                "description": "City, district, suburb, town, or village. "
              },
              "region1_code": {
                "type": "string",
                "description": "The 2-letter postal abbreviation or two character state\n  code.",
                "example": "BC",
                "maxLength": 2,
                "minLength": 2
              },
              "postal_code": {
                "type": "string",
                "description": "The postal code or zipcode of the address.",
                "example": "V7X 3S9"
              },
              "country-code": {
                "type": "string",
                "description": "An \"alpha-3\" three-letter country code.",
                "example": "CAN",
                "maxLength": 3,
                "minLength": 3
              }
            }
          },
          "checkout_token": {
            "description": "The virtual card token.",
            "example": "FA0UUFRGOND84S7C",
            "type": "string"
          },
          "created": {
            "description": "Timestamp of when the virtual card was generated.",
            "example": "2020-01-24T20:00:50.712Z",
            "type": "string"
          },
          "cvv": {
            "description": "The virtual card security code.",
            "example": 123,
            "type": "string"
          },
          "number": {
            "description": "The virtual card number. In sandbox, we can set up this number to your payment gateway for testing.",
            "example": 4111111111111111,
            "type": "string"
          },
          "callback_id": {
            "description": "Can be ignored, for Affirm internal use.",
            "example": "5473686c-1dc4-4153-b9a7-abfccc00ef3a",
            "type": "string"
          },
          "cardholder_name": {
            "description": "The customer's full name",
            "example": "John Doe",
            "type": "string"
          },
          "expiration": {
            "description": "A four-digit expiration date in MMYY format.",
            "example": 121,
            "type": "string"
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true,
    "samples-enabled": true
  }
}
```

# Sibling pages

* [The card object](https://docs.affirm.com/developers/v1.0-Global-Integration/reference/the-card-object.md)
* [The billing object](https://docs.affirm.com/developers/v1.0-Global-Integration/reference/the-billing-object.md)
* [Name object](https://docs.affirm.com/developers/v1.0-Global-Integration/reference/name-object.md)
* [Address object](https://docs.affirm.com/developers/v1.0-Global-Integration/reference/address-object.md)
* [The response object](https://docs.affirm.com/developers/v1.0-Global-Integration/reference/the-response-object.md)
* [Cancel Card](https://docs.affirm.com/developers/v1.0-Global-Integration/reference/cancel_card.md)
* [Finalize a card](https://docs.affirm.com/developers/v1.0-Global-Integration/reference/finalize_card.md)