cURL
curl --request POST \
--url https://apidev.nusd.me/nps/withdraw/internal \
--header 'BIZ-API-KEY: <api-key>' \
--header 'Biz-Api-Nonce: <api-key>' \
--header 'Biz-Api-Signature: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"request_id": "ea6f928b-0b1f-4fd3-a4fe-fc10695d2642",
"wallet_from": "332cf3e4-af07-46f9-a3da-4aa2cbe3bdd4",
"wallet_to": "1b8d5efd-d7a8-48ac-a195-cc8e043ae36b",
"amount": 0.003
}
'import requests
url = "https://apidev.nusd.me/nps/withdraw/internal"
payload = {
"request_id": "ea6f928b-0b1f-4fd3-a4fe-fc10695d2642",
"wallet_from": "332cf3e4-af07-46f9-a3da-4aa2cbe3bdd4",
"wallet_to": "1b8d5efd-d7a8-48ac-a195-cc8e043ae36b",
"amount": 0.003
}
headers = {
"BIZ-API-KEY": "<api-key>",
"Biz-Api-Nonce": "<api-key>",
"Biz-Api-Signature": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'BIZ-API-KEY': '<api-key>',
'Biz-Api-Nonce': '<api-key>',
'Biz-Api-Signature': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
request_id: 'ea6f928b-0b1f-4fd3-a4fe-fc10695d2642',
wallet_from: '332cf3e4-af07-46f9-a3da-4aa2cbe3bdd4',
wallet_to: '1b8d5efd-d7a8-48ac-a195-cc8e043ae36b',
amount: 0.003
})
};
fetch('https://apidev.nusd.me/nps/withdraw/internal', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://apidev.nusd.me/nps/withdraw/internal"
payload := strings.NewReader("{\n \"request_id\": \"ea6f928b-0b1f-4fd3-a4fe-fc10695d2642\",\n \"wallet_from\": \"332cf3e4-af07-46f9-a3da-4aa2cbe3bdd4\",\n \"wallet_to\": \"1b8d5efd-d7a8-48ac-a195-cc8e043ae36b\",\n \"amount\": 0.003\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("BIZ-API-KEY", "<api-key>")
req.Header.Add("Biz-Api-Nonce", "<api-key>")
req.Header.Add("Biz-Api-Signature", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://apidev.nusd.me/nps/withdraw/internal")
.header("BIZ-API-KEY", "<api-key>")
.header("Biz-Api-Nonce", "<api-key>")
.header("Biz-Api-Signature", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"request_id\": \"ea6f928b-0b1f-4fd3-a4fe-fc10695d2642\",\n \"wallet_from\": \"332cf3e4-af07-46f9-a3da-4aa2cbe3bdd4\",\n \"wallet_to\": \"1b8d5efd-d7a8-48ac-a195-cc8e043ae36b\",\n \"amount\": 0.003\n}")
.asString();{
"status": 0,
"data": {
"request_id": "9bfa5014-2f12-4eb8-b979-3cf8cb947b45",
"transaction_id": "28f2505c-55ab-4fc7-8620-152c4045981a"
},
"msg": "<string>"
}{
"status": 0,
"data": {
"request_id": "9bfa5014-2f12-4eb8-b979-3cf8cb947b45",
"transaction_id": "28f2505c-55ab-4fc7-8620-152c4045981a"
},
"msg": "<string>"
}Payout(付款)
站内付款(划转)
把 USDT 付到「NUSD Wallet 地址」——即 NUSD 体系内的钱包。不上链、即时到账、免手续费。
POST
/
nps
/
withdraw
/
internal
cURL
curl --request POST \
--url https://apidev.nusd.me/nps/withdraw/internal \
--header 'BIZ-API-KEY: <api-key>' \
--header 'Biz-Api-Nonce: <api-key>' \
--header 'Biz-Api-Signature: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"request_id": "ea6f928b-0b1f-4fd3-a4fe-fc10695d2642",
"wallet_from": "332cf3e4-af07-46f9-a3da-4aa2cbe3bdd4",
"wallet_to": "1b8d5efd-d7a8-48ac-a195-cc8e043ae36b",
"amount": 0.003
}
'import requests
url = "https://apidev.nusd.me/nps/withdraw/internal"
payload = {
"request_id": "ea6f928b-0b1f-4fd3-a4fe-fc10695d2642",
"wallet_from": "332cf3e4-af07-46f9-a3da-4aa2cbe3bdd4",
"wallet_to": "1b8d5efd-d7a8-48ac-a195-cc8e043ae36b",
"amount": 0.003
}
headers = {
"BIZ-API-KEY": "<api-key>",
"Biz-Api-Nonce": "<api-key>",
"Biz-Api-Signature": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'BIZ-API-KEY': '<api-key>',
'Biz-Api-Nonce': '<api-key>',
'Biz-Api-Signature': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
request_id: 'ea6f928b-0b1f-4fd3-a4fe-fc10695d2642',
wallet_from: '332cf3e4-af07-46f9-a3da-4aa2cbe3bdd4',
wallet_to: '1b8d5efd-d7a8-48ac-a195-cc8e043ae36b',
amount: 0.003
})
};
fetch('https://apidev.nusd.me/nps/withdraw/internal', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://apidev.nusd.me/nps/withdraw/internal"
payload := strings.NewReader("{\n \"request_id\": \"ea6f928b-0b1f-4fd3-a4fe-fc10695d2642\",\n \"wallet_from\": \"332cf3e4-af07-46f9-a3da-4aa2cbe3bdd4\",\n \"wallet_to\": \"1b8d5efd-d7a8-48ac-a195-cc8e043ae36b\",\n \"amount\": 0.003\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("BIZ-API-KEY", "<api-key>")
req.Header.Add("Biz-Api-Nonce", "<api-key>")
req.Header.Add("Biz-Api-Signature", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://apidev.nusd.me/nps/withdraw/internal")
.header("BIZ-API-KEY", "<api-key>")
.header("Biz-Api-Nonce", "<api-key>")
.header("Biz-Api-Signature", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"request_id\": \"ea6f928b-0b1f-4fd3-a4fe-fc10695d2642\",\n \"wallet_from\": \"332cf3e4-af07-46f9-a3da-4aa2cbe3bdd4\",\n \"wallet_to\": \"1b8d5efd-d7a8-48ac-a195-cc8e043ae36b\",\n \"amount\": 0.003\n}")
.asString();{
"status": 0,
"data": {
"request_id": "9bfa5014-2f12-4eb8-b979-3cf8cb947b45",
"transaction_id": "28f2505c-55ab-4fc7-8620-152c4045981a"
},
"msg": "<string>"
}{
"status": 0,
"data": {
"request_id": "9bfa5014-2f12-4eb8-b979-3cf8cb947b45",
"transaction_id": "28f2505c-55ab-4fc7-8620-152c4045981a"
},
"msg": "<string>"
}授权
API Key,请求需在请求头中携带。
时间戳,请求需在请求头中携带。
签名串,请求需在请求头中携带。
请求体
application/json
请求方生成的唯一 id,用于幂等控制:相同 request_id 不会重复创建交易。可使用贵方系统的订单号,并可凭其查询交易。
示例:
"ea6f928b-0b1f-4fd3-a4fe-fc10695d2642"
转出方钱包id
示例:
"332cf3e4-af07-46f9-a3da-4aa2cbe3bdd4"
接收方钱包id
示例:
"1b8d5efd-d7a8-48ac-a195-cc8e043ae36b"
划转数量
示例:
0.003
接收方app用户唯一id或token(可选)
示例:
"10001"
接收方用户邮箱(可选)
示例:
""
接收方用户手机号(可选)
示例:
""
接收方用户姓名/昵称(可选)
示例:
""
备注(可选)
示例:
""