更新时间:2023-06-15 05:56:43
本文介绍查询订单列表的 API。
根据商城 code、店铺 code 和买家 UID 等数据,查询订单列表。
GET: /v1.0/mall/plugin/order/search
| 参数名 | 类型 | 参数位置 | 是否必填 | 说明 |
|---|---|---|---|---|
| mall_code | String | query | true | 商城 code |
| shop_code | String | query | true | 店铺 code |
| user_id | String | query | true | 买家 UID |
| page_no | Integer | query | false | 分页查询页数 |
| page_size | Integer | query | false | 分页查询每页个数 |
| 参数名 | 类型 | 说明 |
|---|---|---|
| result | OrderListPageOpenApiVO | 返回结果 |
result 说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| total | Integer | 总数 |
| data_list | List |
订单列表 |
data_list 说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| mall_code | String | 商城 code |
| shop_code | String | 店铺 code |
| order_id | String | 订单号 |
| pay_status | String | 支付状态 |
| delivery_status | String | 发货状态 |
| created_time | String | 创建时间 |
| current_total_price | BigDecimal | 当前总价格 |
| total_shipping_price | BigDecimal | 总邮费 |
| total_tax_price | BigDecimal | 总税费 |
| total_price | BigDecimal | 总价格 |
| currency | String | 币种 |
| delivery_list | List |
物流信息 |
| cancel_reason | String | 订单取消原因 |
| canceled_time | Long | 订单取消时间 |
delivery_list 说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| logistics_company | String | 快递公司 |
| logistics_no | String | 快递单号 |
| logistics_url | String | 链接 |
GET: /v1.0/mall/plugin/order/search?mall_code=MALL_CODE&shop_code=SHOP_CODE&user_id=USER_ID&page_no=1&page_size=10
{
"mall_code": "testMallCode",
"shop_code": "testShopCode",
"user_id": "testUserId",
"page_no": 1,
"page_size": 10
}
{
"data_list": [
{
"created_time": "20220901",
"subtotal_price": 2,
"canceled_time": "20220902",
"total_price": 2,
"shop_code": "testShopCode",
"delivery_list": [
{
"logistics_no": "1Z2345",
"logistics_url": "https://tools.usps.com/go/TrackConfirmAction_input?qtc_tLabels1=1Z2***",
"logistics_company": "USPS"
}
],
"total_tax_price": 1,
"total_shipping_price": 1,
"pay_status": "paid",
"cancel_reason": "取消原因",
"mall_code": "testMallCode",
"current_total_price": 10,
"currency": "USD",
"order_id": "testOrderId",
"delivery_status": "shipped"
}
],
"total": 100
}
参考 错误码。
该内容对您有帮助吗?
是意见反馈该内容对您有帮助吗?
是意见反馈