# Payment notifications

> Receive V3 payment status notifications, verify signatures, and handle failures and returns separately.

```yaml
openapi: 3.1.0
x-onerway-docs-version: original
x-onerway-spec-key: transfer/webhooks/v3-transfer-result
info:
  title: Payment notifications
  version: original
  description: Receive V3 payment status notifications, verify signatures, and
    handle failures and returns separately.
webhooks:
  v3.transfer.result:
    post:
      summary: Payment notifications
      description: Receive V3 payment status notifications, verify signatures, and
        handle failures and returns separately.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                requestId:
                  type: string
                  description: Notification identifier generated for this notification. Distinct
                    from the merchant payment reference in data.requestId.
                eventType:
                  type: string
                  description: "Event type. Fixed value: transfer.transaction.status.change."
                createdAt:
                  type: string
                  description: Notification creation time in ISO local date-time format. Beijing
                    time (UTC+8).
                version:
                  type: string
                  description: Current version of the notification message.
                data:
                  type: object
                  properties:
                    merchantNo:
                      type: string
                      description: Merchant number of the request initiator.
                    onBehalfOf:
                      type: string
                      description: Merchant number the request applies to when acting on behalf of
                        another merchant; otherwise omitted.
                    requestId:
                      type: string
                      description: Merchant-generated business reference for the payout.
                    transferId:
                      type: string
                      description: Onerway payment identifier.
                    status:
                      type: string
                      description: Payment status for this notification event; returned transfers use
                        RETURNED. See [enum
                        values](/transfer/api-reference/v3-enums#transactionstatus-payment-statuses).
                      enum:
                        - A
                        - P
                        - S
                        - F
                        - RETURNED
                      x-enum-descriptions:
                        A: Created
                        P: Processing
                        S: Successful
                        F: Failed
                        RETURNED: Returned
                    payoutStatusReason:
                      type: string
                      description: Additional payment status information. Failure reasons follow the
                        existing merchant-facing reason rules. For RETURNED, the
                        reason starts with Returned- fail reason:.
                    transactionInfo:
                      type: object
                      properties:
                        sourceCurrency:
                          type: string
                          description: Source currency. See [currency
                            enums](/transfer/api-reference/v3-enums#currency-enums).
                        sourceAmount:
                          type: number
                          description: Total amount debited from the merchant, including the platform
                            service fee, in sourceCurrency.
                        targetCurrency:
                          type: string
                          description: Target currency. See [currency
                            enums](/transfer/api-reference/v3-enums#currency-enums).
                        targetAmount:
                          type: number
                          description: Payment amount in targetCurrency. Use status to determine the
                            payment outcome.
                        exchangeRate:
                          type: number
                          description: Exchange rate recorded for this payment.
                        destinationCountry:
                          type: string
                          description: Recipient account country or region. See [country/region
                            enums](/transfer/api-reference/v3-enums#countryregion-enums).
                        paymentMethod:
                          type: string
                          description: Payment method. See [enum
                            values](/transfer/api-reference/v3-enums#paymentmethod-payment-methods).
                          enum:
                            - BANK_TRANSFER
                            - SWIFT
                            - E_WALLET
                            - CASH_PICKUP
                          x-enum-descriptions:
                            BANK_TRANSFER: Bank transfer
                            SWIFT: SWIFT transfer
                            E_WALLET: E-wallet
                            CASH_PICKUP: Cash pickup
                        transactionPurpose:
                          type: string
                          description: Transaction purpose. See [enum
                            values](/transfer/api-reference/v3-enums#transactionpurpose-transaction-purposes).
                          enum:
                            - TRANSFER_TO_OWN_ACCOUNT
                            - LOAN_OR_CREDIT_REPAYMENT
                            - FREIGHT_CHARGES
                            - PROFESSIONAL_OR_BUSINESS_SERVICES
                            - OTHER
                          x-enum-descriptions:
                            TRANSFER_TO_OWN_ACCOUNT: Transfer to own account
                            LOAN_OR_CREDIT_REPAYMENT: Loan or credit repayment
                            FREIGHT_CHARGES: Freight charges
                            PROFESSIONAL_OR_BUSINESS_SERVICES: Professional or business services
                            OTHER: Other
                        reference:
                          type: string
                          description: Payment reference or remarks.
                        serviceFeeAmount:
                          type: number
                          description: Platform service fee in serviceFeeCurrency. A negative value
                            represents a fee debit; the sign is preserved.
                        serviceFeeCurrency:
                          type: string
                          description: Platform service fee currency, the same as sourceCurrency.
                        chargeBearer:
                          type: string
                          description: Platform fee bearer. See [enum
                            values](/transfer/api-reference/v3-enums#chargebearer-platform-fee-bearers).
                          enum:
                            - DEBT
                            - CRED
                          x-enum-descriptions:
                            DEBT: Payer bears the platform fee
                            CRED: Beneficiary bears the platform fee
                        swiftFeeType:
                          type: string
                          description: SWIFT fee option; separate from the platform fee bearer. See [enum
                            values](/transfer/api-reference/v3-enums#swiftfeetype-swift-fee-options).
                          enum:
                            - OUR
                            - SHA
                          x-enum-descriptions:
                            OUR: Payer bears the SWIFT fees
                            SHA: Fees are shared
                      description: Transaction information for this payment.
                    beneficiary:
                      type: object
                      properties:
                        beneficiaryId:
                          type: string
                          description: Onerway beneficiary ID used for this payment; omitted when
                            unavailable.
                        entityType:
                          type: string
                          description: Entity type. See [enum
                            values](/transfer/api-reference/v3-enums#entitytype-entity-types).
                          enum:
                            - INDIVIDUAL
                            - BUSINESS
                          x-enum-descriptions:
                            INDIVIDUAL: Individual
                            BUSINESS: Business
                        individual:
                          type: object
                          properties:
                            name:
                              type: object
                              properties:
                                firstName:
                                  type: string
                                  description: Beneficiary’s first name.
                                lastName:
                                  type: string
                                  description: Beneficiary’s last name.
                              description: Personal name
                            identity:
                              type: object
                              properties:
                                idType:
                                  type: string
                                  description: Identity document type
                                idNumber:
                                  type: string
                                  description: Identity document number
                                issuingCountry:
                                  type: string
                                  description: Issuing country or region code. See [country/region
                                    enums](/transfer/api-reference/v3-enums#countryregion-enums).
                                expiryDate:
                                  type: string
                                  description: "Document expiry date; format: yyyy-MM-dd."
                                issueDate:
                                  type: string
                                  description: "Document issue date; format: yyyy-MM-dd."
                              description: Identity document
                            dateOfBirth:
                              type: string
                              description: "Date of birth; format: yyyy-MM-dd."
                          description: Individual information. Applies only when entityType is INDIVIDUAL.
                        business:
                          type: object
                          properties:
                            companyName:
                              type: string
                              description: Beneficiary’s company name.
                            tin:
                              type: string
                              description: Tax identification number
                            registrationNumber:
                              type: string
                              description: Business registration number
                            registrationDate:
                              type: string
                              description: "Business registration date; format: yyyy-MM-dd."
                          description: Business information. Applies only when entityType is BUSINESS.
                        contact:
                          type: object
                          properties:
                            email:
                              type: string
                              description: Beneficiary’s email address.
                            mobile:
                              type: object
                              properties:
                                areaCode:
                                  type: string
                                  description: International dialing code, including +
                                number:
                                  type: string
                                  description: Telephone number without the dialing code
                              description: Mobile telephone
                          description: Contact details
                        address:
                          type: object
                          properties:
                            countryCode:
                              type: string
                              description: Country or region code. See [country/region
                                enums](/transfer/api-reference/v3-enums#countryregion-enums).
                            state:
                              type: string
                              description: State or province. See the validation rules returned by [Query
                                beneficiary field
                                rules](/transfer/api-reference/endpoints/v3-beneficiaries-schema).
                            city:
                              type: string
                              description: City. See the validation rules returned by [Query beneficiary field
                                rules](/transfer/api-reference/endpoints/v3-beneficiaries-schema).
                            addressLine1:
                              type: string
                              description: Primary street address, usually including the building number and
                                street name.
                            addressLine2:
                              type: string
                              description: Additional address information, including building, floor, room, or
                                unit.
                            addressLine3:
                              type: string
                              description: Other necessary address information.
                            postalCode:
                              type: string
                              description: Postal code of the beneficiary’s address.
                          description: Address details
                        account:
                          type: object
                          properties:
                            countryCode:
                              type: string
                              description: Country or region code. See [country/region
                                enums](/transfer/api-reference/v3-enums#countryregion-enums).
                            currency:
                              type: string
                              description: Account currency. See [currency
                                enums](/transfer/api-reference/v3-enums#currency-enums).
                            bankAccount:
                              type: object
                              properties:
                                accountHolderName:
                                  type: string
                                  description: Bank account holder name
                                bankName:
                                  type: string
                                  description: Beneficiary bank name.
                                accountType:
                                  type: string
                                  description: Bank account type. See [enum
                                    values](/transfer/api-reference/v3-enums#accounttype-bank-account-types).
                                  enum:
                                    - CHECKING
                                    - SAVING
                                    - ORDINARY
                                  x-enum-descriptions:
                                    CHECKING: Checking account
                                    SAVING: Savings account
                                    ORDINARY: Ordinary account
                                accountIdentifier:
                                  type: object
                                  properties:
                                    type:
                                      type: string
                                      description: Bank account identifier type. See [enum
                                        values](/transfer/api-reference/v3-enums#type-account-identifier-types).
                                      enum:
                                        - IBAN
                                        - LOCAL_ACCOUNT
                                      x-enum-descriptions:
                                        IBAN: International Bank Account Number
                                        LOCAL_ACCOUNT: Local bank account number
                                    value:
                                      type: string
                                      description: IBAN or local bank account number matching type
                                  description: Bank account identifier and type
                                swiftCode:
                                  type: string
                                  description: SWIFT/BIC code
                                routingNumber:
                                  type: string
                                  description: "Bank code or local clearing routing code identifying the
                                    beneficiary bank or its route in the local
                                    clearing network. The code type depends on
                                    the destination country: UK Sort Code for
                                    the United Kingdom; ABA Routing Number for
                                    the United States."
                                branchNumber:
                                  type: string
                                  description: Code identifying the bank branch where the beneficiary account is
                                    held.
                              description: Bank account
                            walletAccount:
                              type: object
                              properties:
                                walletProvider:
                                  type: string
                                  description: Wallet provider. See [wallet
                                    providers](/transfer/api-reference/v3-enums#walletprovider-walletformat-wallet-providers-and-account-formats).
                                walletFormat:
                                  type: string
                                  description: Wallet account format for the selected walletProvider. See [wallet
                                    account
                                    formats](/transfer/api-reference/v3-enums#walletprovider-walletformat-wallet-providers-and-account-formats).
                                walletIdentifier:
                                  type: string
                                  description: Beneficiary wallet account identifier. The account format depends
                                    on walletProvider and walletFormat.
                              description: E-wallet account
                            cashPickupAccount:
                              type: object
                              properties:
                                pickupBankName:
                                  type: string
                                  description: Cash pickup institution
                                pickupBranchId:
                                  type: string
                                  description: Pickup branch identifier
                                pickupBranchName:
                                  type: string
                                  description: Pickup branch name
                                pickupBranchAddress:
                                  type: string
                                  description: Pickup branch address
                              description: Cash pickup location
                          description: Recipient account
                      description: Beneficiary information for this payment.
                    createTime:
                      type: string
                      description: Transaction creation time, yyyy-MM-dd HH:mm:ss, Beijing time
                        (UTC+8).
                    updateTime:
                      type: string
                      description: Time of the status event in this notification, yyyy-MM-dd HH:mm:ss,
                        Beijing time (UTC+8).
                  description: Payment details with the same business field structure as the V3
                    single-payment query result. Status and updateTime refer to
                    this notification event.
            examples:
              success:
                summary: Payment succeeded
                value:
                  requestId: "10000001"
                  eventType: transfer.transaction.status.change
                  createdAt: 2026-10-22T10:00:00
                  version: V3
                  data:
                    merchantNo: "800699"
                    requestId: demo_transfer_001
                    transferId: "1000001"
                    status: S
                    payoutStatusReason: ""
                    transactionInfo:
                      sourceCurrency: USD
                      sourceAmount: 100
                      targetCurrency: USD
                      targetAmount: 99
                      exchangeRate: 1
                      destinationCountry: US
                      paymentMethod: BANK_TRANSFER
                      transactionPurpose: TRANSFER_TO_OWN_ACCOUNT
                      reference: demo payment
                      serviceFeeAmount: -1
                      serviceFeeCurrency: USD
                      chargeBearer: DEBT
                    beneficiary:
                      beneficiaryId: "10001"
                      entityType: INDIVIDUAL
                      individual:
                        name:
                          firstName: Example
                          lastName: Recipient
                      contact:
                        email: recipient@example.com
                      address:
                        countryCode: US
                        city: Example City
                        addressLine1: 123 Example Street
                      account:
                        countryCode: US
                        currency: USD
                        bankAccount:
                          accountHolderName: Example Recipient
                          bankName: Example Bank
                          accountIdentifier:
                            type: LOCAL_ACCOUNT
                            value: demo_account_001
                    createTime: 2026-10-19 13:45:10
                    updateTime: 2026-10-22 10:00:00
                x-onerway-headers:
                  Content-Type: application/json;charset=UTF-8
                  x-timestamp: "1792634400"
                  x-signature: replace_with_signature
              failure:
                summary: Payment failed
                value:
                  requestId: "10000002"
                  eventType: transfer.transaction.status.change
                  createdAt: 2026-10-22T10:00:00
                  version: V3
                  data:
                    merchantNo: "800699"
                    requestId: demo_transfer_001
                    transferId: "1000001"
                    status: F
                    payoutStatusReason: Beneficiary account is invalid
                    transactionInfo:
                      sourceCurrency: USD
                      sourceAmount: 100
                      targetCurrency: USD
                      targetAmount: 99
                      exchangeRate: 1
                      destinationCountry: US
                      paymentMethod: BANK_TRANSFER
                      transactionPurpose: TRANSFER_TO_OWN_ACCOUNT
                      reference: demo payment
                      serviceFeeAmount: -1
                      serviceFeeCurrency: USD
                      chargeBearer: DEBT
                    beneficiary:
                      beneficiaryId: "10001"
                      entityType: INDIVIDUAL
                      individual:
                        name:
                          firstName: Example
                          lastName: Recipient
                      contact:
                        email: recipient@example.com
                      address:
                        countryCode: US
                        city: Example City
                        addressLine1: 123 Example Street
                      account:
                        countryCode: US
                        currency: USD
                        bankAccount:
                          accountHolderName: Example Recipient
                          bankName: Example Bank
                          accountIdentifier:
                            type: LOCAL_ACCOUNT
                            value: demo_account_001
                    createTime: 2026-10-19 13:45:10
                    updateTime: 2026-10-22 10:01:00
                x-onerway-headers:
                  Content-Type: application/json;charset=UTF-8
                  x-timestamp: "1792634460"
                  x-signature: replace_with_signature
              returned:
                summary: Payment failed (Returned)
                value:
                  requestId: "10000003"
                  eventType: transfer.transaction.status.change
                  createdAt: 2026-10-23T09:00:00
                  version: V3
                  data:
                    merchantNo: "800699"
                    requestId: demo_transfer_001
                    transferId: "1000001"
                    status: RETURNED
                    payoutStatusReason: Returned- fail reason:Beneficiary account closed
                    transactionInfo:
                      sourceCurrency: USD
                      sourceAmount: 100
                      targetCurrency: USD
                      targetAmount: 99
                      exchangeRate: 1
                      destinationCountry: US
                      paymentMethod: BANK_TRANSFER
                      transactionPurpose: TRANSFER_TO_OWN_ACCOUNT
                      reference: demo payment
                      serviceFeeAmount: -1
                      serviceFeeCurrency: USD
                      chargeBearer: DEBT
                    beneficiary:
                      beneficiaryId: "10001"
                      entityType: INDIVIDUAL
                      individual:
                        name:
                          firstName: Example
                          lastName: Recipient
                      contact:
                        email: recipient@example.com
                      address:
                        countryCode: US
                        city: Example City
                        addressLine1: 123 Example Street
                      account:
                        countryCode: US
                        currency: USD
                        bankAccount:
                          accountHolderName: Example Recipient
                          bankName: Example Bank
                          accountIdentifier:
                            type: LOCAL_ACCOUNT
                            value: demo_account_001
                    createTime: 2026-10-19 13:45:10
                    updateTime: 2026-10-23 09:00:00
                x-onerway-headers:
                  Content-Type: application/json;charset=UTF-8
                  x-timestamp: "1792717200"
                  x-signature: replace_with_signature
      responses:
        "200":
          description: Return HTTP 2xx, such as HTTP 200, after successfully receiving and
            processing the notification. Request errors and non-2xx responses
            are treated as notification failures.
      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: /transfer/api-reference/v3-payment-notifications
      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.
```
