{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/alpaca/json-schema/alpaca-achrelationship-schema.json",
  "title": "ACHRelationship",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/alpaca-funding-api-openapi.yml#/components/schemas/ACHRelationship",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "Format: 2020-01-01T01:01:01Z"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "Format: 2020-01-01T01:01:01Z"
    },
    "account_id": {
      "type": "string",
      "format": "uuid"
    },
    "status": {
      "type": "string",
      "enum": [
        "QUEUED",
        "APPROVED",
        "PENDING",
        "CANCEL_REQUESTED"
      ]
    },
    "account_owner_name": {
      "type": "string",
      "minLength": 1,
      "description": "Name of the account owner"
    },
    "bank_account_type": {
      "type": "string",
      "minLength": 1,
      "enum": [
        "CHECKING",
        "SAVINGS"
      ],
      "description": "Must be CHECKING or SAVINGS"
    },
    "bank_account_number": {
      "type": "string",
      "minLength": 1
    },
    "bank_routing_number": {
      "type": "string",
      "minLength": 1
    },
    "nickname": {
      "type": "string",
      "minLength": 1
    }
  },
  "required": [
    "id",
    "created_at",
    "updated_at",
    "account_id",
    "status",
    "account_owner_name"
  ]
}