{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rutter/json-schema/rutter-acpcomplete-checkout-session-request-schema.json",
  "title": "ACPCompleteCheckoutSessionRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rutter-acp-api-openapi.yml#/components/schemas/ACPCompleteCheckoutSessionRequest",
  "type": "object",
  "properties": {
    "buyer": {
      "type": "object",
      "properties": {
        "email": {
          "type": "string",
          "format": "email",
          "maxLength": 256
        },
        "name": {
          "type": "string",
          "maxLength": 256
        },
        "phone_number": {
          "type": "string"
        }
      },
      "required": [
        "email",
        "name"
      ],
      "additionalProperties": false
    },
    "payment_data": {
      "type": "object",
      "properties": {
        "provider": {
          "type": "string",
          "enum": [
            "stripe",
            "adyen"
          ]
        },
        "token": {
          "type": "string"
        },
        "billing_address": {
          "type": "object",
          "properties": {
            "city": {
              "type": "string",
              "maxLength": 60
            },
            "country": {
              "type": "string"
            },
            "line_one": {
              "type": "string",
              "maxLength": 60
            },
            "name": {
              "type": "string",
              "maxLength": 256
            },
            "postal_code": {
              "type": "string",
              "maxLength": 20
            },
            "state": {
              "type": "string"
            },
            "line_two": {
              "type": "string",
              "maxLength": 60
            },
            "phone_number": {
              "type": "string"
            }
          },
          "required": [
            "city",
            "country",
            "line_one",
            "name",
            "postal_code",
            "state"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "provider",
        "token"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "payment_data"
  ]
}