Affirm · Schema

CheckoutRequest

Request body for creating or updating an Affirm checkout session, containing all order and customer information required to initiate the Affirm financing flow.

FintechBNPLLendingPaymentsConsumer

Properties

Name Type Description
merchant object
shipping object
billing object
store object
items array Array of item objects representing the products being purchased in this checkout.
discounts object A map of discount codes to discount objects. Each key is the discount code and each value contains the discount amount and name.
metadata object Arbitrary key-value metadata for merchant tracking. Values must be strings.
order_id string The merchant's internal order identifier. Stored for future reference and reconciliation.
currency string Three-letter ISO 4217 currency code in uppercase. Supported values are USD, CAD, and GBP.
financing_program string Financing program code to apply to this checkout, if applicable. Determines the available loan terms presented to the customer.
shipping_amount integer The total shipping amount in cents.
tax_amount integer The total tax amount in cents.
total integer The total amount of the checkout in cents (USD, CAD) or pence (GBP).
checkout_expiration string ISO 8601 timestamp specifying when the checkout session expires.
expiration_time string Time-to-live deadline by which the customer must confirm the checkout.
View JSON Schema on GitHub

JSON Schema

checkout-checkout-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/affirm/refs/heads/main/json-schema/checkout-checkout-request-schema.json",
  "title": "CheckoutRequest",
  "description": "Request body for creating or updating an Affirm checkout session, containing all order and customer information required to initiate the Affirm financing flow.",
  "type": "object",
  "properties": {
    "merchant": {
      "$ref": "#/components/schemas/MerchantObject"
    },
    "shipping": {
      "$ref": "#/components/schemas/ContactObject"
    },
    "billing": {
      "$ref": "#/components/schemas/ContactObject"
    },
    "store": {
      "$ref": "#/components/schemas/StoreObject"
    },
    "items": {
      "type": "array",
      "description": "Array of item objects representing the products being purchased in this checkout.",
      "items": {
        "$ref": "#/components/schemas/ItemObject"
      },
      "example": [
        "example_value"
      ]
    },
    "discounts": {
      "type": "object",
      "description": "A map of discount codes to discount objects. Each key is the discount code and each value contains the discount amount and name.",
      "additionalProperties": {
        "$ref": "#/components/schemas/DiscountObject"
      },
      "example": {}
    },
    "metadata": {
      "type": "object",
      "description": "Arbitrary key-value metadata for merchant tracking. Values must be strings.",
      "additionalProperties": {
        "type": "string"
      },
      "example": {}
    },
    "order_id": {
      "type": "string",
      "description": "The merchant's internal order identifier. Stored for future reference and reconciliation.",
      "example": "500123"
    },
    "currency": {
      "type": "string",
      "description": "Three-letter ISO 4217 currency code in uppercase. Supported values are USD, CAD, and GBP.",
      "enum": [
        "USD",
        "CAD",
        "GBP"
      ],
      "example": "USD"
    },
    "financing_program": {
      "type": "string",
      "description": "Financing program code to apply to this checkout, if applicable. Determines the available loan terms presented to the customer.",
      "example": "example_value"
    },
    "shipping_amount": {
      "type": "integer",
      "description": "The total shipping amount in cents.",
      "minimum": 0,
      "example": 1
    },
    "tax_amount": {
      "type": "integer",
      "description": "The total tax amount in cents.",
      "minimum": 0,
      "example": 1
    },
    "total": {
      "type": "integer",
      "description": "The total amount of the checkout in cents (USD, CAD) or pence (GBP).",
      "minimum": 0,
      "example": 1
    },
    "checkout_expiration": {
      "type": "string",
      "format": "date-time",
      "description": "ISO 8601 timestamp specifying when the checkout session expires.",
      "example": "2025-03-15T14:30:00Z"
    },
    "expiration_time": {
      "type": "string",
      "format": "date-time",
      "description": "Time-to-live deadline by which the customer must confirm the checkout.",
      "example": "2025-03-15T14:30:00Z"
    }
  },
  "required": [
    "merchant",
    "items",
    "currency",
    "total"
  ]
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/checkout-checkout-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.