{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/alpaca/json-schema/alpaca-create-achrelationship-request-schema.json",
  "title": "CreateACHRelationshipRequest",
  "description": "Represents the fields used in creation of a new ACHRelationship.\n\nYou can create an ACHRelationship by passing the required fields here or if you have an account with Plaid you can use our integration with Plaid to create a relationship.\n\nPlease see the documentation [here](https://alpaca.markets/docs/api-references/broker-api/funding/ach/#plaid-integration-for-bank-transfers) for more info on using Plaid with Alpaca",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/alpaca-accounts-api-openapi.yml#/components/schemas/CreateACHRelationshipRequest",
  "type": "object",
  "properties": {
    "account_owner_name": {
      "type": "string",
      "minLength": 1
    },
    "bank_account_type": {
      "type": "string",
      "minLength": 1,
      "enum": [
        "CHECKING",
        "SAVINGS"
      ],
      "description": "Must be CHECKING or SAVINGS"
    },
    "bank_account_number": {
      "type": "string",
      "minLength": 1,
      "description": "In sandbox, this still must be a valid format"
    },
    "bank_routing_number": {
      "type": "string",
      "minLength": 1,
      "description": "In sandbox, this still must be a valid format"
    },
    "nickname": {
      "type": "string",
      "minLength": 1
    },
    "processor_token": {
      "type": "string",
      "description": "If using Plaid, you can specify a Plaid processor token here "
    }
  },
  "required": [
    "account_owner_name",
    "bank_account_type",
    "bank_account_number",
    "bank_routing_number"
  ]
}