https://www.westmonth.com/openapi/v2/order/statushttps://testing.westmonth.com/openapi/v2/order/status| 参数名 | 类型 | 必填 | 示例值 | 说明 |
|---|---|---|---|---|
| Authorization | string | 是 | authorization | 身份验证Token |
| Content-Type | string | 是 | application/json | 建议固定传此值 |
| 参数名 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
| type | integer | 是 | - | 订单类型,固定传4 |
| order_numbers | array | 否 | - | 订单号列表(西月订单号),用于精准查询 特定订单 |
| start_time | string | 否 | - | 更新时间开始(格式:yyyy-MM-dd HH:mm:ss),用于筛选时段内的订单 |
| end_time | string | 否 | - | 更新时间结束(格式:yyyy-MM-dd HH:mm:ss),与start_time配合使用 |
| page | integer | 否 | 1 | 当前页数,默认1 |
| per_page | integer | 否 | 10 | 每页条数,默认10 |
| 字段 | 类型 | 说明 |
|---|---|---|
| code | integer | 业务状态码(0表示成功) |
| msg | string | 提示信息(成功时为空) |
| data | object | 业务数据(分页结构) |
| 字段 | 类型 | 说明 |
|---|---|---|
| current_page | integer | 当前页码 |
| data | array | 订单状态列表(当前页数据) |
| first_page_url | string | 第一页URL |
| from | integer | 起始记录位置 |
| next_page_url | string/null | 下一页URL(无下一页时为null) |
| path | string | 接口基础路径 |
| per_page | integer | 每页条数 |
| prev_page_url | string/null | 上一页URL(无下一页时为null) |
| to | integer | 结束记录位置 |
| 字段 | 类型 | 说明 |
|---|---|---|
| id | integer | 订单ID |
| type | integer | 订单类型(固定为4) |
| number | string | 西月订单号 |
| customer_id | integer | 客户ID |
| status | string | 订单状态标识(如:unpaid、shipped) |
| total | string | 总金额(未格式化) |
| total_original | string | 原价总金额(未格式化) |
| pay_amount | string | 实付金额 |
| pay_status | integer | 支付状态(0:待支付,1:支付成功,2:支付失败) |
| pay_time | string | 支付时间(格式:yyyy-MM-dd HH:mm:ss) |
| currency_code | string | 货币编码(如:CNY) |
| currency_value | string | 当前汇率 |
| trade_platforms | integer | 支付平台(1:微信,2:支付宝,3:额度支付,4:货到付款) |
| push_status | integer | 聚水潭上传状态(0:未上传,1:成功,2:失败) |
| outbound_status | integer | 海外仓出库单推送状态(0:未上传,1:成功,2:失败,3:作废) |
| delivery_mode | integer | 配送模式(0:快递配送,1:第三方物流自提,2:个人自提) |
| seller_order_no | string | 平台订单号 |
| shipment_no | string | 物流单号 |
| logistics_company_id | integer | 物流公司ID |
| created_at | string | 创建时间 |
| updated_at | string | 更新时间 |
| skus | array | 商品SKU列表 |
| logistics_company_name | string | 物流公司名称 |
| logistics_company_code | string | 物流公司编码 |
| status_format | string | 订单状态中文描述(如:待支付) |
| total_format | string | 总金额(格式化,含货币符号) |
| outbound_status_format | string | 海外仓出库单状态描述(如:未上传) |
| push_status_format | string | 聚水潭上传状态描述(如:未推送) |
| trade_platforms_name | string | 支付平台名称(如:微信支付) |
| type_format | string | 订单类型描述(如:外部订单) |
| freight | string | 运费(格式化) |
| delivery_mode_name | string | 配送模式名称(如:快递配送) |
| product_total | string | 商品总价(格式化) |
| freight_num | integer | 运费金额(数字,未格式化) |
| 字段 | 类型 | 说明 |
|---|---|---|
| product_sku | string | SKU编码 |
| depot_id | integer | 仓库ID |
| depost_name | string | 仓库名称 |
| delivery_region_id | integer | 发货区域ID |
| region_name | string | 发货区域名称 |
| price_format | string | 单价(格式化) |
| total_price_format | string | 总价(格式化) |
| after_sale_status_label | string | 售后状态(如:未售后) |
{
"order_numbers": [
"aOP2505071626702"
],
"type": 4,
"start_time": "",
"end_time": "",
"page": 1,
"per_page": 10
}{
"code": 0,
"msg": "",
"data": {
"current_page": 1,
"data": [
{
"id": 1841982,
"type": 4,
"number": "aOP2505071626702",
"customer_id": 880,
"status": "unpaid",
"total": "45.00",
"total_original": "45.00",
"pay_amount": "0.00",
"pay_status": 0,
"pay_time": "2025-05-07 16:13:57",
"currency_code": "CNY",
"currency_value": "1",
"trade_platforms": 0,
"o_id": 0,
"push_status": 0,
"outbound_status": 0,
"shipping_method_code": "",
"shipping_method_name": "",
"delivery_mode": 0,
"seller_order_no": "576722608781890541",
"shipment_no": "",
"logistics_company_id": 0,
"created_at": "2025-05-07 16:13:53",
"updated_at": "2025-05-07 16:13:53",
"latest_log_outbound": null,
"latest_log_pool": null,
"error_msg": "",
"skus": [
{
"product_sku": "cbsft114yy02-一盒12pcs",
"depot_id": 5,
"depost_name": "中国仓",
"delivery_region_id": 5,
"region_name": "中国",
"price_format": "¥0.00",
"total_price_format": "¥0.00",
"subtotal_format": "¥0.00",
"after_sale_status_label": "未售后"
}
],
"logistics_company_name": "",
"logistics_company_code": "",
"status_format": "待支付",
"total_format": "¥45.00",
"total_original_format": "¥45.00",
"outbound_status_format": "未上传",
"push_status_format": "未推送",
"pay_time_format": "",
"trade_platforms_name": "",
"type_format": "外部订单",
"freight": "¥40.00",
"delivery_mode_name": "快递配送",
"product_total": "¥5.00",
"subarea_name": "",
"platform_name": "",
"freight_num": 40
}
],
"first_page_url": "http://westmoon.io/openapi/v2/order/status?page=1",
"from": 1,
"next_page_url": null,
"path": "http://westmoon.io/openapi/v2/order/status",
"per_page": 10,
"prev_page_url": null,
"to": 1
}
}{
"code": 3,
"msg": "授权无效 authorization timestamp error",
"data": []
}| HTTP status code | 错误码 | 错误信息 | 描述 |
|---|
{"type":4, "start_time":"2025-07-06 00:00:00", "end_time":"2025-07-09 23:59:59"}。| 版本 | 日期 | 修改说明 |
|---|---|---|
| v1.0 | 2025-01-05 | 初始版本,支持订单状态查询 |