# Refund result

> Receive the result of an Embedded Finance refund request.

```yaml
openapi: 3.1.0
x-onerway-docs-version: original
x-onerway-spec-key: embedded-finance/webhooks/refund-result
info:
  title: Refund result
  version: original
  description: Receive the result of an Embedded Finance refund request.
webhooks:
  refund.result:
    post:
      summary: Refund result
      description: Receive the result of an Embedded Finance refund 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.BACK` 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 refund request.
                    status:
                      type: string
                      description: Refund result status.
                      enum:
                        - S
                        - F
                      x-enum-descriptions:
                        S: Refund succeeded.
                        F: Refund failed. You can submit another refund request.
                    failReason:
                      type:
                        - string
                        - "null"
                      description: Reason for a failed refund.
                      x-onerway-constraints:
                        - kind: range
                          max: 512
                          unit: characters
                      x-onerway-value:
                        nullable: true
                        when:
                          en: No failure reason is provided.
                          zh: 没有失败原因时返回 `null`。
                    bankRefundSerialNo:
                      type: string
                      description: Bank refund serial number.
                      x-onerway-constraints:
                        - kind: range
                          max: 64
                          unit: characters
                  description: Refund result.
                  x-onerway-signature-participation: included
            examples:
              refund_success:
                summary: Refund succeeded
                value:
                  request_id: "2099341314851209216"
                  event_type: EMFIN.BACK
                  created_at: 2026-09-14T11:35:47+08:00
                  version: v1.0
                  data:
                    rechargeId: 20993400850938
                    status: S
                    failReason: null
                    bankRefundSerialNo: 02f1f30f-4501-41bc-989f-391a21cd870c
                x-onerway-headers:
                  Content-Type: application/json;charset=UTF-8
                  x-timestamp: "1789356947"
                  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.
```
