APIs Withdraw
I. Create withdraw command
POST /v1/api/order/create
HTTP Body Request
Attribute | Mandatory | Data Type | Description |
---|---|---|---|
requestId | ✔️ | String | Merchant's identifying request string |
requestTime | ✔️ | Long | Time of sending request. Miliseconds |
requestType | ✔️ | String | Identify request type. Value: createOrder |
orderId | ✔️ | String | Merchant's order ID |
accountId | ✔️ | String | Customer's ID of merchant |
amount | ✔️ | Double | Withdraw amount in USDT as default |
type | ✔️ | String | Command code. Value withdraw |
network | String | Network: Current supported value BSC (default) | |
redirectUrl | String | URL is structured by partner. FastPay uses this URL to navigate from FastPay's website to partner's buying page after customer finishes payment processing. View detail | |
ipnUrl | String | URL is structured by partner. FastPay uses this URL to notify to merchant's server when order process. View detail | |
signature | ✔️ | String | Checksum signature. View detail |
Request Example:
{
"requestId": 1721731450216,
"requestType": "createOrder",
"requestTime": 1721731450216,
"orderId": 1721731450216,
"accountId": "1",
"network": "BSC",
"type": "withdraw",
"redirectUrl": "https://sandbox-cp.wisgroup.io/exchange/step3",
"amount": 0.2,
"signature": "376de71fca57d35d4dfeec12941afc626700a304e32a1e0e9f18d8e0ada076f804669840cb08ed2a8585c09a75bb9725d85b6f254bbbd7cfe09fa87cca554974"
}
HTTP Body Response of Json 'detail'
View Order Response Object for detail
II. Proceed withdraw
User input wallet address and proceed to withdraw money
III. Processing withdrawal result
After customer finishes withdrawing, we will notify withdrawal result with body as below through two methods: Redirect and IPN.
Consult deposit command to view detail