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

> ## Agent Instructions
> Test in the sandbox first: base URL https://api-sandbox.y.uno (Test Mode in the Dashboard). Production is https://api.y.uno (Live Mode).
> Every API request needs the public-api-key and private-secret-key headers. Get them in the Dashboard at https://dashboard.y.uno/developers (Developers > Credentials); sandbox and production keys are different.
> Send an X-Idempotency-Key (a UUID) when creating payments, refunds and cancels, so retries do not create duplicates.
> Start with the Quickstart (https://docs.y.uno/docs/quickstart.md) and the agent guide (https://docs.y.uno/agents.md). To search these docs from a coding agent, connect the docs MCP server at https://docs.y.uno/mcp.

# 发起实体转账（银行连接）

> 从银行连接账户发起转出转账或内部记账转账

从银行连接账户发起转账。`transfer_type` 为必填项：`OUTGOING` 用于外部转账（提供 `destination_account` 银行详细信息），`BOOK` 用于同一服务提供商下账户之间的内部转账（将 `destination_account.account_id` 设置为目标账户），`INCOMING` 用于转入转账。

`destination_account` 中的必填字段取决于区域。详情请参阅 [支付通道](https://docs.y.uno/zh-hans/reference/banking-connectivity.md#payment-rails) 和 [按区域划分的账户标识符](https://docs.y.uno/zh-hans/reference/banking-connectivity.md#account-identifiers-by-region)。

响应返回 `202 Accepted` 和 `PENDING` 状态。通过 [获取实体转账状态](https://docs.y.uno/zh-hans/reference/banking-connectivity/entity-transfers-banking-connectivity/get-entity-transfer-status.md) 或 webhook 事件监控进度。有关完整的状态生命周期，请参阅 [转账状态](https://docs.y.uno/zh-hans/reference/banking-connectivity.md#transfer-statuses)。


## OpenAPI

````yaml openapi/zh-hans/banking-connectivity/entity-transfers-banking-connectivity/initiate-entity-transfer.json POST /banking/transfers
openapi: 3.0.0
info:
  version: 1.0.0
  title: Banking Connectivity
servers:
  - url: https://api-sandbox.y.uno/v1
    description: Sandbox
  - url: https://api.y.uno/v1
    description: Production (US)
security:
  - public-api-key: []
    private-secret-key: []
paths:
  /banking/transfers:
    post:
      tags:
        - Entity Transfers (Banking Connectivity)
      summary: 发起实体转账（银行连接）
      operationId: post_v1-banking-connectivity-transfers
      parameters:
        - in: header
          name: x-idempotency-key
          schema:
            type: string
          description: >-
            用于 HTTP
            标头的唯一标识符，确保即使因网络问题或超时而重试，请求也只会被处理一次。详情请参阅[身份验证](/zh-hans/reference/getting-started/authentication#idempotency)（UUID）。
          required: true
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - account_id
                - source_account_id
                - transfer_type
                - amount
                - payment_rail
              properties:
                account_id:
                  type: string
                  description: 商户的 Yuno 账户的唯一标识符（UUID，36 个字符）。
                  example: 550e8400-e29b-41d4-a716-446655440000
                source_account_id:
                  type: string
                  description: >-
                    从[创建账户](/zh-hans/reference/banking-connectivity/accounts/create-account-banking)获取的源银行连接账户的
                    `id`（UUID，36 个字符）。
                  example: aa0e8400-e29b-41d4-a716-446655440000
                transfer_type:
                  type: string
                  description: >-
                    转账类型。`OUTGOING` 将资金发送到外部账户（在 `destination_account`
                    中设置银行详情）。`BOOK` 将资金转移到另一个银行连接账户（设置
                    `destination_account.account_id`）。`INCOMING` 为转入转账。
                  example: OUTGOING
                  enum:
                    - OUTGOING
                    - BOOK
                    - INCOMING
                amount:
                  type: object
                  description: 转账金额。币种必须与源账户币种一致。
                  required:
                    - value
                    - currency
                  properties:
                    value:
                      type: number
                      description: 转账金额（最多 4 位小数，最大值 9,999,999,999）。
                      example: 1000
                    currency:
                      type: string
                      description: >-
                        币种（[ISO
                        4217](https://en.wikipedia.org/wiki/ISO_4217)）。必须与源账户币种一致。
                      example: USD
                payment_rail:
                  type: string
                  description: >-
                    转账使用的支付通道。使用 `transfer_type: BOOK` 时请使用
                    `BOOK`。可用的支付通道取决于服务提供商所在区域。
                  enum:
                    - ACH_STANDARD
                    - ACH_SAME_DAY
                    - WIRE
                    - RTP
                    - BOOK
                    - PUSH_TO_CARD
                  example: ACH_STANDARD
                description:
                  type: string
                  description: 转账的描述。
                  example: Payment to vendor
                merchant_transfer_id:
                  type: string
                  description: 商户自定义的转账参考 ID，用于对账。
                  example: merchant_txn_12345
                destination_account:
                  type: object
                  description: >-
                    目标账户。对于 `OUTGOING` 转账，发送外部银行详情；必填字段取决于区域：美国需要
                    `account_number` 和 `routing_number`；英国需要 `iban`，或
                    `account_number` 加 `sort_code`；澳大利亚需要 `account_number` 加
                    `bsb`。对于 `BOOK` 转账，只发送 `account_id`，其值为目标银行连接账户的 `id`。
                  properties:
                    account_id:
                      type: string
                      description: '`BOOK` 转账的目标银行连接账户的 `id`（UUID，36 个字符）。'
                      example: bb0e8400-e29b-41d4-a716-446655440000
                    account_number:
                      type: string
                      description: 目标银行账号。
                      example: '9876543210'
                    routing_number:
                      type: string
                      nullable: true
                      description: 美国 routing number。美国目标账户必填。
                      example: '987654321'
                    iban:
                      type: string
                      nullable: true
                      description: IBAN。英国和 SEPA 目标账户必填。
                      example: null
                    bsb:
                      type: string
                      nullable: true
                      description: 澳大利亚 BSB 号码。澳大利亚目标账户必填。
                      example: null
                    swift:
                      type: string
                      nullable: true
                      description: SWIFT/BIC 代码。国际转账和 SEPA 转账必填。
                      example: null
                    sort_code:
                      type: string
                      nullable: true
                      description: 英国 sort code。英国目标账户必填。
                      example: null
                    account_name:
                      type: string
                      description: 目标账户持有人姓名。
                      example: Jane Smith
                    bank_name:
                      type: string
                      description: 目标银行名称。
                      example: Chase Bank
            examples:
              Outgoing Transfer:
                summary: Outgoing Transfer
                value:
                  account_id: 550e8400-e29b-41d4-a716-446655440000
                  source_account_id: aa0e8400-e29b-41d4-a716-446655440000
                  transfer_type: OUTGOING
                  amount:
                    value: 1000
                    currency: USD
                  payment_rail: ACH_STANDARD
                  description: Payment to vendor
                  merchant_transfer_id: merchant_txn_12345
                  destination_account:
                    account_number: '9876543210'
                    routing_number: '987654321'
                    account_name: Jane Smith
                    bank_name: Chase Bank
              Book Transfer (Internal):
                summary: Book Transfer (Internal)
                value:
                  account_id: 550e8400-e29b-41d4-a716-446655440000
                  source_account_id: aa0e8400-e29b-41d4-a716-446655440000
                  transfer_type: BOOK
                  amount:
                    value: 500
                    currency: USD
                  payment_rail: BOOK
                  description: Internal transfer between accounts
                  merchant_transfer_id: merchant_book_67890
                  destination_account:
                    account_id: bb0e8400-e29b-41d4-a716-446655440000
      responses:
        '202':
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: bb0e8400-e29b-41d4-a716-446655440000
                  source_account_id:
                    type: string
                    example: aa0e8400-e29b-41d4-a716-446655440000
                  destination_account_id: {}
                  account_id:
                    type: string
                    example: 550e8400-e29b-41d4-a716-446655440000
                  merchant_transfer_id:
                    type: string
                    example: merchant_txn_12345
                  provider:
                    type: object
                    properties:
                      account_id:
                        type: string
                        example: col_bank_account_789
                      transfer_id:
                        type: string
                        example: col_transfer_xyz123
                  status:
                    type: string
                    example: PENDING
                  transfer_type:
                    type: string
                    example: OUTGOING
                  destination_account:
                    type: object
                    properties:
                      account_number_last_4:
                        type: string
                        example: '3210'
                      routing_number:
                        type: string
                        example: '987654321'
                      iban: {}
                      bsb: {}
                      swift: {}
                      sort_code: {}
                      account_name:
                        type: string
                        example: Jane Smith
                      bank_name:
                        type: string
                        example: Chase Bank
                  amount:
                    type: object
                    properties:
                      value:
                        type: integer
                        example: 1000
                        default: 0
                      currency:
                        type: string
                        example: USD
                  payment_rail:
                    type: string
                    example: ACH_STANDARD
                  description:
                    type: string
                    example: Payment to vendor
                  created_at:
                    type: string
                    example: '2026-02-01T10:15:00Z'
                  updated_at:
                    type: string
                    example: '2026-02-01T10:15:00Z'
              examples:
                Accepted (Outgoing):
                  summary: Accepted (Outgoing)
                  value:
                    id: bb0e8400-e29b-41d4-a716-446655440000
                    source_account_id: aa0e8400-e29b-41d4-a716-446655440000
                    destination_account_id: null
                    account_id: 550e8400-e29b-41d4-a716-446655440000
                    merchant_transfer_id: merchant_txn_12345
                    provider:
                      account_id: col_bank_account_789
                      transfer_id: col_transfer_xyz123
                    status: PENDING
                    transfer_type: OUTGOING
                    destination_account:
                      account_number_last_4: '3210'
                      routing_number: '987654321'
                      iban: null
                      bsb: null
                      swift: null
                      sort_code: null
                      account_name: Jane Smith
                      bank_name: Chase Bank
                    amount:
                      value: 1000
                      currency: USD
                    payment_rail: ACH_STANDARD
                    description: Payment to vendor
                    created_at: '2026-02-01T10:15:00Z'
                    updated_at: '2026-02-01T10:15:00Z'
          description: Accepted
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_PARAMETERS
                  messages:
                    type: array
                    items:
                      type: string
                      example: The field 'transfer_type' is required.
                  http_code:
                    type: integer
                    example: 400
                    default: 0
              examples:
                Bad Request:
                  summary: Bad Request
                  value:
                    code: INVALID_PARAMETERS
                    messages:
                      - The field 'transfer_type' is required.
                    http_code: 400
          description: Bad Request
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: ACCOUNT_NOT_FOUND
                  messages:
                    type: array
                    items:
                      type: string
                      example: Account not found
                  http_code:
                    type: integer
                    example: 404
                    default: 0
              examples:
                Not Found:
                  summary: Not Found
                  value:
                    code: ACCOUNT_NOT_FOUND
                    messages:
                      - Account not found
                    http_code: 404
          description: Not Found
components:
  securitySchemes:
    public-api-key:
      type: apiKey
      in: header
      name: public-api-key
    private-secret-key:
      type: apiKey
      in: header
      name: private-secret-key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.