GET v1/product?customer={customer}&type={type}

获取渠道列表

Request Information

URI Parameters

NameDescriptionTypeAdditional information
customer

客户编码,为空时返回所有渠道

string

Required

type

类型: 0:全部;1: 小包;2:大货

integer

Required

Body Parameters

None.

Response Information

Resource Description

获取渠道列表

ApiProductResult
NameDescriptionTypeAdditional information
code

API执行状态码

ApiStatusCode

None.

msg

返回消息

string

None.

total_count

总记录条数

integer

None.

page_size

页大小

integer

None.

total_page

总页数

integer

None.

current_page

当前页数,当前页数小于总页数时,表示还有更多页

integer

None.

products

产品列表

Collection of ProductInfo

None.

Response Formats

application/json, text/json

Sample:
{
  "code": 0,
  "msg": "sample string 1",
  "total_count": 2,
  "page_size": 3,
  "total_page": 4,
  "current_page": 5,
  "products": [
    {
      "id": 1,
      "code": "sample string 1",
      "name": "sample string 2",
      "express_type": "sample string 3",
      "max_length": 4.0,
      "max_volume": 5.0,
      "weight_type": "sample string 6",
      "volume_factor": 7.0,
      "deliery_duration": "sample string 8",
      "desc": "sample string 9"
    },
    {
      "id": 1,
      "code": "sample string 1",
      "name": "sample string 2",
      "express_type": "sample string 3",
      "max_length": 4.0,
      "max_volume": 5.0,
      "weight_type": "sample string 6",
      "volume_factor": 7.0,
      "deliery_duration": "sample string 8",
      "desc": "sample string 9"
    }
  ]
}

multipart/form-data

Sample:
{"code":0,"msg":"sample string 1","total_count":2,"page_size":3,"total_page":4,"current_page":5,"products":[{"id":1,"code":"sample string 1","name":"sample string 2","express_type":"sample string 3","max_length":4.0,"max_volume":5.0,"weight_type":"sample string 6","volume_factor":7.0,"deliery_duration":"sample string 8","desc":"sample string 9"},{"id":1,"code":"sample string 1","name":"sample string 2","express_type":"sample string 3","max_length":4.0,"max_volume":5.0,"weight_type":"sample string 6","volume_factor":7.0,"deliery_duration":"sample string 8","desc":"sample string 9"}]}

application/xml, text/xml

Sample:
<ApiProductResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SumX.Web.Models">
  <code>API_SUCCESS</code>
  <current_page>5</current_page>
  <msg>sample string 1</msg>
  <page_size>3</page_size>
  <products>
    <ProductInfo>
      <code>sample string 1</code>
      <deliery_duration>sample string 8</deliery_duration>
      <desc>sample string 9</desc>
      <express_type>sample string 3</express_type>
      <id>1</id>
      <max_length>4</max_length>
      <max_volume>5</max_volume>
      <name>sample string 2</name>
      <volume_factor>7</volume_factor>
      <weight_type>sample string 6</weight_type>
    </ProductInfo>
    <ProductInfo>
      <code>sample string 1</code>
      <deliery_duration>sample string 8</deliery_duration>
      <desc>sample string 9</desc>
      <express_type>sample string 3</express_type>
      <id>1</id>
      <max_length>4</max_length>
      <max_volume>5</max_volume>
      <name>sample string 2</name>
      <volume_factor>7</volume_factor>
      <weight_type>sample string 6</weight_type>
    </ProductInfo>
  </products>
  <total_count>2</total_count>
  <total_page>4</total_page>
</ApiProductResult>