ShipmentSupplier

友好速搭

开发文档 > 主题开发 > 开放 API > 全部 API > ShipmentSupplier
开放 API
使用说明 获取授权 全部 API 特殊 API 开放功能

ShipmentSupplier

ShipmentSupplier

#ShipmentSupplier ShipmentSupplier 是系统默认的物流供应商,用于Shipment指定物流供应商,通过 API 只可读,不可修改。

ShipmentSupplier 对象支持 Webhook

ShipmentSupplier 相关API

GET /shipment_suppliers获取 ShipmentSupplier 列表GET /shipment_suppliers/count获取 ShipmentSupplier 数量GET /shipment_suppliers/#{id}获取单个 ShipmentSupplier

ShipmentSupplier 属性

    • code
    •   { "code": "shunfeng" }
      
      String 类型,ShipmentSupplier 的代码标识。
    • id
    •   { "id": 1 }
      
      Number 类型,ShipmentSupplier 的唯一整型标识注意,其中id为 0 时,为自定义名称的物流配送商;id为 1 时,为无需物流配送。
    • name
    •   { "name" : "顺丰速递" }
      
      String 类型,ShipmentSupplier 的物流中文标识。

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": "无需物流"
      }
      }
      
友好速搭与你一起,共赢未来
联系客服
电话咨询
服务热线
0755-83051027
获取报价
QQ咨询
微信咨询
微信二维码
在线咨询

在线获取方案和报价,专人快速响应

所选城市 *

您的称呼 *

联系电话 *

网站类型 *

请选择
展示官网 电商网站 微信商城 小程序 其他类型

您希望我们为您提供哪些服务?(可多选)

B2C商城 跨境解决方案 B2B2C平台电商 网站备案 自营电商培训
获取报价

提交成功

你好, XXX女士/先生 ,你的需求已提交成功,后续会有专门的客户经理与你电话联系。谢谢!