API URL

POST /api/v1/sub_address_withdrawal/info

Request

Request Parameters

NameTypeRequiredDescription
pidinteger(int64)YesWaaS project ID. Go to Cregis > WaaS > Select project > Settings > Developer to view
cidinteger(int64)YesSystem serial number (cid from the sub-address payout response)
noncestringYes6-character random string
timestampinteger(int64)YesCurrent timestamp (milliseconds)
signstringYesDigital signature to prevent tampering
Request Example
{
  "pid": 1382528827416576,
  "cid": 1382626461605888,
  "nonce": "sw7kv5",
  "timestamp": 1687853722065,
  "sign": "af825ddb839e6796d62977caf18d3394"
}

Response

Response Result

NameTypeDescription
codestringResponse Code
msgstringResponse Message
dataobjectResponse Data Object

Response data Object

NameTypeDescription
pidinteger(int64)WaaS project ID
chain_idstringThe chain ID of the token you are querying
token_idstringThe token ID of the token you are querying
currencystringThe token name of the token you are querying
from_addressstringSender address
to_addressstringRecipient address
amountstringPayout amount
statusinteger(int32)Status of the payout order
third_party_idstringBusiness reference ID generated by your own business system
remarkstringTransaction description (max 256 characters)
memostringOn-chain memo/tag (only for Ton, Xrp)
txidstringTransaction hash
block_heightstringBlock height
block_timeinteger(int64)Block time

Response status Enum

statusDescription
0Pending Approval
4Review rejected
5Pending Signature
1Signature Approved
2Signature rejected
6Transaction successful. On-chain transaction are successful
7Transaction failed. The on-chain transaction failed
Response Example
{
  "code": "00000",
  "msg": "ok",
  "data": {
    "pid": 1382528827416576,
    "from_address": "rqkVSVbsatX3mXAc64g9wTihrmoLwpiuB",
    "to_address": "rn5Jyu5J6PG64543KdGvS25rQBYFQo7GLc",
    "chain_id": "144",
    "token_id": "144",
    "currency": "XRP",
    "amount": "1.1",
    "third_party_id": "1e0fb3a0a9454ad8928d26b592e8b3c7",
    "remark": "payout",
     "memo": "123",
    "status": 0,
    "txid": "6dd05b0972075542219a3fcc116c58feaf9480f1f698cc46c4367ded83955cfd",
    "block_height": "34527604",
    "block_time": 1686814482000
  }
}