{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/breezecash/json-schema/breezecash-create-payout-page-request-schema.json",
  "title": "CreatePayoutPageRequest",
  "description": "Payout page details",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/breezecash-payout-pages-api-openapi.yml#/components/schemas/CreatePayoutPageRequest",
  "type": "object",
  "properties": {
    "amount": {
      "type": "number",
      "minimum": 100,
      "maximum": 10000000,
      "exclusiveMinimum": 0
    },
    "fundingCurrency": {
      "type": "string",
      "enum": [
        "USDC",
        "EURC"
      ]
    },
    "clientReferenceId": {
      "type": "string",
      "minLength": 1
    },
    "releaseMethod": {
      "type": "string",
      "enum": [
        "MANUAL",
        "AUTOMATIC"
      ]
    },
    "customer": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "referenceId": {
          "type": "string"
        },
        "email": {
          "type": "string",
          "format": "email"
        }
      },
      "required": [
        "email"
      ],
      "additionalProperties": false,
      "oneOf": [
        {
          "required": [
            "id"
          ],
          "title": "By Id"
        },
        {
          "required": [
            "referenceId"
          ],
          "title": "By Reference Id"
        },
        {
          "not": {
            "oneOf": [
              {
                "required": [
                  "id"
                ]
              },
              {
                "required": [
                  "referenceId"
                ]
              },
              {
                "required": [
                  "id",
                  "referenceId"
                ]
              }
            ]
          },
          "title": "Neither"
        }
      ]
    },
    "successReturnUrl": {
      "type": "string",
      "minLength": 1
    },
    "failureReturnUrl": {
      "type": "string",
      "minLength": 1
    }
  },
  "required": [
    "amount",
    "fundingCurrency",
    "clientReferenceId",
    "releaseMethod",
    "customer"
  ],
  "additionalProperties": false
}