{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/proxyai-app/json-schema/proxyai-app-complete-checkout-schema.json",
  "title": "CompleteCheckout",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/proxyai-app-openapi.json#/components/schemas/CompleteCheckout",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "payment_data": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "handler_id": {
          "type": "string"
        },
        "instrument": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "type": {
              "type": "string"
            },
            "credential": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "type": {
                  "type": "string"
                },
                "token": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 2048
                }
              },
              "required": [
                "type",
                "token"
              ]
            }
          },
          "required": [
            "type",
            "credential"
          ]
        }
      },
      "required": [
        "handler_id",
        "instrument"
      ]
    },
    "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"
      ]
    },
    "ap2_mandate": {
      "type": "string",
      "minLength": 1,
      "maxLength": 14000
    }
  },
  "required": [
    "payment_data"
  ]
}