Callback
purchaseProductIdEvery time when the user makes withdrawal, Enabl3 will send callback request to the Application backend with details.
There are two types of withdrawals:
with withdrawal options, e.g. subscriptions (predefined amount)
custom withdrawal (custom amount)
You need to create POST endpoint on your backend side, which will be requested by Enabl3.
Request body example:
Body
userId
String
Yes
Unique user ID on the Application side
optionId
String
No
This filed will be empty in case of custom withdrawal
purchaseProductId
String
No
You can assign here your own value in Admin panel
amount
Number
Yes
Amount in USDT
tokenAmount
Number
Yes
Amount in tokens
tokenRate
Number
Yes
Token rate
transactionId
String
Yes
Unique tx id from the Enabl3 side. You can find this TX in the admin panel.
createdAt
String
Yes
The date time when user requested withdrawal.
Date format:
yyyy-MM-dd'T'HH:mm:ss.SSSSSS
Callback request will be signed and contains X-REQUEST-SIGNATURE
header.
The example of how to get signature of request body using secret:
For Java
For Node JS
Last updated