POST
/
nps
/
transfer
cURL
curl --request POST \
  --url https://apidev.nusd.me/nps/transfer \
  --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
}
'
{
  "status": 0,
  "data": {
    "request_id": "9bfa5014-2f12-4eb8-b979-3cf8cb947b45",
    "transaction_id": "28f2505c-55ab-4fc7-8620-152c4045981a"
  },
  "msg": "<string>"
}

授权

BIZ-API-KEY
string
header
必填

API Key,请求需在请求头中携带。

Biz-Api-Nonce
string
header
必填

时间戳,请求需在请求头中携带。

Biz-Api-Signature
string
header
必填

签名串,请求需在请求头中携带。

请求体

application/json
request_id
string
必填

请求方唯一id

示例:

"ea6f928b-0b1f-4fd3-a4fe-fc10695d2642"

wallet_from
string
必填

转出方钱包id

示例:

"332cf3e4-af07-46f9-a3da-4aa2cbe3bdd4"

wallet_to
string
必填

接收方钱包id

示例:

"1b8d5efd-d7a8-48ac-a195-cc8e043ae36b"

amount
number<float>
必填

划转数量

示例:

0.003

user_token
string

接收方app用户唯一id或token(可选)

示例:

"10001"

user_name
string

接收方用户姓名/昵称(可选)

示例:

""

notes
string

备注(可选)

示例:

""

响应

请求成功,返回划转交易id

status
integer

状态码,0 表示成功。

示例:

0

data
object

划转结果

msg
string

错误消息,status 非 0 时存在