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.
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
}
Last updated