---
updatedAt: 2026-11-05T06:57:53.000Z
agentTools:
  projectIndex: https://developer.1money.com/llms.txt
---

# Create External Account

Create and register a new external bank account for a specific customer.

**⚠️ Important: Customer's Own Account Only**

* This endpoint is exclusively for adding the **customer's own bank account**
* **Do NOT use this endpoint to add third-party or recipient bank accounts**
* For adding recipient/beneficiary bank accounts, use the Recipients API instead
* **Incorrect account holder information may result in failed or delayed transfers**

**Functionality:**

* Registers a new external bank account that can be used for fiat withdrawals
* Accepts `US_FEDWIRE`, `US_ACH`, `US_RTP`, `SWIFT`, `SPEI`, `LOCAL_BANK_TRANSFER`, `CHATS`, and `FPS`; availability depends on the account country, currency, customer configuration, and active payment routes
* Follow the [External Accounts](https://developer.1money.com/docs/external-accounts#rail-specific-routing-fields) routing-field rules for the selected network
* Automatically assigns a unique external\_account\_id upon successful creation

**Registration result:**

A successful request returns `201 Created` with `status: "PENDING"` and an `external_account_id`. Registration continues asynchronously; acceptance does not mean the account is approved. The initial response omits `failure_code` and `failure_reason`.

Subscribe to [external account webhooks](https://developer.1money.com/reference/external_account_webhooks), or [retrieve the account](https://developer.1money.com/reference/get_external_account) to check the result. A later `FAILED` result includes a failure category and customer-readable reason. See [failure codes and next steps](https://developer.1money.com/docs/external-accounts#failure-codes).

Requests rejected before acceptance return an HTTP error. [Routing validation errors](https://developer.1money.com/docs/external-accounts#routing-validation-errors) distinguish an invalid routing number, an unrecognized number, and a number that does not support the selected payment network.

**Idempotency & Duplicate Detection:**

* **Required**: Include an `Idempotency-Key` header with a unique UUID for each new account creation

Repeating a request with an existing key returns `409 Conflict` and does not restart registration. Retrieve the original account by key. When correcting details after failure, follow the [re-add guidance](https://developer.1money.com/docs/external-accounts#after-a-failure); duplicate-bank checks still apply.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "1Money OpenAPI",
    "description": "OpenAPI endpoints for 1Money Stablecoin Platform\n\n## OpenAPI Guide\n\nThis OpenAPI spec defines the 1Money partner API surface. Use the endpoint pages for request and response schemas, and the guide pages below for cross-cutting behavior.\n\n### Authentication\n\nAll OpenAPI requests require 1Money authentication. Production requests use HMAC-SHA256 signing with `Authorization` and your access key. Sandbox environments may use the configured sandbox bearer-token mode.\n\nBy default, the signed payload includes a hash of the exact raw request body. The two RFI multipart upload endpoints also support an explicit `UNSIGNED-PAYLOAD` mode that signs the required `Idempotency-Key` instead of the multipart body.\n\nSee [Authentication](https://developer.1money.com/reference/authentication) for the canonical signing format, timestamp window, body hashing rules, and examples.\n\nFor RFI file uploads, see [Signing multipart requests](https://developer.1money.com/reference/multipart_request_signing) for native form-data `UNSIGNED-PAYLOAD` and complete-body signing.\n\n### Idempotency\n\nMutating endpoints document whether `Idempotency-Key` is required or optional. When required, use a unique key per logical operation and reuse the same key only for safe retries.\n\nSee [Idempotency](https://developer.1money.com/reference/idempotency) for retry behavior and endpoint-specific rules. Individual onboarding has additional replay rules in [Individual Onboarding Overview](https://developer.1money.com/reference/individual_onboarding_overview).\n\n### Webhooks\n\nAsynchronous workflows are reported through webhooks. Webhook deliveries include HMAC signature headers and must be treated as at-least-once delivery.\n\nSee [Webhooks](https://developer.1money.com/reference/webhook_overview) for delivery, signature verification, retry, and deduplication rules. Individual KYC event semantics are documented in [Individual Onboarding Webhooks](https://developer.1money.com/reference/individual_onboarding_webhooks).\n\n",
    "contact": {
      "name": "1Money Team",
      "email": "developer@1money.com"
    },
    "license": {
      "name": "Proprietary",
      "identifier": "Proprietary"
    },
    "version": "2.0.0"
  },
  "servers": [
    {
      "url": "https://api.1money.com",
      "description": "Production"
    },
    {
      "url": "https://api.sandbox.1money.com",
      "description": "Sandbox"
    }
  ],
  "paths": {
    "/v1/customers/{customer_id}/external-accounts": {
      "post": {
        "tags": [
          "crate::connectivity::fiat::controller::openapi::external_accounts"
        ],
        "operationId": "create_external_account",
        "parameters": [
          {
            "name": "customer_id",
            "in": "path",
            "description": "Unique identifier of the customer to associate the account with",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "14f20ebd-893b-11f0-b308-2eaa4f6974f2"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "description": "UUID v4 for idempotent requests. Prevents duplicate account creation.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "550e8400-e29b-41d4-a716-446655440000"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExternalAccountRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "External account created successfully - Returns the newly created account with assigned external_account_id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExternalAccountResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed - Invalid request body (missing required fields, invalid country code format, nickname too long, invalid routing number format, unsupported currency for network type, or other validation errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error400Details"
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed - Invalid or missing API key in request header",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error401Details"
                }
              }
            }
          },
          "405": {
            "description": "Method not allowed - The HTTP method used is not supported for this endpoint",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error405Details"
                }
              }
            }
          },
          "409": {
            "description": "Conflict - An account with the same idempotency key already exists, or duplicate account with identical banking details detected",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error409Details"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity - Invalid enum value (e.g., unsupported network or asset name)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error422Details"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error - Unexpected system error occurred during account creation or bank validation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AccountId": {
        "type": "string"
      },
      "ActionRequired": {
        "type": "object",
        "required": [
          "type",
          "case_id",
          "action"
        ],
        "properties": {
          "type": {
            "type": "string",
            "example": "RFI"
          },
          "case_id": {
            "$ref": "#/components/schemas/RfiCaseId"
          },
          "action": {
            "type": "string",
            "example": "SUBMIT_INFORMATION"
          }
        }
      },
      "AddressDetails": {
        "type": "object",
        "required": [
          "full_address",
          "country_code",
          "address_line1",
          "city",
          "postal_code"
        ],
        "properties": {
          "full_address": {
            "type": "string",
            "example": "490 2nd St Suite 300, San Francisco, CA 94107"
          },
          "country_code": {
            "type": "string",
            "description": "ISO 3166-1 alpha-3 three-letter country codes in upper case.",
            "example": "USA"
          },
          "address_line1": {
            "type": "string",
            "description": "The street number for this address (the whitespaces are trimmed from field).",
            "example": "490 2nd St"
          },
          "address_line2": {
            "type": [
              "string",
              "null"
            ],
            "description": "An additional address line for this address (the whitespaces are trimmed from field).",
            "example": "Suite 300"
          },
          "city": {
            "type": "string",
            "description": "A city for this address (the whitespaces are trimmed from field).",
            "example": "San Francisco"
          },
          "region": {
            "type": [
              "string",
              "null"
            ],
            "description": "The address's region. This is state for U.S., province for Canada\n(the whitespaces are trimmed from field).",
            "example": "CA"
          },
          "postal_code": {
            "type": "string",
            "description": "A postal code for this address (the whitespaces are trimmed from field).",
            "example": "94107"
          }
        }
      },
      "AssetName": {
        "type": "string",
        "description": "- Stablecoin assets: USDC, USDT, PYUSD, RLUSD, USDG, USDP, EURC, MXNB, 1USD(1USD/USDC conversion only, deposit/withdrawal not supported)\n- Digital assets: BTC, ETH, SOL\n- Fiat currencies: USD, MXN\n",
        "example": "USDC"
      },
      "BankAccountStatus": {
        "type": "string",
        "enum": [
          "PENDING",
          "APPROVED",
          "FAILED"
        ]
      },
      "ChronoDateTimeSchema": {
        "type": "string",
        "title": "DateTime",
        "example": "2025-08-21T07:56:57.981Z"
      },
      "Cpid": {
        "type": "string",
        "description": "Counterparty ID. Empty values are still allowed for legacy DB columns where\nan empty cpid means the record is not tied to a recipient.",
        "example": "4728c2b9-6df7-11f0-b1f6-6a7838eca3f8"
      },
      "Error400Details": {
        "type": "object",
        "description": "Bad Request error - The request is malformed or contains invalid parameters. The `code` field is a stable application error code.",
        "required": [
          "code",
          "status",
          "trace_id",
          "time"
        ],
        "properties": {
          "code": {
            "type": "string",
            "example": "00000010"
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "example": 400,
            "minimum": 0
          },
          "detail": {
            "type": [
              "string",
              "null"
            ],
            "example": "Invalid customer_id format, unsupported currency"
          },
          "instance": {
            "type": [
              "string",
              "null"
            ],
            "example": "/v1/portfolios/14f20ebd-893b-11f0-b308-2eaa4f6974f2/assets"
          },
          "trace_id": {
            "type": "string",
            "example": "d49d5864-49f0-4130-96ba-6a3c0cfa85a0"
          },
          "time": {
            "type": "string",
            "example": "2026-02-05T10:08:07.857Z"
          }
        }
      },
      "Error401Details": {
        "type": "object",
        "description": "Unauthorized error - Authentication failed or credentials are missing. The `code` field is a stable application error code.",
        "required": [
          "code",
          "status",
          "trace_id",
          "time"
        ],
        "properties": {
          "code": {
            "type": "string",
            "example": "00010000"
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "example": 401,
            "minimum": 0
          },
          "detail": {
            "type": [
              "string",
              "null"
            ],
            "example": "Authentication failed"
          },
          "instance": {
            "type": [
              "string",
              "null"
            ],
            "example": "/v1/portfolios/14f20ebd-893b-11f0-b308-2eaa4f6974f2/assets"
          },
          "trace_id": {
            "type": "string",
            "example": "d49d5864-49f0-4130-96ba-6a3c0cfa85a0"
          },
          "time": {
            "type": "string",
            "example": "2026-02-05T10:08:07.857Z"
          }
        }
      },
      "Error405Details": {
        "type": "object",
        "description": "Method Not Allowed error - The HTTP method is not supported for this endpoint. The `code` field is a stable application error code.",
        "required": [
          "code",
          "status",
          "trace_id",
          "time"
        ],
        "properties": {
          "code": {
            "type": "string",
            "example": "Method_Not_Allowed"
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "example": 405,
            "minimum": 0
          },
          "detail": {
            "type": [
              "string",
              "null"
            ],
            "example": "The HTTP method is not supported for this endpoint"
          },
          "instance": {
            "type": [
              "string",
              "null"
            ],
            "example": "/v1/portfolios/14f20ebd-893b-11f0-b308-2eaa4f6974f2/assets"
          },
          "trace_id": {
            "type": "string",
            "example": "d49d5864-49f0-4130-96ba-6a3c0cfa85a0"
          },
          "time": {
            "type": "string",
            "example": "2026-02-05T10:08:07.857Z"
          }
        }
      },
      "Error409Details": {
        "type": "object",
        "description": "Conflict error - The request conflicts with the current state of the resource. The `code` field is a stable application error code.",
        "required": [
          "code",
          "status",
          "trace_id",
          "time"
        ],
        "properties": {
          "code": {
            "type": "string",
            "example": "00000006"
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "example": 409,
            "minimum": 0
          },
          "detail": {
            "type": [
              "string",
              "null"
            ],
            "example": "Resource with the same idempotency key already exists"
          },
          "instance": {
            "type": [
              "string",
              "null"
            ],
            "example": "/v1/portfolios/14f20ebd-893b-11f0-b308-2eaa4f6974f2/external-accounts"
          },
          "trace_id": {
            "type": "string",
            "example": "d49d5864-49f0-4130-96ba-6a3c0cfa85a0"
          },
          "time": {
            "type": "string",
            "example": "2026-02-05T10:08:07.857Z"
          }
        }
      },
      "Error422Details": {
        "type": "object",
        "description": "Unprocessable Entity error - The request body contains invalid enum values or semantic errors. The `code` field is a stable application error code.",
        "required": [
          "code",
          "status",
          "trace_id",
          "time"
        ],
        "properties": {
          "code": {
            "type": "string",
            "example": "00000010"
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "example": 422,
            "minimum": 0
          },
          "detail": {
            "type": [
              "string",
              "null"
            ],
            "example": "Failed to deserialize the JSON body into the target type: network: unknown variant `INVALID_NETWORK`, expected one of `US_ACH`, `SWIFT`, `US_FEDWIRE`, `US_RTP`, `ARBITRUM`, `AVALANCHE`, `BASE`, `BNBCHAIN`, `ETHEREUM`, `POLYGON`, `SOLANA`, `TRON`"
          },
          "instance": {
            "type": [
              "string",
              "null"
            ],
            "example": "/v1/customers/14f20ebd-893b-11f0-b308-2eaa4f6974f2/withdrawals"
          },
          "trace_id": {
            "type": "string",
            "example": "d49d5864-49f0-4130-96ba-6a3c0cfa85a0"
          },
          "time": {
            "type": "string",
            "example": "2026-02-05T10:08:07.857Z"
          }
        }
      },
      "ErrorDetails": {
        "type": "object",
        "description": "Generic error details conforming to RFC 7807 - Used for various error types including 500 Internal Server Error. The `code` field is a stable application error code.",
        "required": [
          "code",
          "status",
          "trace_id",
          "time"
        ],
        "properties": {
          "code": {
            "type": "string",
            "example": "00000000"
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "example": 500,
            "minimum": 0
          },
          "detail": {
            "type": [
              "string",
              "null"
            ],
            "example": "Internal_Server_Error"
          },
          "issues": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "$ref": "#/components/schemas/OpenApiIssue"
            }
          },
          "instance": {
            "type": [
              "string",
              "null"
            ],
            "example": "/v1/portfolios/14f20ebd-893b-11f0-b308-2eaa4f6974f2/assets"
          },
          "trace_id": {
            "type": "string",
            "example": "d49d5864-49f0-4130-96ba-6a3c0cfa85a0"
          },
          "time": {
            "type": "string",
            "example": "2026-02-05T10:08:07.857Z"
          }
        }
      },
      "ExternalAccountRequest": {
        "type": "object",
        "description": "Request body for creating a new external bank account",
        "required": [
          "network",
          "account_holder_name",
          "currency",
          "country_code",
          "account_number"
        ],
        "properties": {
          "network": {
            "type": "string",
            "description": "Bank network type for the external account.\n- `US_ACH`: For US domestic ACH transfers (next-day settlement, lower fees)\n- `US_FEDWIRE`: For US domestic wire transfers (same-day settlement)\n- `US_RTP`: For US real-time payments (instant settlement)\n- `US_FEDNOW`: For US instant payments over FedNow\n- `SWIFT`: For international wire transfers via the SWIFT network\n- `SPEI`: For Mexican domestic transfers, addressed by an 18-digit CLABE\n- `LOCAL_BANK_TRANSFER`: For bank-account transfers over a local clearing network, including INR transfers to Indian bank accounts\n- `CHATS`: For Hong Kong USD transfers over CHATS\n- `FPS`: For Hong Kong HKD and CNY transfers over Faster Payment System (FPS)\n- `SEPA`: For EUR transfers to bank accounts in supported SEPA countries, addressed by IBAN\n- `FASTER_PAYMENT`: For GBP transfers to United Kingdom or Jersey bank accounts\n- `UAEFTS`: For AED transfers to the United Arab Emirates bank accounts\n- `UPI`: For INR transfers to Indian virtual payment addresses",
            "example": "SWIFT"
          },
          "nickname": {
            "type": [
              "string",
              "null"
            ],
            "description": "User-defined nickname or label for the account (optional).\nHelps identify the account in listings. Blank values are treated as omitted.",
            "example": "Primary Operating Account",
            "maxLength": 64
          },
          "account_holder_name": {
            "type": "string",
            "description": "Full legal name of the account holder (individual or entity).\nThis is the name registered with the bank for compliance and verification.",
            "example": "TechStart Holdings LLC"
          },
          "currency": {
            "type": "string",
            "description": "Currency of the bank account (e.g., USD, EUR, GBP).\nMust be supported by the selected network type.",
            "example": "USD"
          },
          "country_code": {
            "$ref": "#/components/schemas/IsoCountryAlpha3",
            "description": "ISO 3166-1 alpha-3 three-letter country code in uppercase (e.g., USA, GBR, DEU).\nRepresents the country where the bank account is held. Must be exactly 3 characters."
          },
          "account_number": {
            "type": "string",
            "description": "The bank account identifier.\n- For `US_FEDWIRE`, `US_ACH`, `US_RTP`, and `US_FEDNOW`: Standard bank account number\n- For `SWIFT`: Account number format depends on the bank country. Germany requires a\n  valid 22-character DE IBAN; Mexico requires a valid 18-digit CLABE. Both include checksum\n  validation. United Arab Emirates accounts in USD require a valid 23-character AE IBAN.\n- For `SPEI`: 18-digit CLABE\n- For `LOCAL_BANK_TRANSFER`: Local bank account number; India requires 9 to 18 ASCII digits\n  and Japan requires exactly 7 ASCII digits, including leading zeros\n- For `CHATS`: Hong Kong bank account number\n- For `FPS`: Hong Kong branch code followed by the account number, totaling 9-16 digits\n- For `SEPA`: IBAN matching the bank country, without spaces or separators; letters are stored uppercase\n- For `FASTER_PAYMENT`: Exactly 8 ASCII digits, preserving leading zeros; no spaces or separators\n- For `UAEFTS`: A valid 23-character AE IBAN without spaces or separators\n- For `UPI`: VPA in name@handle format, 3 to 50 characters, without spaces",
            "example": "4447891623",
            "maxLength": 64,
            "minLength": 1
          },
          "institution_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "The primary institution routing identifier.\n- For `US_FEDWIRE`, `US_ACH`, `US_RTP`, and `US_FEDNOW`: 9-digit ABA routing number\n- For `SWIFT`: 8 or 11-character SWIFT/BIC code of the destination bank\n- For `SPEI`: not required; the bank code is derived from CLABE. Submitted values are ignored.\n- For `LOCAL_BANK_TRANSFER`: select the applicable canonical institution ID from the\n  [Local Institution ID](https://developer.1money.com/docs/local-institution-id) guide\n  based on the destination country and currency, then submit it exactly as documented\n- For `CHATS`: 8 or 11-character SWIFT/BIC code of the destination bank\n- For `FPS`: select the destination bank's three-digit Hong Kong clearing code from the\n  [Local Institution ID](https://developer.1money.com/docs/local-institution-id) guide\n  based on the destination currency, then submit it exactly as documented\n\nFor `SEPA`, institution_id, institution_clearing_code, and intermediary_bank are ignored.\nFor `UAEFTS`, the bank code is derived from the IBAN in account_number; institution_id is not used.\nFor `FASTER_PAYMENT`, institution_id is the required 6-digit sort code, without spaces or separators;\ninstitution_clearing_code and intermediary_bank are ignored.\nThis field is required for `LOCAL_BANK_TRANSFER`, `CHATS`, and `FPS`.\nFor India `LOCAL_BANK_TRANSFER`, supply the 11-character IFSC instead of a catalog bank ID.\nFor Singapore `LOCAL_BANK_TRANSFER` in SGD, supply the selected bank's four-digit ABS bank code.\nFor Japan `LOCAL_BANK_TRANSFER` in JPY, supply the four-digit bank code and the\nthree-digit branch code in `institution_clearing_code`, preserving leading zeros.\nFor other `LOCAL_BANK_TRANSFER` destinations and `FPS`, do not derive or substitute an\ninstitution ID; use one of the canonical values listed in the guide.\nFor `UPI`, institution_id, institution_clearing_code, and intermediary_bank are ignored.",
            "maxLength": 64
          },
          "institution_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Full legal name of the financial institution. For routing-code based networks and\n`CHATS`, it is resolved from `institution_id` when omitted. For `SEPA`,\n`FASTER_PAYMENT`, India `LOCAL_BANK_TRANSFER`, and `UPI`, this is an optional\nuser-supplied bank name. Routing-code based networks and `CHATS` allow up to\n80 characters; other networks allow up to 128. Blank values are treated as omitted.\nFor `SPEI`, `UAEFTS`, `FPS`, and `LOCAL_BANK_TRANSFER` outside India, the bank name\ncomes from the bank directory. Submitted values are ignored.",
            "maxLength": 128
          },
          "institution_clearing_code": {
            "type": [
              "string",
              "null"
            ],
            "description": "Additional local or regional routing code for `SWIFT`, required for certain countries.\nRequired for Japan `LOCAL_BANK_TRANSFER` in JPY: exactly 3 ASCII digits representing\nthe branch code (for example, `025`). Ignored for other payment networks and destinations.",
            "example": "021000021",
            "maxLength": 32
          },
          "intermediary_bank": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/IntermediaryBank",
                "description": "Intermediary bank information for `SWIFT` accounts (optional).\nIgnored for networks other than `SWIFT`."
              }
            ]
          }
        }
      },
      "ExternalAccountResponse": {
        "type": "object",
        "description": "Response object containing complete external bank account information",
        "required": [
          "external_account_id",
          "idempotency_key",
          "customer_id",
          "status",
          "network",
          "nickname",
          "account_holder_name",
          "currency",
          "country_code",
          "account_number",
          "institution_name",
          "institution_clearing_code",
          "reference_code",
          "created_at",
          "modified_at"
        ],
        "properties": {
          "external_account_id": {
            "type": "string",
            "description": "Unique identifier for the external account (UUID format).\nUse this ID for all subsequent operations (retrieve, delete, withdrawals).",
            "example": "381b013e-8893-11f0-b308-2eaa4f6974f2"
          },
          "idempotency_key": {
            "$ref": "#/components/schemas/IdempotencyKey",
            "description": "Idempotency key associated with the account creation request.\nUsed to prevent duplicate account creation and for retrieving accounts by idempotency key.\nEmpty string if the account was created without an idempotency key."
          },
          "customer_id": {
            "$ref": "#/components/schemas/Pid",
            "description": "Customer ID"
          },
          "status": {
            "$ref": "#/components/schemas/BankAccountStatus",
            "description": "Current status of the bank account.\n- PENDING: Account registration or review is in progress.\n- APPROVED: Registration has completed for the applicable payment route. This status does not\n  independently prove account ownership or guarantee a future transfer.\n- FAILED: Account registration failed or was rejected. See failure_code and failure_reason."
          },
          "failure_code": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ExternalAccountFailureCode",
                "description": "Stable failure category, present only when status is FAILED. Clients must tolerate unknown codes."
              }
            ]
          },
          "failure_reason": {
            "type": [
              "string",
              "null"
            ],
            "description": "Customer-readable failure reason and next steps. Present only when status is FAILED.",
            "example": "Intermediary bank details are required. Get them from the bank and add the account again."
          },
          "network": {
            "$ref": "#/components/schemas/NetworkName",
            "description": "Bank network type for the external account.\n- `US_ACH`: For US domestic ACH transfers (next-day settlement, lower fees)\n- `US_FEDWIRE`: For US domestic wire transfers (same-day settlement)\n- `US_RTP`: For US real-time payments (instant settlement)\n- `SWIFT`: For international wire transfers via the SWIFT network\n- `SPEI`: For Mexican domestic transfers, addressed by an 18-digit CLABE\n- `LOCAL_BANK_TRANSFER`: For bank-account transfers over a local clearing network\n- `CHATS`: For Hong Kong USD transfers over CHATS\n- `FPS`: For Hong Kong HKD and CNY transfers over Faster Payment System (FPS)\n- `SEPA`: For EUR transfers to supported European bank accounts, addressed by IBAN"
          },
          "nickname": {
            "type": [
              "string",
              "null"
            ],
            "description": "User-defined nickname or label for the account (optional).\nHelps identify the account in listings.",
            "example": "Primary Operating Account"
          },
          "account_holder_name": {
            "type": "string",
            "description": "Full legal name of the account holder (individual or entity).\nThis is the name registered with the bank for compliance and verification.",
            "example": "TechStart Holdings LLC"
          },
          "currency": {
            "$ref": "#/components/schemas/AssetName",
            "description": "Currency of the bank account (e.g., USD, EUR, GBP)."
          },
          "country_code": {
            "$ref": "#/components/schemas/IsoCountryAlpha3",
            "description": "ISO 3166-1 alpha-3 three-letter country code in uppercase (e.g., USA, GBR, DEU).\nRepresents the country where the bank account is held."
          },
          "account_number": {
            "type": "string",
            "example": "4447891623"
          },
          "institution_id": {
            "type": "string",
            "description": "Routing identifier of the destination bank. For local bank transfers, this is the bank\ncode selected from the supported institution list. Absent for SPEI, where the CLABE in\n`account_number` already encodes the bank.",
            "example": "CHASUS33"
          },
          "institution_name": {
            "type": "string",
            "description": "Full legal name of the bank institution.",
            "example": "JPMorgan Chase Bank, N.A."
          },
          "institution_clearing_code": {
            "type": [
              "string",
              "null"
            ],
            "description": "Additional local or regional routing codes required by specific payment networks or countries.\nExamples: Sort codes (UK), BSB numbers (Australia), transit numbers (Canada).\nFor Japan LOCAL_BANK_TRANSFER in JPY, this is the three-digit branch code.",
            "example": "021000021"
          },
          "intermediary_bank": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/IntermediaryBank",
                "description": "Intermediary bank information (optional).\nRequired for some international wire transfers when the destination bank\ndoes not have a direct correspondent relationship with the originating bank."
              }
            ]
          },
          "reference_code": {
            "type": [
              "string",
              "null"
            ],
            "description": "Reference code for wire transfers (optional).\nA unique identifier that should be included in wire transfer memos\nto help identify and reconcile incoming payments.",
            "example": "36AC1ECAF659"
          },
          "created_at": {
            "$ref": "#/components/schemas/ChronoDateTimeSchema",
            "description": "Timestamp when the account was created (ISO 8601 format with timezone).\nReflects the initial registration time in the system."
          },
          "modified_at": {
            "$ref": "#/components/schemas/ChronoDateTimeSchema",
            "description": "Timestamp of the last modification to the account (ISO 8601 format with timezone).\nUpdated when account details are changed or status is updated."
          },
          "recipient": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/RecipientResponse",
                "description": "Recipient information associated with this bank account.\nPresent only when the bank account belongs to a recipient (third-party).\nAbsent for the customer's own (first-party) bank accounts."
              }
            ]
          }
        }
      },
      "IdempotencyKey": {
        "type": "string",
        "description": "HTTP `Idempotency-Key` header value. Stricter than other IDs:\n≤64 ASCII chars per the common REST API convention."
      },
      "IntermediaryBank": {
        "type": "object",
        "description": "Intermediary bank information for `SWIFT` external accounts",
        "required": [
          "institution_id"
        ],
        "properties": {
          "institution_id": {
            "type": "string",
            "description": "The intermediary institution identifier (SWIFT code or ABA routing number).\nFor USD international wires: ABA number of the US correspondent bank that serves as intermediary.\nFor non-USD wires: SWIFT code of the intermediary bank (if required by the payment network).\nRequired when the destination bank does not have a direct relationship with the sending institution.",
            "example": "PNBPUS3NNYC",
            "maxLength": 64
          }
        }
      },
      "IsoCountryAlpha3": {
        "type": "string",
        "description": "ISO 3166-1 alpha-3 country codes.",
        "enum": [
          "AND",
          "ARE",
          "AFG",
          "ATG",
          "AIA",
          "ALB",
          "ARM",
          "AGO",
          "ARG",
          "ASM",
          "AUT",
          "AUS",
          "ABW",
          "AZE",
          "BIH",
          "BRB",
          "BGD",
          "BEL",
          "BFA",
          "BGR",
          "BHR",
          "BDI",
          "BEN",
          "BLM",
          "BMU",
          "BRN",
          "BOL",
          "BES",
          "BRA",
          "BHS",
          "BTN",
          "BWA",
          "BLR",
          "BLZ",
          "CAN",
          "CCK",
          "COD",
          "CAF",
          "COG",
          "CHE",
          "CIV",
          "COK",
          "CHL",
          "CMR",
          "CHN",
          "COL",
          "CRI",
          "CUB",
          "CPV",
          "CUW",
          "CXR",
          "CYP",
          "CZE",
          "DEU",
          "DJI",
          "DNK",
          "DMA",
          "DOM",
          "DZA",
          "ECU",
          "EST",
          "EGY",
          "ESH",
          "ERI",
          "ESP",
          "ETH",
          "FIN",
          "FJI",
          "FLK",
          "FSM",
          "FRO",
          "FRA",
          "GAB",
          "GBR",
          "GRD",
          "GEO",
          "GUF",
          "GGY",
          "GHA",
          "GIB",
          "GRL",
          "GMB",
          "GIN",
          "GLP",
          "GNQ",
          "GRC",
          "SGS",
          "GTM",
          "GUM",
          "GNB",
          "GUY",
          "HKG",
          "HND",
          "HRV",
          "HTI",
          "HUN",
          "IDN",
          "IRL",
          "ISR",
          "IMN",
          "IND",
          "IOT",
          "IRQ",
          "IRN",
          "ISL",
          "ITA",
          "JEY",
          "JAM",
          "JOR",
          "JPN",
          "KEN",
          "KGZ",
          "KHM",
          "KIR",
          "COM",
          "KNA",
          "PRK",
          "KOR",
          "KWT",
          "CYM",
          "KAZ",
          "LAO",
          "LBN",
          "LCA",
          "LIE",
          "LKA",
          "LBR",
          "LSO",
          "LTU",
          "LUX",
          "LVA",
          "LBY",
          "MAR",
          "MCO",
          "MDA",
          "MNE",
          "MAF",
          "MDG",
          "MHL",
          "MKD",
          "MLI",
          "MMR",
          "MNG",
          "MAC",
          "MNP",
          "MTQ",
          "MRT",
          "MSR",
          "MLT",
          "MUS",
          "MDV",
          "MWI",
          "MEX",
          "MYS",
          "MOZ",
          "NAM",
          "NCL",
          "NER",
          "NFK",
          "NGA",
          "NIC",
          "NLD",
          "NOR",
          "NPL",
          "NRU",
          "NIU",
          "NZL",
          "OMN",
          "PAN",
          "PER",
          "PYF",
          "PNG",
          "PHL",
          "PAK",
          "POL",
          "SPM",
          "PCN",
          "PRI",
          "PSE",
          "PRT",
          "PLW",
          "PRY",
          "QAT",
          "REU",
          "ROU",
          "SRB",
          "RUS",
          "RWA",
          "SAU",
          "SLB",
          "SYC",
          "SDN",
          "SWE",
          "SGP",
          "SHN",
          "SVN",
          "SJM",
          "SVK",
          "SLE",
          "SMR",
          "SEN",
          "SOM",
          "SUR",
          "SSD",
          "STP",
          "SLV",
          "SXM",
          "SYR",
          "SWZ",
          "TCA",
          "TCD",
          "TGO",
          "THA",
          "TJK",
          "TKL",
          "TLS",
          "TKM",
          "TUN",
          "TON",
          "TUR",
          "TTO",
          "TUV",
          "TWN",
          "TZA",
          "UKR",
          "UGA",
          "USA",
          "URY",
          "UZB",
          "VAT",
          "VCT",
          "VEN",
          "VGB",
          "VIR",
          "VNM",
          "VUT",
          "WLF",
          "WSM",
          "XKX",
          "YEM",
          "MYT",
          "ZAF",
          "ZMB",
          "ZWE"
        ]
      },
      "NetworkName": {
        "type": "string",
        "description": "Public network identifier for bank, blockchain and internal transactions.\n\nAllowed values:\n- Bank: `US_ACH`, `US_FEDWIRE`, `US_RTP`, `US_FEDNOW`, `SWIFT`, `CUBIX`, `SPEI`, `PIX_TRANSFER`, `LOCAL_BANK_TRANSFER`, `CHATS`, `FPS`, `SEPA`, `FASTER_PAYMENT`, `UAEFTS`, `UPI`, `EREBOR_RAIL`\n- Blockchain: `ETHEREUM`, `POLYGON`, `ARBITRUM`, `AVALANCHE`, `BASE`, `BNBCHAIN`, `SOLANA`, `TRON`, `ONE_MONEY`, `BITCOIN`\n- Internal: `INTERNAL`\n\nAvailability depends on the asset and customer account configuration.",
        "example": "ETHEREUM"
      },
      "OpenApiIssue": {
        "type": "object",
        "required": [
          "code",
          "description",
          "action",
          "target"
        ],
        "properties": {
          "code": {
            "type": "string",
            "example": "DOCUMENT_MISSING"
          },
          "description": {
            "type": "string",
            "example": "Certificate Of Incorporation is required."
          },
          "action": {
            "type": "string",
            "example": "UPLOAD_DOCUMENT"
          },
          "target": {
            "$ref": "#/components/schemas/OpenApiIssueTarget"
          }
        }
      },
      "OpenApiIssueTarget": {
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "example": "BUSINESS"
          },
          "account_id": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/AccountId"
              }
            ]
          },
          "controller_id": {
            "type": [
              "string",
              "null"
            ],
            "example": "8d3e45fa-b76c-45e2-abd1-aa9d29d20964"
          },
          "property": {
            "type": [
              "string",
              "null"
            ],
            "example": "controllers"
          },
          "document_type": {
            "type": [
              "string",
              "null"
            ],
            "example": "CERT_OF_INC"
          }
        }
      },
      "Pid": {
        "type": "string",
        "description": "Portfolio ID — also exposed as `customer_id` in OpenAPI. Identifies\none individual application / portfolio row within an entity.",
        "example": "14f20ebd-893b-11f0-b308-2eaa4f6974f2"
      },
      "RecipientResponse": {
        "type": "object",
        "description": "Recipient response object",
        "required": [
          "recipient_id",
          "customer_id",
          "business_type",
          "full_name",
          "status",
          "created_at",
          "modified_at"
        ],
        "properties": {
          "recipient_id": {
            "$ref": "#/components/schemas/Cpid"
          },
          "customer_id": {
            "$ref": "#/components/schemas/Pid",
            "description": "Customer ID"
          },
          "business_type": {
            "type": "string",
            "description": "Recipient type: INDIVIDUAL or COMPANY",
            "example": "INDIVIDUAL"
          },
          "full_name": {
            "type": "string",
            "description": "Full name computed from name fields",
            "example": "John Doe"
          },
          "nickname": {
            "type": [
              "string",
              "null"
            ],
            "description": "User-defined nickname (optional)",
            "example": "John's Business"
          },
          "email": {
            "type": [
              "string",
              "null"
            ],
            "description": "Email address (optional)",
            "example": "john.doe@example.com"
          },
          "relationship": {
            "type": [
              "string",
              "null"
            ],
            "description": "Relationship to the customer (optional)",
            "example": "VENDOR"
          },
          "status": {
            "type": "string",
            "description": "Recipient status.\nPossible values: success, pending_review, blocked",
            "example": "success"
          },
          "address": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/AddressDetails",
                "description": "Recipient address (optional)"
              }
            ]
          },
          "action_required": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ActionRequired",
                "description": "The RFI action the customer must take right now for this recipient, or\n`null` when nothing is required (no RFI, under review, approved,\nrejected, or closed). Query the customer RFI case collection for the\ncase lifecycle."
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Created timestamp",
            "example": "2025-10-29T02:46:25.096305Z"
          },
          "modified_at": {
            "type": "string",
            "format": "date-time",
            "description": "Last modified timestamp",
            "example": "2025-10-29T02:46:25.096305Z"
          }
        }
      },
      "RfiCaseId": {
        "type": "string",
        "description": "RFI case business ID.",
        "example": "TC-WXYZ-2345"
      },
      "ExternalAccountFailureCode": {
        "type": "string",
        "description": "Stable customer-facing creation failures. Unknown future codes must be tolerated by clients.",
        "enum": [
          "BANK_DETAILS_INVALID",
          "INTERMEDIARY_BANK_REQUIRED",
          "INTERMEDIARY_BANK_UNVERIFIED",
          "ACCOUNT_REGISTRATION_REJECTED",
          "CUSTOMER_ACCOUNT_UNAVAILABLE",
          "ACCOUNT_CREATION_FAILED"
        ]
      }
    },
    "securitySchemes": {
      "Authorization": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "OneMoney-HMAC-SHA256",
        "description": "Custom HMAC-SHA256 signature authentication. Format: OneMoney-HMAC-SHA256 <api_key>:<timestamp>:<signature>"
      }
    }
  },
  "security": [
    {
      "Authorization": []
    }
  ]
}
```