> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gate.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 创建银行账户

> 创建用于 OTC 结算的关联银行账户。

## 概述

本页说明 `POST /withdraw/open/otc/api/bank/create` 接口。完整的请求参数、响应结构与示例由上方关联的 OpenAPI 定义渲染。

## 说明

* 认证方式使用 GatePay 标准签名请求头。
* 本页展示普通商户接口。
* 通用签名规则请参见 [/api-reference/version/100/cn/common/securityAndSignature](/api-reference/version/100/cn/common/securityAndSignature)。

## 补充字段说明

### 请求格式

* Content-Type：`multipart/form-data`
* 该接口用于 OTC 法币出金前新增银行账户，创建时需要同时上传银行对账单文件。

### `file` 上传要求

* 类型：`file`
* 是否必填：是
* 说明：文件不超过 4 MB，只允许 `jpg`、`jpeg`、`png`；需提供 3 个月内出具的银行对账单，银行账户名称必须与身份认证姓名完全一致。若因语种等原因存在差异，请同时提供相关证明材料，例如银行证明文件、护照或政府更名回执等。


## OpenAPI

````yaml api-reference/version/100/cn/openapi/otc-fiat-openapi.json POST /withdraw/open/otc/api/bank/create
openapi: 3.1.0
info:
  title: GatePay OTC 法币 API
  description: OTC 法币出金与入金 API 参考。
  version: 2.1.0
servers:
  - url: https://openplatform.gateapi.io
security: []
paths:
  /withdraw/open/otc/api/bank/create:
    post:
      summary: 创建银行账户
      description: 创建用于 OTC 结算的关联银行账户。
      parameters:
        - $ref: '#/components/parameters/X-GatePay-Certificate-ClientId'
        - $ref: '#/components/parameters/X-GatePay-Signature'
        - $ref: '#/components/parameters/X-GatePay-Timestamp'
        - $ref: '#/components/parameters/X-GatePay-Nonce'
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/BankCreateRequest'
      responses:
        '200':
          description: 成功
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BankCreateResponse'
components:
  parameters:
    X-GatePay-Certificate-ClientId:
      name: X-GatePay-Certificate-ClientId
      in: header
      required: true
      schema:
        type: string
      description: 用于标识调用应用的商户应用 ClientId。
    X-GatePay-Signature:
      name: X-GatePay-Signature
      in: header
      required: true
      schema:
        type: string
      description: 按 GatePay 签名规则生成的 HMAC 签名。
    X-GatePay-Timestamp:
      name: X-GatePay-Timestamp
      in: header
      required: true
      schema:
        type: string
      description: 用于防重放和验签的 Unix 时间戳。
    X-GatePay-Nonce:
      name: X-GatePay-Nonce
      in: header
      required: true
      schema:
        type: string
      description: 与时间戳配合使用的随机串，用于防止重放攻击。
  schemas:
    BankCreateRequest:
      type: object
      properties:
        bankAccountName:
          type: string
          description: 银行账户名称。
        bankName:
          type: string
          description: 银行名称。
        countryId:
          type: integer
          description: 国家 ID。
        address:
          type: string
          description: 银行地址。
        iban:
          type: string
          description: 账号或 IBAN。
        swift:
          type: string
          description: SWIFT。
        remittanceLineNumber:
          type: string
          description: 路由或清算代码。
        agentBankName:
          type: string
          description: 代理银行名称。
        agentBankSwift:
          type: string
          description: 代理银行 SWIFT。
        file:
          type: string
          format: binary
          description: >-
            银行对账单文件。文件不超过 4 MB，只允许 jpg、jpeg、png；需提供 3
            个月内出具的银行对账单，银行账户名称必须与身份认证姓名完全一致。若因语种等原因存在差异，请同时提供相关证明材料，例如银行证明文件、护照或政府更名回执等。
      required:
        - bankAccountName
        - bankName
        - countryId
        - address
        - iban
        - swift
        - file
    BankCreateResponse:
      type: object
      properties:
        code:
          type: string
          description: 业务响应码。
        status:
          type: string
          description: 请求顶层状态。
        errorMessage:
          type: string
          description: 请求失败时的错误信息。
        data:
          type: object
          properties:
            bankAccountId:
              type: string
              description: 银行账户 ID。
            needSupplementMaterial:
              type: boolean
              description: 是否仍需要补充 KYC 或合规材料。为 `true` 时，请按提示通过「提交银行账户补充材料」等流程补件。
          description: 创建的银行账户信息。
      example:
        code: '000000'
        data:
          bankAccountId: '2897434'
          needSupplementMaterial: false
        status: SUCCESS
        errorMessage: ''

````