# Fund settlement notification

> Receive a fund settlement batch and its transaction details.

```yaml
openapi: 3.1.0
x-onerway-docs-version: original
x-onerway-spec-key: embedded-finance/webhooks/settlement-result
info:
  title: Fund settlement notification
  version: original
  description: Receive a fund settlement batch and its transaction details.
webhooks:
  settlement.result:
    post:
      summary: Fund settlement notification
      description: Receive a fund settlement batch and its transaction details.
      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.SETTLE_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:
                    batchId:
                      type: integer
                      description: Settlement batch ID.
                    merchantNo:
                      type: string
                      description: Merchant number associated with the settlement batch.
                    settleDate:
                      type: string
                      description: Settlement date in YYYY-MM-DD format.
                    currencyCode:
                      type: string
                      description: Settlement currency.
                    amount:
                      type: string
                      description: Total settlement amount.
                    settleDetails:
                      type: array
                      description: Transaction details in the settlement batch.
                      items:
                        type: object
                        properties:
                          userId:
                            type: integer
                            description: User ID associated with the transaction.
                          transactionId:
                            type: integer
                            description: Transaction ID, sourced from `rechargeId` in the Match deposit
                              request.
                          currencyCode:
                            type: string
                            description: Currency of this transaction detail.
                          amount:
                            type: string
                            description: Amount of this transaction detail.
                  description: Fund settlement batch details.
                  x-onerway-signature-participation: included
            examples:
              settlement_batch:
                summary: Fund settlement callback payload
                value:
                  request_id: "0000000000000000001"
                  event_type: EMFIN.SETTLE_RESULT
                  created_at: 2026-09-11T18:24:06+08:00
                  version: v1.0
                  data:
                    batchId: 1001
                    merchantNo: 800***
                    settleDate: 2026-09-11
                    currencyCode: GBP
                    amount: "300.06"
                    settleDetails:
                      - userId: 10001
                        transactionId: 100001
                        currencyCode: GBP
                        amount: "100.01"
                      - userId: 10001
                        transactionId: 100002
                        currencyCode: GBP
                        amount: "100.02"
                      - userId: 10002
                        transactionId: 100003
                        currencyCode: GBP
                        amount: "100.03"
                x-onerway-headers:
                  Content-Type: application/json;charset=UTF-8
                  x-timestamp: "1789122246"
                  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.
```
