API URL

POST /api/v1/order/info

Request

Request Parameters

NameTypeRequiredDescription
pidinteger(int64)YProject id
noncestringY6 random string
timestampinteger(int64)YTimestamp
signstringYSignature
cregis_idstringYCregis unique id
Request Example
{
    "cregis_id": "po20240703132452000",
    "pid": 1382528827416576,
    "nonce": "hwlkk6",
    "timestamp": 1688004243314,
    "sign": "d6eef2de79e39f434a38efb910213ba6"
}

Response

Response Result

NameTypeDescription
codestringReturn code
msgstringReturn message
dataobjectReturn data

Response data Object

NameTypeDescription
cregis_idstringCregis unique id
order_idstringMerchant’s custom unique order ID.
order_amountstringOrder transaction amount, defined by the merchant
order_currencystringOrder currency code, i.e. ISO 4217 currency code, such as CNY, HKD, defined by the merchant
created_timeinteger(int64)Order creation time. 13-digit timestamp
cancel_timeinteger(int64)Order cancelled time. 13-digit timestamp
transact_timeinteger(int64)Order payment completed time. 13-digit timestamp
valid_timeintegerTo determine the order expiration time , if not specified, the order expiration time will be 30 minutes as default. Please input in minutes. Minimum is 10 minutes
statusstringOrder Status - new: Initial status of the order - paid: The order has been successfully paid - expired: The order has exceeded the valid time - Exception Status - paid_over: Payment exceeds the order amount - paid_partial: Payment is less than the order amount
reamrkstringRemarks
payer_idstringPayer unique ID
payer_namestringPayer’s name
payer_emailstringPayer email
payment_infoarraypayment info
payment_detailarraypayment detail

payment_info Object

NameTypeDescription
payment_addressstringPayment wallet address
token_symbolstringtoken symbol
blockchainstringblockchain network
token_namestringtoken name
logo_urlstringtoken logo URL
token_decimalsintegertoken decimals
receive_amountstringThe amount of the order after exchange rate conversion
receive_currencystringThe order currency code after exchange rate conversion
exchange_ratestringExchange rate

payment_detail Object

NameTypeDescription
payment_addressstringPayment wallet address
receive_amountstringThe amount of the order after exchange rate conversion
receive_currencystringThe order currency code after exchange rate conversion
pay_amountstringActual received amount
pay_currencystringReceived currency
exchange_ratestringExchange rate
tx_idstringTransaction hash
Response Example
{
    "code": "00000",
    "msg": "ok",
    "data": {
        "cregis_id": "po20240703132452000",
        "order_id": "c9231e604da54469a735af3f449c880f",
        "order_amount": "100",
        "order_currency": "CNY",
        "created_time": 1719993183015,
        "cancel_time": null,
        "transact_time": 1719993183325,
        "valid_time": 30,
        "status": "paid",
        "payer_id": "p_001",
        "payer_name": "",
        "payer_email": ""
        "reamrk":"Purchase Products",
        "payment_info": [
            {
                "payment_address": "TLKz6k1EvMs2sMwTEbqQ6SZfbhzLU7XsQR",
                "token_symbol": "USDT",
                "blockchain": "TRON#Shasta",
                "token_name": "BEP20#Testnet",
                "logo_url": "",
                "token_decimals": 18,
                "receive_amount": "21.20",
                "receive_currency": "USDT",
                "exchange_rate": "0.000001111"
            },
            {
                "payment_address": "0xd38c2cf366a731dcbe4a32c7ef24ff96d080ca7e",
                "token_symbol": "USDC",
                "blockchain": "BNB-BSC",
                "token_name": "USDT-BEP20",
                "logo_url": "",
                "token_decimals": 18,
                "receive_amount": "21.30",
                "receive_currency": "USDC",
                "exchange_rate": "0.0000022222"
            }
        ],
        "payment_detail": [
            {
                "payment_address": "0xd38c2cf366a731dcbe4a32c7ef24ff96d080ca7e",
                "receive_amount": "20.01",
                "receive_currency": "USDT",
                "pay_amount": "10",
                "pay_currency": "USDT",
                "exchange_rate": "7.0000000001",
                "tx_id": "0x0502f2bfd96cd0f55edea3343513940f3af7fe594eae77f08d2f46ea24829b11"
            },
            {
                "payment_address": "0xd38c2cf366a731dcbe4a32c7ef24ff96d080ca7e",
                "receive_amount": "20.01",
                "receive_currency": "USDT",
                "pay_amount": "10.01",
                "pay_currency": "USDT",
                "exchange_rate": "7.0000000001",
                "tx_id": "0x0502f2bfd96cd0f55edea3343513940f3af7fe594eae77f08d2f46ea24829b22"
            }
        ]
    }
}