# 开立虚拟账户结果

> 接收虚拟账户开户请求的处理结果。

```yaml
openapi: 3.1.0
x-onerway-docs-version: original
x-onerway-spec-key: embedded-finance/webhooks/virtual-account-result
info:
  title: 开立虚拟账户结果
  version: original
  description: 接收虚拟账户开户请求的处理结果。
webhooks:
  virtual.account.result:
    post:
      summary: 开立虚拟账户结果
      description: 接收虚拟账户开户请求的处理结果。
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                request_id:
                  type: string
                  description: 用于通知去重的唯一标识。
                  x-onerway-signature-participation: included
                event_type:
                  type: string
                  description: 事件类型标识。
                  x-onerway-constraints:
                    - kind: values
                      text: 此 Webhook 回调固定为 `EMFIN.VA_RESULT`。
                  x-onerway-signature-participation: included
                created_at:
                  type: string
                  description: 通知创建时间，采用 ISO 8601 格式。
                  x-onerway-signature-participation: included
                version:
                  type: string
                  description: Webhook 消息版本。
                  x-onerway-signature-participation: included
                data:
                  type: object
                  properties:
                    vaApplicationId:
                      type: integer
                      description: 开户请求返回的虚拟账户申请 ID。
                    merchantNo:
                      type: string
                      description: 该申请所属的商户号。
                    userId:
                      type: integer
                      description: 申请开立虚拟账户的用户 ID。
                    iban:
                      type: string
                      description: 虚拟账户的 IBAN。
                      x-onerway-constraints:
                        - kind: range
                          max: 64
                          unit: 字符
                    accountNumber:
                      type: string
                      description: 虚拟账户账号。
                      x-onerway-constraints:
                        - kind: range
                          max: 64
                          unit: 字符
                    sortCode:
                      type: string
                      description: 虚拟账户的银行 sort code。
                      x-onerway-constraints:
                        - kind: range
                          max: 32
                          unit: 字符
                    failReason:
                      type:
                        - string
                        - "null"
                      description: 开户未成功时的原因。
                      x-onerway-constraints:
                        - kind: range
                          max: 256
                          unit: 字符
                      x-onerway-value:
                        nullable: true
                        when:
                          en: No failure reason is provided.
                          zh: 没有失败原因时返回 `null`。
                    ownerName:
                      type: string
                      description: 虚拟账户户名。
                      x-onerway-constraints:
                        - kind: range
                          max: 256
                          unit: 字符
                    status:
                      type: string
                      description: 虚拟账户开户状态。
                      enum:
                        - S
                        - F
                      x-enum-descriptions:
                        S: 开立虚拟账户成功。
                        F: 开立虚拟账户失败，可重新调用[开立虚拟账户](/zh/embedded-finance/api-reference/endpoints/open-virtual-account)接口提交申请。
                  description: 虚拟账户开立结果。
                  x-onerway-signature-participation: included
            examples:
              opening_success:
                summary: 虚拟账户开立成功
                value:
                  request_id: "2098320482536390656"
                  event_type: EMFIN.VA_RESULT
                  created_at: 2026-09-11T15:59:22+08:00
                  version: v1.0
                  data:
                    vaApplicationId: 987654321
                    merchantNo: 800***
                    userId: 12345678
                    iban: GB93CLRB04089300007833
                    accountNumber: "00007833"
                    sortCode: "040893"
                    failReason: null
                    ownerName: SAN ZHANG
                    status: S
                x-onerway-headers:
                  Content-Type: application/json;charset=UTF-8
                  x-timestamp: "1789113562"
                  x-signature: replace_with_hmac_sha256_signature
      responses:
        "200":
          description: 成功接收并受理通知后，返回 HTTP 200 和 `respCode=20000`；响应码不是 `20000` 时 Onerway
            会重试。
          content:
            application/json:
              schema:
                type: object
                properties:
                  respCode:
                    type: string
                  respMsg:
                    type: string
                required:
                  - respCode
                  - respMsg
              examples:
                return_success:
                  summary: 返回成功 JSON
                  value:
                    respCode: "20000"
                    respMsg: success
      x-onerway-verification:
        scheme: header-hmac
        signature:
          header: x-signature
          encoding: hex
        timestamp:
          header: x-timestamp
          tolerance: 300
        algorithm: hmac-sha256
        rule: timestamp-dot-raw-body
        reference: /zh/embedded-finance/api-reference/webhook-description
      x-onerway-header-fields:
        - name: x-signature
          schema:
            type: string
            description: Webhook 签名请求头。
        - name: x-timestamp
          schema:
            type: string
            description: Webhook 验证时间戳请求头。
```
