# Deposit matching result

> Receive the result of a deposit matching request.

```yaml
openapi: 3.1.0
x-onerway-docs-version: original
x-onerway-spec-key: embedded-finance/webhooks/match-deposit-result
info:
  title: Deposit matching result
  version: original
  description: Receive the result of a deposit matching request.
webhooks:
  match.deposit.result:
    post:
      summary: Deposit matching result
      description: Receive the result of a deposit matching 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.RECHARGE_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:
                    rechargeId:
                      type: integer
                      description: Recharge ID submitted in the deposit matching request.
                    merchantNo:
                      type: string
                      description: Merchant number associated with the deposit.
                    sourceOrderNo:
                      type: string
                      description: Merchant order number associated with the deposit matching request.
                      x-onerway-constraints:
                        - kind: range
                          max: 64
                          unit: characters
                    status:
                      type: string
                      description: Deposit matching result status.
                      enum:
                        - S
                        - F
                      x-enum-descriptions:
                        S: Deposit matching succeeded.
                        F: Deposit matching failed.
                    failReason:
                      type:
                        - string
                        - "null"
                      description: Reason for an unsuccessful deposit match.
                      x-onerway-constraints:
                        - kind: range
                          max: 512
                          unit: characters
                      x-onerway-value:
                        nullable: true
                        when:
                          en: No failure reason is provided.
                          zh: 没有失败原因时返回 `null`。
                    transCompleteTime:
                      type: string
                      description: Transaction completion time in YYYY-MM-DD HH:mm:ss format. Whether
                        a settlement includes this transaction depends on this
                        time.
                  description: Deposit matching result.
                  x-onerway-signature-participation: included
            examples:
              matching_success:
                summary: "Deposit matching callback: success"
                value:
                  request_id: "2098340517686411264"
                  event_type: EMFIN.RECHARGE_RESULT
                  created_at: 2026-09-11T17:18:59+08:00
                  version: v1.0
                  data:
                    rechargeId: 2098358000329
                    merchantNo: 800***
                    sourceOrderNo: "100000000010001"
                    status: S
                    failReason: null
                    transCompleteTime: 2026-09-11 17:18:43
                x-onerway-headers:
                  Content-Type: application/json;charset=UTF-8
                  x-timestamp: "1789118339"
                  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: Successful acknowledgement body
                  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.
```
