Webhook
When the transaction has the final result, through webhook
configuration, the development platform will send a transaction notification to the merchant. When the acceptance is unsuccessful or the sending fails, the transaction will be sent 7 times with a time interval of1m
,5m
,20m
,1h
,12h
,24h.
Notification Template
Headers
Content-Type
application/json
Content Type
X-WSB-CATEGORY
${X-WSB-CATEGORY}
Business identifiers for different notification types
X-WSB-SIGNATURE
${signature}
signature
X-WSB-REQUEST-ID
${requestId}
A unique ID for each request
Card transaction notification
Request Params
Click on the returned object Card Transaction records Interface to view the response data
Request Example
{
"orderNo": "1852379830190366720",
"merchantOrderNo": "T1852379826671345664",
"cardNo": "23424290324234454242",
"currency": "USD",
"amount": "15",
"fee": "0",
"receivedAmount": "0",
"receivedCurrency": "USD",
"type": "create",
"status": "success",
"remark": null,
"transactionTime": 1730476742000
}
Response
{
"success": true,
"code": 200,
"msg": "Success",
"data": null
}
Card Authorization Transaction Notification
Request Params
Click on the returned object Card Authorization Transaction Interface to view the response data
Response Example
{
"cardNo": "1242352328671924231",
"tradeNo": "trans1232435363435463432",
"originTradeNo": null,
"currency": "CNY",
"amount": "16.96",
"authorizedAmount": "2.45",
"authorizedCurrency": "USD",
"fee": "0.5",
"feeCurrency": "USD",
"crossBoardFee": "0",
"crossBoardFeeCurrency": null,
"settleAmount": 0,
"settleCurrency": null,
"settleDate": null,
"merchantName": "ALP*Mr Rice 1223",
"type": "auth",
"typeStr": "授权",
"status": "authorized",
"statusStr": "已授权",
"transactionTime": 1729422898000,
"description": "Auth"
}
Response
{
"success": true,
"code": 200,
"msg": "Success",
"data": null
}
Card Authorization Fee Transaction Notification
Request Params
Click on the returned object Card Authorization Fee Transaction Interface to view the response data
Request Example
{
"cardNo": "1242352328671924231",
"tradeNo": "CAF1232435363435463432",
"originTradeNo": "trans1232435363435463432",
"currency": "USD",
"amount": "0.5",
"type": "card_patch_fee",
"deductionSourceFunds": "wallet",
"status": "success",
"statusStr": "Success",
"transactionTime": 1729422898000
}
Response
{
"success": true,
"code": 200,
"msg": "Success",
"data": null
}
Card 3ds Transaction Notification
Request Params
cardNo
String
true
Bank Card ID
tradeNo
String
true
Transaction serial num
originTradeNo
String
false
Origin Transaction serial num
currency
String
true
currency
amount
BigDecimal
true
amount
merchantName
String
true
Merchant Name (Transaction Scenario)
values
String
true
value. The merchant's public key is encrypted and returned, and the merchant's private key decrypt.
type
String
true
Type
third_3ds_otp: 3ds otp;
auth_url: Transaction authorization response url activation_code:Activation code (physical card)
description
String
false
Transaction Description
transactionTime
Long
true
Transaction time. Millisecond timestamp
expirationTime
Long
false
ExpirationTime time. Millisecond timestamp
Request Example
Example Response
{
"cardNo": "1242352328671924231",
"tradeNo": "trans1232435363435463432",
"originTradeNo": null,
"currency": "CNY",
"amount": "16.96",
"merchantName": "ULTRA MOBILE",
"values": "ajfon34nNOIN24nafaiw4onnfn0iw32ngfn0IF0Q34NFQFOFAW", //Plain text example: 204566
"type": "third_3ds_otp",
"transactionTime": 1729422898000,
"description": null
}
{
"success": true,
"code": 200,
"msg": "Success",
"data": null
}
Card Holder Notification
Request Params
holderId
Long
true
Holder ID
merchantOrderNo
String
false
Merchant order number
cardTypeId
Long
true
Card Type ID
String
true
firstName
String
true
firstName
lastName
String
true
lastName
status
String
true
pass_audit: pass reject: reject
respMsg
String
false
remark
Example Response
{
"holderId": 123456,
"cardTypeId": 111016,
"email": "test@test.com",
"firstName": "first",
"lastName": "last",
"status": "reject",
"respMsg": "邮箱错误"
}
{
"success": true,
"code": 200,
"msg": "Success",
"data": null
}
Physical card event notification
Request Params
{
"merchantOrderNo": "35nigjaongaognaeorig", //Merchant order number
"cardNo": "jojaga3-35mg-35saga-3535dfg", //Card ID
"type": "card_activated", //Type
"status": "success", //Status. wait_process processing success fail
"remark": null
}
Response
{
"success": true,
"code": 200,
"msg": "Success",
"data": null
}
Work event notification
Request Params
{
"merchantOrderNo": "13243897979979797999008085",
"orderNo": "WORK-202508071953472304731676672",
"title": "ApplePay",
"target": "5533700042831234",
"content": "Active",
"tradeType": "CARD_ACTIVE",
"tradeStatus": "processing", //wait_process; processing; success; fail
"remark": null,
"createTime": 1754607865000,
"updateTime": 1754648044000
}
Response
{
"success": true,
"code": 200,
"msg": "Success",
"data": null
}
Last updated