# 匹配入金结果

> 接收匹配入金请求的处理结果。

```yaml
openapi: 3.1.0
x-onerway-docs-version: original
x-onerway-spec-key: embedded-finance/webhooks/match-deposit-result
info:
  title: 匹配入金结果
  version: original
  description: 接收匹配入金请求的处理结果。
webhooks:
  match.deposit.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.RECHARGE_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:
                    rechargeId:
                      type: integer
                      description: 匹配入金请求中提交的充值 ID。
                    merchantNo:
                      type: string
                      description: 该笔入金所属的商户号。
                    sourceOrderNo:
                      type: string
                      description: 匹配入金请求关联的商户订单号。
                      x-onerway-constraints:
                        - kind: range
                          max: 64
                          unit: 字符
                    status:
                      type: string
                      description: 匹配入金结果状态。
                      enum:
                        - S
                        - F
                      x-enum-descriptions:
                        S: 匹配入金成功。
                        F: 匹配入金失败。
                    failReason:
                      type:
                        - string
                        - "null"
                      description: 匹配入金失败的原因。
                      x-onerway-constraints:
                        - kind: range
                          max: 512
                          unit: 字符
                      x-onerway-value:
                        nullable: true
                        when:
                          en: No failure reason is provided.
                          zh: 没有失败原因时返回 `null`。
                    transCompleteTime:
                      type: string
                      description: 交易完成时间，格式为 YYYY-MM-DD HH:mm:ss。结算是否包含该笔交易，依赖此时间。
                  description: 匹配入金结果。
                  x-onerway-signature-participation: included
            examples:
              matching_success:
                summary: 匹配入金回调：成功
                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: 成功接收并受理通知后，返回 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: 成功应答正文
                  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 验证时间戳请求头。
```
