{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/caliza/json-schema/caliza-integrator-request-schema.json",
  "title": "IntegratorRequest",
  "description": "Complete integrator account information for registration including business details, banking, and configuration.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/caliza-integrator-v1-api-openapi.yml#/components/schemas/IntegratorRequest",
  "required": [
    "address",
    "banking",
    "document",
    "email",
    "name",
    "telephones"
  ],
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "email": {
      "type": "string"
    },
    "address": {
      "$ref": "#/$defs/IntegratorAddressRequest"
    },
    "telephones": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "document": {
      "type": "string"
    },
    "banking": {
      "$ref": "#/$defs/IntegratorBankingRequest"
    },
    "contract": {
      "$ref": "#/$defs/ContractRequest"
    },
    "files": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "active": {
      "type": "boolean"
    },
    "callbackUrl": {
      "type": "string"
    },
    "contactEmails": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "deviationConfig": {
      "$ref": "#/$defs/IntegratorDeviationConfigRequest"
    },
    "marketExecutionType": {
      "type": "string",
      "enum": [
        "NONE",
        "EXECUTE_IMMEDIATELY",
        "MARKET_OPEN_TIME"
      ]
    }
  },
  "$defs": {
    "ContractRequest": {
      "required": [
        "price",
        "transactionFee",
        "transactionFeeMode"
      ],
      "type": "object",
      "description": "Contract configuration for pricing and fee structure between integrator and Caliza.",
      "properties": {
        "price": {
          "type": "number"
        },
        "transactionFee": {
          "type": "number"
        },
        "transactionFeeMode": {
          "type": "string",
          "enum": [
            "PERCENT",
            "BPS",
            "FIXED",
            "SPREAD"
          ]
        }
      }
    },
    "IntegratorAddressRequest": {
      "required": [
        "city",
        "country",
        "state",
        "streetOne",
        "zipcode"
      ],
      "type": "object",
      "description": "Address information for integrator registration and compliance.",
      "properties": {
        "streetOne": {
          "type": "string"
        },
        "streetTwo": {
          "type": "string"
        },
        "geolocation": {
          "type": "string"
        },
        "city": {
          "type": "string"
        },
        "zipcode": {
          "type": "string"
        },
        "state": {
          "maxLength": 3,
          "minLength": 0,
          "type": "string"
        },
        "country": {
          "maxLength": 2,
          "minLength": 0,
          "type": "string"
        }
      }
    },
    "IntegratorBankingRequest": {
      "required": [
        "pixKey"
      ],
      "type": "object",
      "description": "Banking information for integrator including PIX key for Brazilian payments.",
      "properties": {
        "pixKey": {
          "type": "string"
        }
      }
    },
    "IntegratorDeviationConfigRequest": {
      "required": [
        "percentDeviationDelayedTransactions"
      ],
      "type": "object",
      "description": "Configuration for transaction deviation tolerance and delayed transaction thresholds.",
      "properties": {
        "percentDeviationDelayedTransactions": {
          "type": "number"
        }
      }
    }
  }
}