开放 API
使用说明
获取授权
全部 API
- Shop
- Metafields
- Customer
- CustomerAddress
- Account
- Product
- ProductVariant
- ProductImage
- Theme
- Asset
- Country
- Province
- City
- District
- ScriptTag
- Order
- Shipment
- ShipmentSupplier
- Payment
- PaymentMethod
- Redirect
- Page
- Webhook
- Blog
- BlogAuthor
- CustomerLevel
- StoreFile
- Promotion
- Coupon
- Post
- AfterSale
ShipmentSupplier
ShipmentSupplier
ShipmentSupplier 是系统默认的物流供应商,用于Shipment指定物流供应商,通过 API 只可读,不可修改。
ShipmentSupplier 对象支持 Webhook。
ShipmentSupplier 相关API
ShipmentSupplier 属性
- code
String 类型,ShipmentSupplier 的代码标识。{ "code": "shunfeng" }
- id
Number 类型,ShipmentSupplier 的唯一整型标识注意,其中{ "id": 1 }
id
为 0 时,为自定义名称的物流配送商;id
为 1 时,为无需物流配送。
- name
String 类型,ShipmentSupplier 的物流中文标识。{ "name" : "顺丰速递" }
GET /shipment_suppliers
获取 ShipmentSupplier 列表
- limit
- 显示条数(默认10,最大50)
- page
- 显示页码(默认1)
- since_id
- 筛选
id
大于since_id
的Order
- fields
- 以
,
拼接Response显示的字段
- id
- 查询指定
id
- ids
- 以
,
拼接要显示的id
范围
- 获取 ShipmentSupplier 列表
- GET /shipment_suppliers
{ "shipment_suppliers": [ { "code": "others", "id": 0, "name": "其他" }, { "code": "selfserver", "id": 1, "name": "无需物流" }, { "code": "shunfeng", "id": 2, "name": "顺丰速递" }, { "code": "shunfengen", "id": 3, "name": "顺丰速递(英文结果)" }, { "code": "ems", "id": 4, "name": "EMS" }, { "code": "emsen", "id": 5, "name": "EMS(英文结果)" }, { "code": "ems", "id": 6, "name": "E邮宝" }, { "code": "youzhengguonei", "id": 7, "name": "包裹/平邮/挂号信" }, { "code": "shentong", "id": 8, "name": "申通" }, { "code": "shentong", "id": 9, "name": "申通E物流" } ] }
- 获取指定 ID 范围的 ShipmentSupplier 列表
- GET /shipment_suppliers?ids=2,3
{ "shipment_suppliers": [ { "code": "shunfeng", "id": 2, "name": "顺丰速递" }, { "code": "shunfengen", "id": 3, "name": "顺丰速递(英文结果)" } ] }
- 获取 ShipmentSupplier 列表,只显示部分字段
- GET /shipment_suppliers?fields=id,code
{ "shipment_suppliers": [ { "id": 0, "code": "others" }, { "id": 1, "code": "selfserver" }, { "id": 2, "code": "shunfeng" }, { "id": 3, "code": "shunfengen" }, { "id": 4, "code": "ems" }, { "id": 5, "code": "emsen" }, { "id": 6, "code": "ems" }, { "id": 7, "code": "youzhengguonei" }, { "id": 8, "code": "shentong" }, { "id": 9, "code": "shentong" } ] }
- 获取指定 ID 之后的 ShipmentSupplier 列表
- GET /shipment_suppliers?since_id=1
{ "shipment_suppliers": [ { "code": "shunfeng", "id": 2, "name": "顺丰速递" }, { "code": "shunfengen", "id": 3, "name": "顺丰速递(英文结果)" }, { "code": "ems", "id": 4, "name": "EMS" }, { "code": "emsen", "id": 5, "name": "EMS(英文结果)" }, { "code": "ems", "id": 6, "name": "E邮宝" }, { "code": "youzhengguonei", "id": 7, "name": "包裹/平邮/挂号信" }, { "code": "shentong", "id": 8, "name": "申通" }, { "code": "shentong", "id": 9, "name": "申通E物流" }, { "code": "yuantong", "id": 10, "name": "圆通速递" }, { "code": "zhongtong", "id": 11, "name": "中通速递" } ] }
GET /shipment_suppliers/count
获取 ShipmentSupplier 数量
- 获取ShipmentSupplier数量
- GET /shipment_suppliers/count
{ "count": 137 }
GET /shipment_suppliers/#{id}
获取单个 ShipmentSupplier
- fields
- 以
,
拼接Response显示的字段
- 获取单个 ShipmentSupplier
- GET /shipment_suppliers/#{id}
{ "shipment_supplier": { "code": "selfserver", "id": 1, "name": "无需物流" } }