# Virtual account closure result

> Receive the result of a virtual account closure request.

```yaml
openapi: 3.1.0
x-onerway-docs-version: original
x-onerway-spec-key: embedded-finance/webhooks/virtual-account-closure
info:
  title: Virtual account closure result
  version: original
  description: Receive the result of a virtual account closure request.
webhooks:
  virtual.account.closure:
    post:
      summary: Virtual account closure result
      description: Receive the result of a virtual account closure request.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                request_id:
                  type: string
                  description: Unique notification ID for deduplication.
                  x-onerway-signature-participation: included
                event_type:
                  type: string
                  description: Event type identifier.
                  x-onerway-constraints:
                    - kind: values
                      text: Fixed to `EMFIN.CLOSE_VA_RESULT` for this webhook.
                  x-onerway-signature-participation: included
                created_at:
                  type: string
                  description: Notification creation time in ISO 8601 format.
                  x-onerway-signature-participation: included
                version:
                  type: string
                  description: Webhook payload version.
                  x-onerway-signature-participation: included
                data:
                  type: object
                  properties:
                    vaApplicationId:
                      type: integer
                      description: Virtual account application ID used in the closure request.
                    merchantNo:
                      type: string
                      description: Merchant number associated with the virtual account.
                    userId:
                      type: integer
                      description: ID of the user whose virtual account was requested to be closed.
                    accountNumber:
                      type: string
                      description: Virtual account number.
                      x-onerway-constraints:
                        - kind: range
                          max: 64
                          unit: characters
                    sortCode:
                      type: string
                      description: Bank sort code of the virtual account.
                      x-onerway-constraints:
                        - kind: range
                          max: 32
                          unit: characters
                    status:
                      type: string
                      description: Virtual account closure status.
                      enum:
                        - S
                        - F
                      x-enum-descriptions:
                        S: Virtual account closure succeeded.
                        F: Virtual account closure failed.
                    failReason:
                      type: string
                      description: Reason for an unsuccessful closure result.
                      x-onerway-constraints:
                        - kind: range
                          max: 512
                          unit: characters
                      x-onerway-value:
                        empty: true
                        when:
                          en: The success example contains an empty string.
                          zh: 成功示例中为空字符串。
                    ownerName:
                      type: string
                      description: Name of the virtual account owner.
                      x-onerway-constraints:
                        - kind: range
                          max: 256
                          unit: characters
                    completeDate:
                      type: string
                      description: Closure completion date in YYYY-MM-DD format.
                    vaCloseReason:
                      type: string
                      description: Reason submitted in the virtual account closure request.
                      x-onerway-constraints:
                        - kind: range
                          max: 512
                          unit: characters
                  description: Virtual account closure result.
                  x-onerway-signature-participation: included
            examples:
              closure_success:
                summary: Virtual account closed
                value:
                  request_id: "2099342723713728512"
                  event_type: EMFIN.CLOSE_VA_RESULT
                  created_at: 2026-09-14T11:41:23+08:00
                  version: v1.0
                  data:
                    vaApplicationId: 987654321
                    merchantNo: 800***
                    userId: 12345678
                    accountNumber: "00007852"
                    sortCode: "040893"
                    status: S
                    failReason: ""
                    ownerName: SAN ZHANG
                    completeDate: 2026-09-14
                    vaCloseReason: VA Cancellation Reason
                x-onerway-headers:
                  Content-Type: application/json;charset=UTF-8
                  x-timestamp: "1789357283"
                  x-signature: replace_with_hmac_sha256_signature
      responses:
        "200":
          description: After receiving and accepting the notification, return HTTP 200
            with `respCode=20000`. Onerway retries when the response code is not
            `20000`.
          content:
            application/json:
              schema:
                type: object
                properties:
                  respCode:
                    type: string
                  respMsg:
                    type: string
                required:
                  - respCode
                  - respMsg
              examples:
                return_success:
                  summary: Return success 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: /embedded-finance/api-reference/webhook-description
      x-onerway-header-fields:
        - name: x-signature
          schema:
            type: string
            description: Webhook signature header.
        - name: x-timestamp
          schema:
            type: string
            description: Webhook verification timestamp header.
```
