{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentaos-ai/json-schema/agentaos-ai-create-bank-account-params-schema.json",
  "title": "CreateBankAccountParams",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentaos-ai-bank-accounts-api-openapi.yml#/components/schemas/CreateBankAccountParams",
  "type": "object",
  "properties": {
    "currency": {
      "type": "string",
      "description": "The payout currency. EUR and USD are supported."
    },
    "type": {
      "type": "string",
      "description": "The account type from the requirements: `iban`, `sort_code`, `aba`."
    },
    "accountHolderName": {
      "type": "string",
      "description": "The name on the bank account, as the bank holds it. A clear mismatch is saved but not paid."
    },
    "legalType": {
      "type": "string",
      "enum": [
        "PRIVATE",
        "BUSINESS"
      ]
    },
    "details": {
      "type": "object",
      "additionalProperties": true,
      "description": "The fields the requirements asked for, for example `{ \"IBAN\": \"DE89…\" }`. Never stored: we keep the last four characters and a hash."
    }
  },
  "required": [
    "currency",
    "type",
    "accountHolderName",
    "legalType",
    "details"
  ]
}