| 方法 | 端点 | 描述 |
|---|---|---|
| GET | /api/v202105/orders | 获取订单列表 |
| POST | /api/v202105/orders | 创建订单 |
| POST | /api/v202105/orders | 取消订单 |
| 键 | 值 |
|---|---|
| Authorization | Bearer eyJ0eXAiOiJKV1QiLCJhbGciOi ... |
| 类型 | 名称 | 描述 | 必填/选填 | 数据结构 |
|---|---|---|---|---|
| query | api | API 类型 可用值: index.by-default | 必填 | enum |
| query | next_token | 下一页数据的秘钥 | 选填 | string |
| query | platform_order_id | 平台订单号 | 选填 | string |
| query | customer_order_id | 客户订单号 | 选填 | string |
| query | account_id | 店铺 id | 选填 | integer |
| query | account_name | 店铺名称 | 选填 | string |
| query | create_time_start | 订单创建时间 开始 时区:太平洋标准时间 | 选填 | datetime |
| query | create_time_end | 订单 创建时间 结束 时区:太平洋标准时间 | 选填 | datetime |
| query | update_time_start | 订单更新时间 开始 时区:太平洋标准时间 | 选填 | datetime |
| query | update_time_end | 订单更新时间 结束 时区:太平洋标准时间 | 选填 | datetime |
| query | status | 订单状态 可用值: Synced:已同步, To Be Confirmed:待确认, Confirmed:已确认, Processing:处理中, Cancelled:已取消, Fulfillment:仓库处理完成, Shipped:已发货 | 选填(如果status参数填写了,则create_time_start参数必填) | enum |
| 键 | 值 |
|---|---|
| errcode | 0/4000 |
| errmsg | ok/Error Info |
| data | Data Properties |
| 名称 | 描述 | 数据结构 |
|---|---|---|
| trx_id | ShipSage 系统内部订单编号 | string |
| platform_order_id | 平台订单号 | string |
| customer_order_id | 客户订单号 | string |
| account_name | 店铺名称 | string |
| order_time | 订单创建时间 时区:太平洋标准时间 | datetime |
| paid_time | 订单付款时间 时区:太平洋标准时间 | datetime |
| shipped_time | 订单发货时间 时区:太平洋标准时间 如果订单有多个包裹,则取最早的那个包裹的发货时间 | datetime |
| ship_to_name | 收件人姓名 | string |
| ship_to_address1 | 收件人街道地址1 | string |
| ship_to_address2 | 收件人街道地址2 | string |
| ship_to_phone | 收件人电话 | string |
| ship_to_city | 收件人城市 | string |
| ship_to_state | 收件人州/省 | string |
| ship_to_country | 收件人国家 | string |
| ship_to_postal_code | 收件人邮编 | string |
| selling_sku | 销售sku 编码 | string |
| customer_sku | 客户的 sku 编码 | string |
| item_id | ShipSage 系统内部 listing id | string |
| title | 订单抬头 | string |
| quantity | 订单数量 | integer |
| status | 订单状态 可用值: Synced:已同步, To Be Confirmed:待确认, Confirmed:已确认, Processing:处理中, Cancelled:已取消, Fulfillment:仓库处理完成, Shipped:已发货 | enum |
| create_time | 订单创建时间 时区:太平洋标准时间 | datetime |
| update_time | 订单更新时间 时区:太平洋标准时间 | datetime |
[
{
"trx_id": "33693018972994",
"platform_order_id": null,
"customer_order_id": null,
"account_名称": "PartsSquare",
"created_date": "2022-03-02 20:31:36",
"paid_time": "2022-03-03 07:09:43",
"shipped_time": "2022-03-03 13:09:43",
"ship_to_名称": "Joseph Rothwell",
"ship_to_address1": "7550 N 12TH ST APARTMENT # 121",
"ship_to_address2": null,
"ship_to_phone": null,
"ship_to_city": "PHOENIX",
"ship_to_state": "AZ",
"ship_to_country": "US",
"ship_to_postal_code": "85020-4563",
"seller_sku": "130798",
"customer_sku": "130798",
"item_id": "0622QSWZBYK",
"title": "AUTEX 2pcs Gray Interior Door Handle Front/Rear Left Right",
"quantity": 1,
"status": "Synced",
"create_time": "2022-03-03 01:00:28",
"update_time": "2022-03-03 02:00:33"
},
{
"trx_id": "33693018972994",
"platform_order_id": null,
"customer_order_id": null,
"account_名称": "PartsSquare",
"created_date": "2022-03-02 20:31:36",
"paid_time": "2022-03-03 07:09:43",
"ship_to_名称": "Joseph Rothwell",
"ship_to_address1": "7550 N 12TH ST APARTMENT # 121",
"ship_to_address2": null,
"ship_to_phone": null,
"ship_to_city": "PHOENIX",
"ship_to_state": "AZ",
"ship_to_country": "US",
"ship_to_postal_code": "85020-4563",
"seller_sku": "F-130798",
"customer_sku": "130798",
"item_id": "0622QSWZBYK",
"title": "AUTEX 2pcs Gray Interior Door Handle Front/Rear Left Right",
"quantity": 1,
"status": "Synced",
"create_time": "2022-03-03 01:00:28",
"update_time": "2022-03-03 02:00:33"
}
]| 类型 | 名称 | 描述 | 必填/选填 | 数据结构 |
|---|---|---|---|---|
| query | api | API 类型 可用值: index.by-default | 必填 | enum |
| body | account_name | 店铺名称 | 必填 | string |
| body | platform_order_id | 平台订单号 | 必填 | string |
| body | customer_order_id | 客户订单号 | 选填 | string |
| body | order_time | 订单创建时间 时区:太平洋标准时间 | 必填 | datetime |
| body | paid_time | 订单付款时间 时区:太平洋标准时间 | 必填 | datetime |
| body | ship_to_name | 收件人姓名 | 必填 | string |
| body | ship_to_address1 | 收件人街道地址1 | 必填 | string |
| body | ship_to_address2 | 收件人街道地址2 | 选填 | string |
| body | ship_to_phone | 收件人电话 | 必填 | string |
| body | ship_to_city | 收件人城市 | 必填 | string |
| body | ship_to_state | 收件人州/省 | 必填 | string |
| body | ship_to_country | 收件人国家 | 必填 | string |
| body | ship_to_postal_code | 收件人邮编 | 必填 | string |
| body | platform | 订单的平台 | 选填 | string |
| body | warehouse_id | 订单发货仓库 可用值: 100: SG-MDW1(Bolingbrook); 101: SG-SMF1(Tracy); 103: SG-MEM1(Southaven); 109: SG-ABE1(Allentown); 112: SG-ATL1 (ShipSage-ATL1); 113: SG-ONT1(Ontario); 114: SG-ONT2(Corona); 116: SG-IAH1(Houston); 117: SG-ONT3(Jurupa Valley); 118:SG-IAH2(Houston); 119:SG-ONT4; 120:SG-SAV1; 130:SG-ONT5 | 选填 | string |
| body | latest_ship_date | 最晚发货时间 | 选填 | date |
| body | carrier | 发货渠道; 例如: UPS, USPS, DHL, FedEx... | 选填 | string |
| body | carrier_service | 物流承运商 例如: UPS Ground, UPS Sure Post, Fedex Ground Home Delivery, Fedex Ground... | 选填 | string |
| body | prime | 是否SFP订单,默认0(如果是SFP订单则会加急处理,订单处理费会更高): 可用值 0:否 1:是 | 选填 | integer |
| body | shipping_items | 面单详情,平台面单或者客户自己的面单可以通过这个对象传参,如果不传此对象,则表示有shipSage 产生面单 | 选填 | shipping_items |
| body | product_items | 订单的产品集 | 必填 | array |
| body | product_items.*.selling_sku | 销售sku 编码 | 必填 | string |
| body | product_items.*.quantity | sku 数量 | 必填 | integer |
| body | product_items.*.unit_price | sku 单价 | 选填 | double |
| body | product_items.*.order_item_id | 订单明细id | 选填 | string |
| 类型 | 名称 | 描述 | 必填/选填 | 数据结构 |
|---|---|---|---|---|
| body | packing_slip | 装运装箱单附件 | 选填 | array |
| body | bol | 提货单附件 | 选填 | array |
| body | labels | 面单数据 | 必填 | array |
| body | labels.*.tracking_number | 跟踪号 | 必填 | string |
| body | labels.*.shipping_carrier | 发货渠道; 例如: UPS, USPS, DHL, FedEx... "传了则优先使用;未传时系统按 tracking_number 自动识别;识别失败时用顶层 carrier" | 选填 | string |
| body | labels.*.shipping_method | 物流承运商 例如: UPS Ground, UPS Sure Post, Fedex Ground Home Delivery, Fedex Ground... "传了则优先使用;未传时按 tracking_number 自动识别;识别失败时用顶层 carrier_service" | 选填 | string |
| body | labels.*.with_packing_slip | 是否合并 PDF。true 时表示 labels.*.url 是"面单 + 装箱单 "合成的多页 PDF;系统会按物理页拆分:Page 1 → 面单、Page 2 → 装箱单。当为true 时不传 packing_slip.url。 | 选填 | boolean |
| body | labels.*.url | 面单url url; 和 base64 必须传一个 | 选填 | string |
| body | labels.*.base64 | 面单文件 base64; url 和 base64 必须传一个 | 选填 | base64 |
| body | labels.*.details | 包裹明细 | 必填 | array |
| body | labels.*.details.selling_sku | 包裹明细中的销售 sku 编码 | 必填 | string |
| body | labels.*.details.quantity | 包裹明细中的 sku 数量 | 必填 | integer |
{
"account_name":"ShipSageTest",
"platform_order_id":"PON-01",
"customer_order_id":"CON-01",
"order_time":"2023-01-14 18:12:34",
"paid_time":"2023-01-14 14:23:32",
"ship_to_name":"Jackson",
"ship_to_address1":"address_1",
"ship_to_address2":"address_2",
"ship_to_phone":"1234567890",
"ship_to_city":"City名称",
"ship_to_state":"State",
"ship_to_country":"Country",
"ship_to_postal_code":"1111",
"platform":"Wayfair",
"warehouse_id":"100",
"shipping_items":{
"packing_slip": {
"url": "https:/ss..."
},
"bol": {
"url": "https:/SS...."
},
"labels":
[
{
"tracking_number": "111",
"shipping_carrier": "UPS",
"shipping_method":"UPS Ground",
"url": "https://www.XXXXX.com/xx1.PDF",
"base64":"",
"details": [
{
"selling_sku":"Test-100001",
"quantity": "1"
}
]
},
{
"tracking_number": "111",
"shipping_carrier": "UPS",
"shipping_method":"UPS Ground",
"url": "",
"base64":"JVBERi0xLjQKMSAwIG9iago8PCAvVHlwZS...",
"details": [
{
"selling_sku":"Test-100001",
"quantity": "1"
}
]
}
]
}
"product_items":
[
{
"selling_sku":"Test-100001",
"quantity": "1",
"unit_price": "101",
"order_item_id": "166527415163201"
}
]
}
| 键 | 值 |
|---|---|
| errcode | 0/4000 |
| errmsg | ok/Error Info |
| data | Data Properties |
| 名称 | 描述 | 数据结构 |
|---|---|---|
| account_name | 店铺名称 | string |
| platform_order_id | 平台订单号 | string |
| customer_order_id | 客户订单号 | string |
| order_time | 订单创建时间 时区:太平洋标准时间 | datetime |
| paid_time | 订单付款时间 时区:太平洋标准时间 | datetime |
| ship_to_name | 收件人姓名 | string |
| ship_to_address1 | 收件人街道地址1 | string |
| ship_to_address2 | 收件人街道地址2 | string |
| ship_to_phone | 收件人电话 | string |
| ship_to_city | 收件人城市 | string |
| ship_to_state | 收件人州/省 | string |
| ship_to_country | 收件人国家 | string |
| ship_to_postal_code | 收件人邮编 | string |
| trx_items | ShipSage 系统内部订单明细 | array |
| trx_items.*.trx_id | ShipSage 系统内部订单编号 | string |
| trx_items.*.item_id | ShipSage 系统内部listing编号 | string |
| trx_items.*.order_id | 平台订单编号 | string |
| trx_items.*.account_name | 店铺名称 | string |
| trx_items.*.selling_sku | 销售sku 编码 | string |
| trx_items.*.product_name | 销售sku 名称 | string |
| trx_items.*.quantity | sku 数量 | integer |
| trx_items.*.unit_price | sku 单价 | double |
{
"errcode": 0,
"errmsg": "ok",
"data": {
"account_name": "account1",
"platform_order_id": "23432342341",
"customer_order_id": null,
"order_time": "2026-01-20T00:00:00",
"ship_to_name": "1",
"ship_to_phone": "1",
"ship_to_address1": "1",
"ship_to_address2": null,
"ship_to_city": "1",
"ship_to_state": "1",
"ship_to_country": "1",
"ship_to_postal_code": "1",
"trx_items": [
{
"trx_id": "AMA-SA-1897-295455-23432342341",
"item_id": "YYM-295455-202502-1",
"order_id": "23432342341",
"account_name": "account1",
"quantity": 1,
"unit_price": 1,
"selling_sku": "TEST1",
"product_name": "TEST1"
}
]
}
}| 类型 | 名称 | 描述 | 必填/选填 | 数据结构 |
|---|---|---|---|---|
| query | api | API 类型 可用值: store.by-cancel-order | 必填 | enum |
| body | platform_order_id | 平台订单号,平台订单号和客户订单号至少要传一个 | 选填 | string |
| body | customer_order_id | 客户订单号,平台订单号和客户订单号至少要传一个 | 选填 | string |
{
"platform_order_id": "PON-01"
}| 键 | 值 |
|---|---|
| errcode | 0/4000 |
| errmsg | ok/Error Info |
| data | Data Properties |
| 名称 | 描述 | 数据结构 |
|---|---|---|
| trx_id | ShipSage 系统内部订单编号 | string |
| account_name | 店铺名称 | string |
| platform_order_id | 平台订单号 | string |
| customer_order_id | 客户订单号 | string |
{
"errcode": 0,
"errmsg": "ok",
"data": [
{
"trx_id": "YC-PON-01-310001",
"account_名称": "ShipSageTest",
"platform_order_id": "PON-01",
"customer_order_id": "CON-01"
},
{
"trx_id": "YC-PON-01-310002",
"account_名称": "ShipSageTest",
"platform_order_id": "PON-01",
"customer_order_id": "CON-01"
}
]
}