---
updatedAt: 2026-06-02T20:06:00.000Z
agentTools:
  projectIndex: https://docs.zerohash.com/llms.txt
---

# Create external account

Links an external fiat or crypto account to a participant. Fiat accounts are linked via a Plaid processor token. Crypto account support requires the feature to be enabled on the calling platform.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "zerohash API",
    "description": "\n### Authentication\n\nzerohash Uses HMAC SHA-256 verification to ensure the authenticity of API requests, follow instructions by link [https://docs.zerohash.com/reference/api-authentication](https://docs.zerohash.com/reference/api-authentication)\n\n<a href=\"/zh-swagger.json\">Download zerohash OpenAPI Schema as JSON</a>\n",
    "version": "1.7.0"
  },
  "servers": [
    {
      "url": "https://api.cert.zerohash.com",
      "description": "Certification API server"
    }
  ],
  "x-readme": {
    "proxy-enabled": false
  },
  "tags": [
    {
      "name": "Payments",
      "description": "Payment Services"
    }
  ],
  "paths": {
    "/payments/external_accounts": {
      "post": {
        "tags": [
          "Payments"
        ],
        "summary": "Create external account",
        "description": "Links an external fiat or crypto account to a participant. Fiat accounts are linked via a Plaid processor token. Crypto account support requires the feature to be enabled on the calling platform.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Signature"
          },
          {
            "$ref": "#/components/parameters/Timestamp"
          }
        ],
        "requestBody": {
          "description": "Link request. Use the Fiat Account variant for Plaid-backed fiat accounts and the Crypto Account variant for on-chain destinations.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostCreateExternalAccountRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successfully created external account. Returns the created resource with generated IDs and timestamps.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostCreateExternalAccountResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Code400"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Code403"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Code404"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Code500"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Code503"
                }
              }
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "apiKey": [],
      "apiPassphrase": []
    }
  ],
  "components": {
    "securitySchemes": {
      "apiKey": {
        "type": "apiKey",
        "description": "Your API public key. See the [Authentication guide](https://docs.zerohash.com/reference/api-authentication) for how to obtain keys.",
        "in": "header",
        "name": "X-SCX-API-KEY"
      },
      "apiPassphrase": {
        "type": "apiKey",
        "description": "The passphrase associated with your API key, set when the key was created.",
        "in": "header",
        "name": "X-SCX-PASSPHRASE"
      }
    },
    "parameters": {
      "Signature": {
        "name": "X-SCX-SIGNED",
        "in": "header",
        "description": "HMAC-SHA256 signature of the request, base64-encoded. See the [Authentication guide](https://docs.zerohash.com/reference/api-authentication) for the exact signing formula.",
        "required": true,
        "schema": {
          "type": "string"
        }
      },
      "Timestamp": {
        "name": "X-SCX-TIMESTAMP",
        "in": "header",
        "description": "Current Unix timestamp in seconds. Must be within 60 seconds of server time or the request is rejected.",
        "required": true,
        "schema": {
          "type": "string",
          "example": "1678901234"
        }
      }
    },
    "schemas": {
      "Code400": {
        "type": "object",
        "description": "Request was rejected by validation or a downstream service. `errors` is an array of human-readable messages; each entry describes a single validation failure or business-rule violation.",
        "required": [
          "errors"
        ],
        "properties": {
          "errors": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "body/amount must be >= 0",
              "body/asset is required"
            ]
          }
        }
      },
      "Code403": {
        "type": "object",
        "description": "Authentication or authorization failed. `error` is always `true`; `message` explains which check failed (missing API key, bad signature, insufficient permission, etc.).",
        "required": [
          "error",
          "message"
        ],
        "properties": {
          "error": {
            "type": "boolean",
            "example": true
          },
          "message": {
            "type": "string",
            "example": "This api key does not have write permission to this endpoint"
          }
        }
      },
      "Code404": {
        "type": "object",
        "description": "The requested resource does not exist or is not visible to the caller.",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "string",
            "example": "Not Found"
          }
        }
      },
      "Code500": {
        "type": "object",
        "description": "An unexpected error occurred on the server. The request can be retried after a short delay, but the same inputs may reproduce the error.",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "string",
            "example": "Internal Server Error"
          }
        }
      },
      "Code503": {
        "type": "object",
        "description": "A downstream dependency was unavailable, timed out, or returned a retryable error. Safe to retry; the response carries an `x-zh-allowretry: true` header. Every error response also carries an `x-zh-errorcode` header with a machine-readable error code (`unknown` when the failing service does not supply one).",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "string",
            "example": "Service Unavailable"
          }
        }
      },
      "PostCreateExternalAccountRequest": {
        "type": "object",
        "anyOf": [
          {
            "title": "Fiat Account",
            "type": "object",
            "properties": {
              "participant_code": {
                "type": "string",
                "description": "Participant code",
                "example": "ALI123"
              },
              "account_nickname": {
                "type": "string",
                "description": "Account nickname",
                "example": "test1"
              },
              "plaid_processor_token": {
                "type": "string",
                "minLength": 1,
                "description": "Plaid processor token",
                "example": "0f68333e-2114-469d-b505-c850d776e063"
              }
            },
            "required": [
              "participant_code",
              "plaid_processor_token"
            ]
          },
          {
            "title": "Crypto Account",
            "type": "object",
            "properties": {
              "participant_code": {
                "type": "string",
                "description": "Participant code",
                "example": "ALI123"
              },
              "account_nickname": {
                "type": "string",
                "description": "Account nickname",
                "example": "test1"
              },
              "type": {
                "type": "string",
                "description": "Account asset type",
                "enum": [
                  "crypto"
                ],
                "example": "crypto"
              },
              "details": {
                "type": "object",
                "oneOf": [
                  {
                    "title": "With Supported Symbols",
                    "type": "object",
                    "properties": {
                      "network": {
                        "type": "string",
                        "description": "Blockchain network",
                        "enum": [
                          "ETH",
                          "ALGO",
                          "ARBITRUM",
                          "AVAX",
                          "BASE",
                          "HBAR",
                          "POLYGON",
                          "SOL",
                          "OP",
                          "SUI",
                          "XLM",
                          "ZK"
                        ],
                        "example": "SOL"
                      },
                      "supported_symbols": {
                        "description": "Symbol uses dot notation to refer to asset and network",
                        "type": "array",
                        "items": {
                          "type": "string"
                        },
                        "example": [
                          "USDC.SOL"
                        ]
                      },
                      "address": {
                        "type": "string",
                        "description": "Destination address"
                      },
                      "destination_tag": {
                        "type": "string",
                        "description": "Destination tag (for XRP, XLM, etc.)"
                      },
                      "no_destination_tag": {
                        "type": "boolean",
                        "description": "Set to true to acknowledge that the destination address does not require a destination tag. Required for tag-based assets when destination_tag is not provided."
                      }
                    },
                    "required": [
                      "network",
                      "supported_symbols",
                      "address"
                    ]
                  },
                  {
                    "title": "With Supported Assets",
                    "type": "object",
                    "properties": {
                      "network": {
                        "type": "string",
                        "description": "Blockchain network",
                        "enum": [
                          "ETH",
                          "ALGO",
                          "ARBITRUM",
                          "AVAX",
                          "BASE",
                          "HBAR",
                          "POLYGON",
                          "SOL",
                          "OP",
                          "SUI",
                          "XLM",
                          "ZK"
                        ],
                        "example": "ETH"
                      },
                      "supported_assets": {
                        "description": "Tokens or currencies in the provided network",
                        "type": "array",
                        "items": {
                          "type": "string"
                        },
                        "example": [
                          "USDC"
                        ]
                      },
                      "address": {
                        "type": "string",
                        "description": "Destination address"
                      },
                      "destination_tag": {
                        "type": "string",
                        "description": "Destination tag (for XRP, XLM, etc.)"
                      },
                      "no_destination_tag": {
                        "type": "boolean",
                        "description": "Set to true to acknowledge that the destination address does not require a destination tag. Required for tag-based assets when destination_tag is not provided."
                      }
                    },
                    "required": [
                      "network",
                      "supported_assets",
                      "address"
                    ]
                  }
                ]
              }
            },
            "required": [
              "participant_code",
              "type",
              "details"
            ]
          }
        ]
      },
      "PostCreateExternalAccountResponse": {
        "type": "object",
        "oneOf": [
          {
            "properties": {
              "request_id": {
                "type": "string",
                "description": "RequestID",
                "example": "0f68333e-2114-469d-b505-c850d776e063"
              },
              "participant_code": {
                "type": "string",
                "description": "Participant code",
                "example": "ALI123"
              },
              "platform_code": {
                "type": "string",
                "description": "Platform code",
                "example": "TES123"
              },
              "account_nickname": {
                "type": "string",
                "description": "Account nickname",
                "example": "test1"
              },
              "status": {
                "type": "string",
                "description": "Account status",
                "enum": [
                  "pending",
                  "approved",
                  "rejected",
                  "locked",
                  "disabled",
                  "closed"
                ]
              },
              "external_account_id": {
                "type": "string",
                "description": "Linked account id",
                "example": "0f68333e-2114-469d-b505-c850d776e063"
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Creation timestamp of the account.",
                "example": "2026-05-04T11:54:13.099Z"
              }
            }
          },
          {
            "properties": {
              "request_id": {
                "type": "string",
                "description": "RequestID",
                "example": "0f68333e-2114-469d-b505-c850d776e063"
              },
              "participant_code": {
                "type": "string",
                "description": "Participant code",
                "example": "ALI123"
              },
              "platform_code": {
                "type": "string",
                "description": "Platform code",
                "example": "TES123"
              },
              "account_nickname": {
                "type": "string",
                "description": "Account nickname",
                "example": "polygon_account"
              },
              "status": {
                "type": "string",
                "description": "Account status",
                "enum": [
                  "pending",
                  "approved",
                  "rejected",
                  "locked",
                  "disabled",
                  "revoked",
                  "closed"
                ]
              },
              "status_reason": {
                "type": "string",
                "description": "Status reason when there is an error"
              },
              "external_account_id": {
                "type": "string",
                "description": "Linked account id",
                "example": "0f68333e-2114-469d-b505-c850d776e063"
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Creation timestamp of the account.",
                "example": "2026-05-04T11:54:13.099Z"
              },
              "details": {
                "type": "object",
                "properties": {
                  "network": {
                    "description": "Blockchain or Fiat rail",
                    "enum": [
                      "ETH",
                      "ALGO",
                      "ARBITRUM",
                      "AVAX",
                      "BASE",
                      "HBAR",
                      "POLYGON",
                      "SOL",
                      "OP",
                      "SUI",
                      "XLM",
                      "ZK"
                    ],
                    "example": "ETH"
                  },
                  "supported_assets": {
                    "description": "Tokens or currencies in the provided network",
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "example": [
                      "USDC"
                    ]
                  },
                  "supported_symbols": {
                    "description": "Symbol uses dot notation to refer to asset and network",
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "example": [
                      "USDC.SOL"
                    ]
                  },
                  "address": {
                    "type": "string",
                    "description": "Destination address"
                  }
                }
              }
            }
          }
        ]
      }
    }
  }
}
```