Create a withdrawal order
Users can get instant payouts to their Cwallet account with 0 fees from your sites/apps. They can also withdraw to any other wallet with no minimum withdrawal amount limit.
Last updated
Users can get instant payouts to their Cwallet account with 0 fees from your sites/apps. They can also withdraw to any other wallet with no minimum withdrawal amount limit.
Last updated
POST
https://admin.ccpayment.com/ccpayment/v1/withdraw
Return a receiving address and order infor
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Value | Required | Type | Description |
---|---|---|---|---|
Name | Value | Required | Type | Description |
---|---|---|---|---|
Sign*
string
SHA-256 (APPID + APP Secret +timestamp+body (json string)). Signature guide.
Timestamp*
string
Timestamp in seconds (10-digit). The request is valid for two minutes.
Appid*
string
Merchant's unique credential. Find it on the Developer page
Content-Type*
String
application/json; charset=utf-8
merchant_order_id*
string
Order ID in Merchant's system. A unique ID for every order
address*
string
Case 1: Pass the Cwallet ID or Email address linked to Cwallet account If a user wants to withdraw to his Cwallet account
Case 2: Pass the receiving address if the user wants to withdraw to his Web3 wallet.
Note: SATS uses the invoice as a receiving address. Each invoice can only accept one payment.
token_id*
string
Tell CCPayment's server which coin and network should be used for the transaction. You can get the token_id by calling the interface or finding it on this sheet.
If the withdrawal is to Cwallet, any token_id of the coin will be ok.
If the withdrawal is to external addresses, only the corresponding token_id will work.
value*
string
Withdrawal amount
memo
Integer
Pass memo parameter if the receiving address requires a memo. If a memo is required and it is not filled, or filled incorrectly, the asset may be lost
merchant_pays_fee
bool
Ture: the network fee charged from the merchant. False when not specified: the network fee charged from the user. The received amount = withdrawal amount- network fee
Appid
202302010636261620672405236006912
Y
String
Merchant's unique credential. Find it on the Developer page
Timestamp
1677152490
Y
String
Timestamp in seconds (10-digit). The request is valid for two minutes.
Sign
871f0223c66ea72435208d03603a0cb00b90f6ac4a4ba725d00164d967e291f6
Y
String
SHA-256(appId + appSecret + timestamp+body(json string))
code
10000
integer
msg
Success
string
This message only represents the status of the order creation and not the transaction result. The results of the transaction will be pushed in the webhook notification.
data
object
data.order_id
202301090616511612332555323101184
string
Merchant order ID
data.record_id
202301090616511612332555323101184
string
Trading record: one transaction generates one unique
data.network_fee
0
string
Network fee. Withdrawal to Cwallet address charges 0 network fee.
data.network_coin_id
8e5741cf-6e51-4892-9d04-3d40e1dd0128
string
Coin ID for network fee crypto.
data.network_fee_crypto
TRX
string
Crypto unit of network fee.
data.network_fee_value
0.85
string
Network fee value in usd.
data.net_receivable
0.05
string
Amount of withdrawal will be received
code
224066
Number
msg
Service error, please try again
String
data
Object