查询券状态信息
开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
/api/apps/trade/v2/order/query_item_order_info
使用限制
接口说明
错误码
HTTP 状态码 | 错误码 | 描述 | 排查建议 |
---|---|---|---|
200 | 10000 | 参数错误 | 参数不符合规范。请根据提示检查参数。 |
200 | 13000 | 系统错误,请重试 | 内部错误,重试可解决。 |
200 | 21047 | 商品单 id 不合法 | 检查 item_order_id 是否正确。 |
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/api/apps/trade/v2/order/query_item_order_info' \
--header 'access-token: clt.xxx' \
--header 'Content-Type: application/json' \
--data-raw '{
"order_id": "ot123456",
"item_order_id_list": [
"ot123",
"ot456"
]
}'
响应示例响应示例
200 - 成功示例
{
"data": {
"item_list": [
{
"item_order_id": "item_order_id_example_1",
"item_order_status": 2,
"valid_start_time": 1642491214992,
"valid_end_time": 1642491231992,
"delivery_time": 1642493214992,
"times_card_info": {
"total_times": 2,
"usable_times": 2,
"refund_times": 0,
"actual_amount_once": 100
}
},
{
"item_order_id": "item_order_id_example_2",
"item_order_status": 2,
"valid_start_time": 1642491214992,
"valid_end_time": 1623491214992,
"delivery_time": 1642231214992,
"times_card_info": {
"total_times": 2,
"usable_times": 2,
"refund_times": 0,
"actual_amount_once": 100
}
}
]
},
"extra": {
"sub_error_code": 0,
"sub_description": "success",
"logid": "2022092115392201020812109511046",
"now": 1663745962686,
"error_code": 0,
"description": "success"
}
}
请求参数
Header 参数
Content-Type
string
必需
示例值:
application/json
access-token
string
必需
示例值:
clt.xxx
Body 参数application/json