{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/blindpay-com/json-schema/blindpay-com-create-card-payment-in-schema.json",
  "title": "CreateCardPaymentIn",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/blindpay-com-payins-api-openapi.yml#/components/schemas/CreateCardPaymentIn",
  "type": "object",
  "properties": {
    "payment_token": {
      "type": "string",
      "minLength": 1,
      "description": "Single-use Collect.js payment token (expires 24h after creation, destroyed after use)"
    },
    "cardholder_name": {
      "type": "string",
      "minLength": 1,
      "description": "Name printed on the card"
    },
    "billing_address": {
      "type": "object",
      "properties": {
        "address1": {
          "type": "string",
          "minLength": 1
        },
        "city": {
          "type": "string",
          "minLength": 1
        },
        "state": {
          "type": [
            "string",
            "null"
          ]
        },
        "zip": {
          "type": "string",
          "minLength": 1
        },
        "country": {
          "type": "string",
          "minLength": 2,
          "maxLength": 2
        }
      },
      "required": [
        "address1",
        "city",
        "zip",
        "country"
      ],
      "description": "Cardholder billing address, submitted to the gateway for AVS"
    },
    "three_ds": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "cavv": {
          "type": "string",
          "minLength": 1
        },
        "eci": {
          "type": "string",
          "minLength": 1
        },
        "xid": {
          "type": [
            "string",
            "null"
          ]
        },
        "cardholder_auth": {
          "type": [
            "string",
            "null"
          ]
        },
        "three_ds_version": {
          "type": [
            "string",
            "null"
          ]
        },
        "directory_server_id": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "cavv",
        "eci"
      ],
      "description": "3D Secure authentication result from Gateway.js. Required on production instances."
    }
  },
  "required": [
    "payment_token",
    "cardholder_name",
    "billing_address"
  ]
}