BonusPay Documents
English
English
  • Welcome
  • Get Started
  • Basic Fee Structure
  • API Rules
  • Creating an RSA Key
  • Products
  • Crypto TOPUP
    • Parameters
    • getAddress
    • queryCustomerDepositOrderPage
    • getCustomerDepositOrder
    • Notification (Callback)
  • Order Payment by API
    • Parameters
    • Place Order
    • Cancel Order
    • Accept Order
    • Get Order
    • Get PaymentEventList
    • Refund
    • Get Refund Order
    • Notification (Callback)
  • Order Payment by Checkout
    • Parameters
    • Place Order
    • Cancel Order
    • Accept Order
    • Get Order
    • Get PaymentEventList
    • Refund
    • Get Refund Order
    • Notification (Callback)
  • Withdraw
    • Parameters
    • Place Order
    • Get Order
    • Get Networks
    • Notification (Callback)
  • Transfer
    • Parameters
    • Place Order
    • Get Order
    • Get Networks
    • Notification (Callback)
  • Fx Rate
    • Parameters
    • getFxrate
  • Get Account Balance
    • Parameters
    • getAccountList
  • No Code Production
  • Fiat Settlement
    • Parameters
    • Place Order
    • Get Order
    • Notification (Callback)
  • Plug-and-Play
    • WooCommerce
Powered by GitBook
On this page
  • Notification Parameters
  • Example
  • Response Parameters
  • Response Sample
  1. Transfer

Notification (Callback)

Callback

After successful transfer, BonusPay will send relevant results and user information to the merchant in the form of data stream, and the merchant needs to receive and process it according to the document specifications, and return the response.

Notice

  1. The same notification may be sent to the merchant system multiple times. The merchant system must be able to handle duplicate notifications correctly.

  2. During the background notification interaction, if BonusPay receives a response from the merchant that does not comply with the specifications or times out, BonusPay will determine that the notification has failed, resend the notification until it succeeds (default retry 7 times, time interval: 2, 10, 10, 60, 120, 360, 900, unit: minutes), but BonusPay does not guarantee that the notification will eventually be successful.

  3. If the BonusPay recharge result notification is not received, it is recommended that the merchant actively call the order inquiry interface to confirm the order status.

Notification Parameters

Parameter Name
Variable Name
Required
Type
Example
Description

Order Info

withdrawOrder

Required

withdrawOrder

-

Example

{
    "header":{
        "Host":"bonuspay.com",
        "X-Forwarded-For":"172.16.12.81",
        "Connection":"close",
        "Content-Length":"755",
        "X-Real-Ip":"172.16.12.81",
        "X-Forwarded-Proto":"http",
        "X-Forwarded-Port":"80",
        "X-Forwarded-Host":"bonuspay.com",
        "Partner-Id":"200001200101",
        "Sign":"CrjNHPJILbGzUO2syulAwF5Arnh2wmh5SxP2Yd/orMoYKYoLUw4PDDqPrhjt2/zP5X+sDiXdD0UyCmIFdhGAw9A2qg0wO83f6MD2wT+r8lyMfMQcWC+aWz8Rh+Rr1Dz3SZFqZHc6A1TrAaZyvWBWCtSLdlUKbq0yfen6NjYFGp0YU9MKLBkfIouCIgoT+jL+Sf/+GIjkSjOb8Pj/OB2hqj/36TDF+VuNIvUVyQI9Z8u1CbnNogHMrIy4coAWjkfSpqK3/qtlVkGR1Du+f8uQaVrlD6GcadS1P/IPLJyybdTVYhtMLPbDabZaJgGL8jHN6ImEX78WcU2FcAsoF2B0pA==",
        "Request-Id":"21116.222799.16370572829643753",
        "Prod-Sw6":"1-MjExMTYuMjIyNzk5LjE2MzcwNTcyODI5NjQzNzUz-MjE4NjguNDMwLjE2MzczMzE3NDM4MzM2MTgw-2-21868-21116-MTE5Mw==-Iy9zZ3MvYXBpL2NyeXB0by9wbGFjZU9yZGVy-I1RocmVhZC9vcmcuYXBhY2hlLnNreXdhbGtpbmcuYXBtLnRvb2xraXQudHJhY2UuUnVubmFibGVXcmFwcGVyL3J1bg==",
        "Content-Type":"application/json; charset=UTF-8",
        "User-Agent":"Apache-HttpClient/4.5.8 (Java/1.8.0_72)",
        "Accept-Encoding":"gzip,deflate"
    },
    "body":{
        "notify_time":"20211119182223",
        "withdrawOrder":{
            "actualReceivedAmount":{
                "currency":"ETH",
                "amount":0.011
            },
            "partnerFee":{
                "currency":"ETH",
                "amount":0.0012
            },
            "createdTime":1679671169143,
            "orderNo":"20230324000000093",
            "merchantOrderNo": "45318b6facbb4fc48bf4eb8d6201e173",
            "status":"COMPLETED",
            "txid":"0x6941a870b2243406b42d72a9c609ca003c96b74e1f644eea61abd794c9bf780f",
            "address":"0x12cAb94C20523444b7E88F00Ab8a8009e4dF8B6a",
            "expectedReceivedAmount":{
                "currency":"ETH",
                "amount":0.011
            },
            "network":"ETH"
        },
        "_input_charset":"UTF-8",
        "notify_timestamp":1637331743833,
        "notify_id":"202111190340008301"
    }
}

Response Parameters

After receiving the notification, the merchant returns "SUCCESS" to indicate successful reception, and other values indicate exceptions.

Response Sample

Http Header
{
    "Content-Type": "application/json; charset=UTF-8"
}

Http Body
{
  SUCCESS
}

PreviousGet NetworksNextFx Rate

Last updated 7 months ago