{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/polygon-technology/main/json-schema/polygon-technology-post-external-accounts-request-schema.json",
  "title": "PostExternalAccountsRequest",
  "x-generated": "2026-10-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/polygon-technology-openapi-generated.yml#/components/schemas/PostExternalAccountsRequest",
  "type": "object",
  "properties": {
    "owner": {
      "type": "string",
      "description": "Object with kind (customer or counterparty) and corresponding ID."
    },
    "type": {
      "type": "string",
      "description": "One of bankUs, bankIban, bankCanada, or walletExternal."
    },
    "bankUs": {
      "type": "string",
      "description": "Object with accountNumber, routingNumber, accountType, bankName."
    },
    "bankIban": {
      "type": "string",
      "description": "IBAN‑specific fields."
    },
    "bankCanada": {
      "type": "string",
      "description": "Canada‑specific fields."
    },
    "walletExternal": {
      "type": "string",
      "description": "External wallet fields."
    }
  },
  "required": [
    "owner",
    "type"
  ]
}