{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/exodus-com/json-schema/exodus-com-checkout-schema.json",
  "title": "Checkout",
  "x-generated": "2026-11-16",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/exodus-com-openapi.json#/components/schemas/Checkout",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "object": {
      "type": "string",
      "enum": [
        "checkout"
      ]
    },
    "amount": {
      "type": "number"
    },
    "currency": {
      "type": "string"
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "completed",
        "expired",
        "cancelled"
      ]
    },
    "checkout_url": {
      "type": "string",
      "format": "uri"
    },
    "success_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "cancel_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "return_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "customer_email": {
      "type": [
        "string",
        "null"
      ],
      "format": "email"
    },
    "metadata": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "nullable": true
      }
    },
    "expires_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "payments": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "object": {
            "type": "string",
            "enum": [
              "payment"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "client_deposit_pending",
              "client_deposit_detected",
              "client_deposit_confirmed",
              "client_deposit_expired",
              "escrow_confirmed",
              "settlement_pending",
              "settled",
              "failed",
              "refunded",
              "cancelled"
            ]
          },
          "payment_method": {
            "type": "string",
            "enum": [
              "direct",
              "two_step"
            ]
          },
          "detected_asset": {
            "type": [
              "string",
              "null"
            ]
          },
          "detected_token_symbol": {
            "type": [
              "string",
              "null"
            ]
          },
          "detected_chain": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$"
          },
          "token_amount": {
            "type": [
              "string",
              "null"
            ]
          },
          "token_amount_decimal": {
            "type": [
              "string",
              "null"
            ]
          },
          "deposit_address": {
            "type": [
              "string",
              "null"
            ]
          },
          "payer_addresses": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "on_chain_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "factory_address": {
            "type": [
              "string",
              "null"
            ]
          },
          "payment_options": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "on_chain_id": {
                  "type": "string"
                },
                "deposit_address": {
                  "type": "string"
                },
                "chain_family": {
                  "type": "string"
                },
                "token": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "on_chain_id",
                "deposit_address",
                "chain_family",
                "token"
              ]
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "flagged": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "object",
          "status",
          "payment_method",
          "detected_asset",
          "detected_token_symbol",
          "detected_chain",
          "token_amount",
          "token_amount_decimal",
          "deposit_address",
          "payer_addresses",
          "on_chain_id",
          "factory_address",
          "payment_options",
          "created_at",
          "flagged"
        ]
      }
    }
  },
  "required": [
    "id",
    "object",
    "amount",
    "currency",
    "description",
    "status",
    "checkout_url",
    "success_url",
    "cancel_url",
    "return_url",
    "customer_email",
    "metadata",
    "expires_at",
    "created_at",
    "payments"
  ]
}