# Deposit notification

> Receive an incoming deposit notification.

```yaml
openapi: 3.1.0
x-onerway-docs-version: original
x-onerway-spec-key: embedded-finance/webhooks/deposit-notification
info:
  title: Deposit notification
  version: original
  description: Receive an incoming deposit notification.
webhooks:
  deposit.notification:
    post:
      summary: Deposit notification
      description: Receive an incoming deposit notification.
      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` 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: Deposit transaction ID.
                    merchantNo:
                      type: string
                      description: Merchant number associated with the deposit.
                    remark:
                      type: string
                      description: Transaction remark provided by the bank.
                      x-onerway-constraints:
                        - kind: range
                          max: 200
                          unit: characters
                    currencyCode:
                      type: string
                      description: Deposit currency.
                      x-onerway-constraints:
                        - kind: range
                          max: 3
                          unit: characters
                    transAmount:
                      type: number
                      description: Deposit amount.
                    isReturn:
                      type: string
                      description: Indicates the deposit scenario; the value is a string, not a JSON
                        boolean.
                      enum:
                        - "false"
                        - "true"
                      x-enum-descriptions:
                        "false": Normal incoming deposit.
                        "true": Deposit credited after its return was rejected.
                    createTime:
                      type: string
                      description: Deposit creation time in YYYY-MM-DD HH:mm:ss format.
                    completeTime:
                      type: string
                      description: Deposit completion time in YYYY-MM-DD HH:mm:ss format.
                    remitAccountIban:
                      type: string
                      description: Remitting account IBAN.
                      x-onerway-constraints:
                        - kind: range
                          max: 32
                          unit: characters
                    remitterName:
                      type: string
                      description: Name of the remitter.
                      x-onerway-constraints:
                        - kind: range
                          max: 256
                          unit: characters
                    remittanceBank:
                      type: string
                      description: Name of the remitting bank.
                    payeeName:
                      type: string
                      description: Name of the payee.
                      x-onerway-constraints:
                        - kind: range
                          max: 256
                          unit: characters
                    mainAccountNo:
                      type: string
                      description: Account number of the payee.
                      x-onerway-constraints:
                        - kind: range
                          max: 256
                          unit: characters
                    bankSerialNo:
                      type: string
                      description: Bank transaction serial number.
                      x-onerway-constraints:
                        - kind: range
                          max: 64
                          unit: characters
                    sortCode:
                      type: string
                      description: Sort code of the payer bank account.
                      x-onerway-constraints:
                        - kind: range
                          max: 20
                          unit: characters
                    payerCountry:
                      type: string
                      description: Country or region code of the payer.
                      x-onerway-constraints:
                        - kind: range
                          max: 20
                          unit: characters
                    paymentRail:
                      type: string
                      description: Payment rail used for the deposit.
                      x-onerway-constraints:
                        - kind: range
                          max: 64
                          unit: characters
                    bankTransferReference:
                      type: string
                      description: Bank transfer reference.
                      x-onerway-constraints:
                        - kind: range
                          max: 256
                          unit: characters
                    preMatchUserId:
                      type: integer
                      description: User ID identified before deposit matching.
                  description: Incoming deposit details.
                  x-onerway-signature-participation: included
            examples:
              incoming_deposit:
                summary: Incoming deposit callback payload
                value:
                  request_id: "2098358001248374784"
                  event_type: EMFIN.RECHARGE
                  created_at: 2026-09-11T18:28:27+08:00
                  version: v1.0
                  data:
                    rechargeId: 2098358000329
                    merchantNo: 800***
                    remark: example_bank_remark_001
                    currencyCode: GBP
                    transAmount: 50.16
                    isReturn: "false"
                    createTime: 2026-09-11 18:28:24
                    completeTime: 2026-09-11 18:28:27
                    remitAccountIban: "****7834"
                    remitterName: SAN ZHANG
                    remittanceBank: HSBC UK BANK PLC
                    payeeName: SAN ZHANG
                    mainAccountNo: GB**CLRB**********7833
                    bankSerialNo: example_bank_serial_001
                    sortCode: "040893"
                    payerCountry: GB
                    paymentRail: Faster Payments
                    bankTransferReference: example_transfer_reference_001
                    preMatchUserId: 12345678
                x-onerway-headers:
                  Content-Type: application/json;charset=UTF-8
                  x-timestamp: "1789122507"
                  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.
```
