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": "无需物流"
      }
      }
      
免费领取15天试用
立即注册
联系客服
微信咨询
微信二维码

领取免费试用资格

姓名 *

电话 *

公司名称

所在地区

意向产品

提交

提交成功

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