circle-chevron-rightWEBHOOKS

circle-info

Please provide the callback address from the merchant. Notification will be made after configuration in the merchant backend.

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 of 1m, 5m, 20m, 1h, 12h, 24h.

Event Template

Headers

Name
Value
describtion

Content-Type

application/json

Content Type

X-WSB-CATEGORY

${X-WSB-CATEGORY}

Business identifiers for different event types

X-WSB-SIGNATURE

${signature}

signature

X-WSB-REQUEST-ID

${requestId}

A unique id for request

Event Response Template

circle-info

When the return structure is as shown below, the callback notification is successful

{
    "success": true,
    "code": 200,  //must return 200
    "msg": null,
    "data": null
}

Card Operation Transaction Event

circle-info

X-WSB-CATEGORY=card_transaction

Request Params

Click on the returned object Card Operation Transaction Interface to view the response data

Example Body

Card Authorization Transaction Event

circle-info

X-WSB-CATEGORY=card_auth_transaction The same transaction serial number may be pushed multiple times.

  1. The status may flow. For example, when type=auth, the first push status=authorized (authorized), after the authorization is successfully received, the status=succeed or other status will be pushed again.

  2. The settlement amount and other information will be pushed, and the amount may change. For example, crossBoardFee and settleAmount will change from 0 to a value.

Request Params

Click on the returned object Card Authorization Transaction Interface to view the response data

Example Body

Card Authorization Fee Transaction Event

circle-info

X-WSB-CATEGORY=card_fee_patch

Request Params

Click on the returned object Card Authorization Fee Transaction Interface to view the response data

Example Body

Card 3DS Transaction Event

circle-info

X-WSB-CATEGORY=card_3ds

Request Params

Click on the returned object Card 3DS Transaction Interface to view the response data

Example Body

Card Holder Event

circle-info

X-WSB-CATEGORY=card_holder

Request Params

Click on the returned object Cardholder-List Interface to view the response data

Example Body

Activate Card Event

circle-info

X-WSB-CATEGORY=physical_card

Request Params

Work Order event

circle-info

X-WSB-CATEGORY=work

Request Params

Click on the returned object Work Order List Interface to view the response data

Example Body

Wallet Transaction event

Note: that if status=fail is not considered the final state, we can manually enter the final status=success (this is a possibility).

circle-info

X-WSB-CATEGORY=wallet_transaction

Request Params

Click on the returned object [Wallet Transaction] Interface to view the response data

Example Body

Wallet Transaction event-v2

circle-info

X-WSB-CATEGORY=wallet_transaction_v2

Request Params

Click on the returned object [Wallet Transaction History] Interface to view the response data

Example Body

Last updated