获取订单详情¶
请求¶
参数¶
路径参数¶
| 字段 | 类型 | 描述 |
|---|---|---|
| b_id 必填 | String | 业务线ID |
| order_no 必填 | String | 订单ID |
响应¶
响应体¶
| 字段 | 类型 | 描述 |
|---|---|---|
| code | Integer | 响应代码(0 = 成功) |
| message | String | 响应消息 |
| successful | Boolean | 请求是否成功 |
| data | Object | 订单数据(详见下方 data 对象详情) |
data (对象)
| 字段 | 类型 | 描述 |
|---|---|---|
| order_wallet_info | Object | 订单信息(详见下方 order_wallet_info 对象详情) |
| tx_info_models | Object[] | 交易信息(详见下方 tx_info_models 对象详情) |
| consolidation_tx_info_models | Object[] | 归集交易信息(详见下方 consolidation_tx_info_models 对象详情) |
| miner_fee_tx_info_models | Object[] | 矿工费交易信息(详见下方 miner_fee_tx_info_models 对象详情) |
| partial_failed | Object[] | 部分失败订单(详见下方 partial_failed 对象详情) |
| partial_success | Object[] | 部分成功订单(详见下方 partial_success 对象详情) |
| order_review_level_list | Object[] | 订单审核详情(详见下方 order_review_level_list 对象详情) |
order_wallet_info (对象)
| 字段 | 类型 | 描述 |
|---|---|---|
| business_name | String | 业务线名称 |
| coin_name | String | 资产名称 |
| chain | String | 链 |
| storage_type | String | 存储类型 |
| wallet_type | String | 钱包类型 |
| wallet_name | String | 钱包名称 |
| wallet_code | String | 钱包ID |
| time_stamp | Long | 订单创建时间戳 |
| order_no | String | 订单ID |
| applicant | String | 制单人 |
| amount | Decimal | 提币金额 |
| exchange_rate | Decimal | 汇率(USD) |
| miner_fee_rate | Decimal | 矿工费率 |
| description | String | 订单描述 |
| status | String | 订单状态 允许值: PROCESSING, PARTIALLY_FAILED, MANUAL_APPROVAL, FAILED, ORDER_SEND_OUT, FINISHED, CANCELED |
| inner_status | String | 订单内部状态 |
| failed_reason | String | 返回给用户的错误信息,用于说明订单失败的原因 |
| miner_fee | Decimal | 矿工费 |
| advance_fee | Decimal | 在主代币余额不足的情况下我们将代为垫付以完成该订单的金额。 |
| from_address | String | 来源地址 |
| balance_not_enough | Boolean | 余额是否充足 |
| gas_price | Decimal | Gas价格(ETH系列) |
| gas_limit | Decimal | Gas限制(ETH系列) |
| max_fee_per_gas | Decimal | 最大费用 |
| max_priority_fee_per_gas | Decimal | 优先费用 |
| bid | String | 业务线ID |
| can_review | Boolean | 当前查询订单用户是否能审核订单 |
| review_level_num | Integer | 订单当前审核层级 |
| order_dest_address_info_vo_list | Object[] | 订单目标地址列表(详见下方 order_dest_address_info_vo_list 对象详情) |
order_dest_address_info_vo_list (对象)
| 字段 | 类型 | 描述 |
|---|---|---|
| dest_address | String | 收款地址 |
| memo_type | String | 备注类型 允许值: MEMO_NONE, MEMO_TEXT, MEMO_HASH |
| memo | String | 备注 |
| origin_balance | Decimal | 原始提币金额 |
| balance | Decimal | 实际提币金额 |
| remark | String | 订单备注 |
tx_info_models / consolidation_tx_info_models / miner_fee_tx_info_models (对象)
| 字段 | 类型 | 描述 |
|---|---|---|
| tx_type | String | 交易类型 |
| block_height | Long | 区块高度 |
| tx_size | Integer | 交易大小 |
| tx_hash | String | 交易哈希 |
| gas_price | Decimal | Gas价格(ETH系列) |
| gas_limit | Decimal | Gas限制(ETH系列) |
| miner_fee | Decimal | 矿工费(已使用的Gas) |
partial_failed / partial_success (对象)
| 字段 | 类型 | 描述 |
|---|---|---|
| dest_address | String | 收款地址 |
| memo_type | String | 备注类型 允许值: MEMO_NONE, MEMO_TEXT, MEMO_HASH |
| memo | String | 备注 |
| origin_balance | Decimal | 原始提币金额 |
| balance | Decimal | 实际提币金额 |
| remark | String | 备注 |
order_review_level_list (对象)
| 字段 | 类型 | 描述 |
|---|---|---|
| review_level_num | Integer | 审核层级 |
| need_review_number | Integer | 该层级需要参与审核通过的人数 |
| reviewed_number | Integer | 该审核层级已审核通过的人数,如果与need_review_number相等则表示当前层级已审核通过 |
| order_audit_info | Object[] | 审核记录(可能有多条)(详见下方 order_audit_info 对象详情) |
order_audit_info (对象)
| 字段 | 类型 | 描述 |
|---|---|---|
| reviewer | String | 审核人员 |
| review_result | String | 审核状态 允许值: WAITING_FOR_APPROVAL(表示审核人员有该层级审核权限,但未审核), APPROVED(表示审核通过), REJECTED(表示审核拒绝) |
| review_time_stamp | Long | 审核通过/拒绝时间戳,未审核时值为0 |
| review_remark | String | 审核评论 |
如果 order_wallet_info 对象中的 status 字段为 FINISHED 或 PARTIALLY_FAILED,该交易只能通过查询钱包交易记录明细查看。
响应示例¶
{
"code": 0,
"message": "",
"data": {
"order_wallet_info": {
"business_name": "BusinessLine001",
"coin_name": "USDC",
"wallet_type": "SEGREGATED_ADDRESS",
"storage_type": "PRIME_HOT",
"wallet_name": "",
"wallet_code": "CHUSDC1036370270",
"timestamp": 1582275952000,
"order_no": "666666000000081",
"applicant": "test@qq.com",
"amount": 1000,
"exchange_rate": 1,
"value": null,
"miner_fee_rate": null,
"description": "",
"status": "FINISHED",
"inner_status": "FINISHED",
"failed_reason": : null,
"miner_fee": 630000000000000,
"advance_fee": 110100580698,
"from_address": "0xB6CcF826A777Da8fA0FcfAE0002172a43B05f9a1",
"gas_price": 3000000000,
"gas_limit": 120000,
"can_review": false,
"review_level_num": 2,
"order_dest_address_info_vo_list": [
{
"dest_address": "0xB6CcF826A777Da8fA0FcfAE0002172a43B05f9a1",
"memo_type": "MEMO_TEXT",
"memo": "text",
"origin_balance": 1000,
"balance": 1000,
"remark": ""
}
],
"bid": "ed70ff75b1fe4994a3bd836befe0e87f"
},
"tx_info_models": [
{
"tx_type": "WITHDRAW",
"block_height": 9525716,
"tx_size": 1,
"tx_hash": "0x9c34bb2e92056b353747d36483842e00eb4c4944e44dc38c23c3a06a1335a86f",
"gas_price": 30000000000,
"gas_limit": 70000,
"miner_fee": "0"
}
],
"consolidation_tx_info_models": [],
"miner_fee_tx_info_models": [],
"partial_failed": [],
"partial_success": [],
"order_review_level_list": [
{
"review_level_num": 1,
"need_review_number": 1,
"reviewed_number": 1,
"order_audit_info": [
{
"reviewer": "test@test.com",
"review_result": "APPROVED",
"review_time_stamp": 1746583731000,
"review_remark": "api order review test"
}
]
},
{
"review_level_num": 2,
"need_review_number": 1,
"reviewed_number": 0,
"order_audit_info": [
{
"reviewer": "test@matrixport.com",
"review_result": "WAITING_FOR_APPROVAL",
"review_time_stamp": 0,
"review_remark": null
}
]
}
]
},
"successful": true
}