Skip to main content

Withdrawal callback notification

Webhook 

When the withdrawal order status changes to success or failure or rejected, the merchant will receive a withdrawal callback notification, and the merchant needs to update the local order status based on the callback notification.

info

Merchant can set the callback address when initiating a withdrawal application. When the withdrawal result is confirmed, the system will send a successful withdrawal notification to this URL.

The callback will be sent up to 6 times, respectively at 0 seconds, 15 seconds, 30 seconds, 3 minutes, 5 minutes, and 10 minutes after the recharge is confirmed.

When the merchant returns success normally, the system will consider the callback successful and will not send subsequent callbacks.

Note: The merchant needs to verify the signature of the callback notification to ensure the security of the notification. The signing method of the callback is consistent with the normal request.

Request

Body

required

    chainId int32required

    Chain ID

    This is the platform internal ID, not the chain ID on the chain or from the wallet, can be obtained from Get Chain List interface

    currencyId int32required

    Currency ID

    Can be obtained from Get Currency List interface

    withdrawId int32required

    Withdrawal order ID

    outTradeNo stringnullable

    Merchant order number

    withdrawAmount stringrequired

    Withdrawal amount

    Note: The value of this field is an integer, calculated by (actual_amount * 10^currency_decimals)

    Merchant Pro only: Can contain multiple amount, separated by ,, corresponding to the withdrawal address one by one

    withdrawAddress stringrequired

    Withdrawal address

    Merchant Pro only: Can contain multiple addresses, separated by ,, corresponding to the withdrawal amount one by one

    withdrawStatus int32required

    Possible values: [0, 1, 2, 3, 4, 5]

    Withdrawal order status

    • 0 - Success
    • 1 - Pending approval
    • 2 - Under review
    • 3 - Block confirmation
    • 4 - Failure
    • 5 - Rejected
    withdrawTime date-timerequired

    Withdrawal application time

    transferHash stringnullable

    Transaction hash

Responses

OK

Schema

    string

    Possible values: [success]

Loading...