{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/proxyai-app/json-schema/proxyai-app-create-checkout-schema.json",
  "title": "CreateCheckout",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/proxyai-app-openapi.json#/components/schemas/CreateCheckout",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "line_items": {
      "type": "array",
      "minItems": 1,
      "maxItems": 20,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "name": {
            "type": "string",
            "maxLength": 300
          },
          "unit_amount": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "id"
        ]
      }
    },
    "currency": {
      "type": "string",
      "const": "usd"
    },
    "buyer": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "email": {
          "type": "string",
          "format": "email"
        },
        "first_name": {
          "type": "string",
          "maxLength": 100
        },
        "last_name": {
          "type": "string",
          "maxLength": 100
        },
        "full_name": {
          "type": "string",
          "maxLength": 200
        }
      },
      "required": [
        "email"
      ]
    },
    "capabilities": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "payment": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "handlers": {
              "type": "array",
              "maxItems": 20,
              "items": {
                "type": "object",
                "required": [
                  "id"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "maxLength": 100
                  },
                  "name": {
                    "type": "string",
                    "maxLength": 100
                  }
                },
                "additionalProperties": true
              }
            }
          },
          "required": [
            "handlers"
          ]
        },
        "interventions": {},
        "extensions": {
          "type": "array",
          "maxItems": 20,
          "items": {
            "type": "string",
            "maxLength": 100
          }
        }
      },
      "required": []
    },
    "metadata": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "attach_to_client_products_id": {
          "type": "string",
          "format": "uuid"
        }
      },
      "required": []
    },
    "locale": {
      "type": "string",
      "maxLength": 30
    },
    "timezone": {
      "type": "string",
      "maxLength": 100
    }
  },
  "required": [
    "line_items",
    "currency",
    "capabilities"
  ]
}