---
updatedAt: 2025-11-13T14:13:08.000Z
agentTools:
  siteIndex: https://docs.affirm.com/llms.txt
  projectIndex: https://docs.affirm.com/developers/llms.txt
---

# Read Card

Returns the card details.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Cards API",
    "version": "2.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"
            }
          }
        ],
        "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": {
              "city": {
                "description": "The name of the city.",
                "example": "San Francisco",
                "type": "string"
              },
              "state": {
                "description": "The 2-letter postal abbreviation or full name of the U.S. state.",
                "example": "CA",
                "type": "string"
              },
              "zipcode": {
                "description": "The 5-digit postal code of the address.",
                "example": "94107",
                "type": "string"
              },
              "line1": {
                "description": "A U.S. street address.",
                "example": "123 Example Street",
                "type": "string"
              },
              "line2": {
                "description": "The apartment number, floor or suite that complements the street address.",
                "example": "Apt 123",
                "type": "string"
              }
            }
          },
          "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"
          },
          "charge_ari": {
            "description": "A unique identifier representing the charge.",
            "example": "0959-060P",
            "type": "string"
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```

# Sibling pages

* [Cancel Card](https://docs.affirm.com/developers/reference/cancel_card.md)
* [Finalize a card](https://docs.affirm.com/developers/reference/finalize_card.md)