接入API

POST /api/v1/order/info

请求

请求参数

名称类型是否必须描述
pidinteger(int64)项目编号
noncestring6位随机字符串
timestampinteger(int64)时间戳
signstring签名
cregis_idstringcregis订单编号
请求示例
{
    "cregis_id": "po20240703132452000",
    "pid": 1382528827416576,
    "nonce": "hwlkk6",
    "timestamp": 1688004243314,
    "sign": "d6eef2de79e39f434a38efb910213ba6"
}

返回

返回数据

名称类型描述
codestring返回码
msgstring返回信息
dataobject返回数据

返回数据 data 对象

名称类型描述
cregis_idstringCregis订单编号
order_idstring商户订单编号
order_amountstring订单交易金额,由商户定义
order_currencystring订单交易金额单位,由商户定义
created_timeinteger(int64)订单创建时间【13位时间戳】
cancel_timeinteger(int64)订单取消时间【13位时间戳】
transact_timeinteger(int64)订单支付完成时间【13位时间戳】
valid_timeinteger提交订单时设置的超时时间【单位/分钟】
statusstring订单状态 - new 订单初始状态 - paid 订单已成功支付 - expired 订单超出有效时间 - 异常状态 - paid_over 付款超出订单金额 - paid_partial 付款小于订单金额
reamrkstring订单备注信息
payer_idstring付款人id标识
payer_namestring付款人姓名
payer_emailstring付款人邮箱
payment_infoarray订单相关讯息
payment_detailarray支付明细

payment_info 对象

名称类型描述
payment_addressstring充值地址
token_symbolstring货币标识
blockchainstring货币⽹络
token_namestring货币名称
logo_urlstring货币logo地址
token_decimalsinteger货币精度
receive_amountstring汇率转换后的订单⾦额
receive_currencystring汇率转换后订单货币代码
exchange_ratestring货币汇率

payment_detail 对象

名称类型描述
payment_addressstring付款地址
receive_amountstring汇率转换后的该收订单金额
receive_currencystring汇率转换后的订单货币代码
pay_amountstring实际到账金额
pay_currencystring到账货币代码
exchange_ratestring汇率
tx_idstring交易hash
返回示例
{
    "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":"购买商品",
        "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"
            }
        ]
    }
}