查询服务选项列表
/api/shipper/v1/channel/serviceOptions |
GET |
参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
sessionId | String | 是 | 登录会话ID |
language | String | 是 | 语言 |
语言取值:
值 | 说明 |
|---|---|
zh_CN | 中文 |
en_US | 英文 |
参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
channelId | Integer | 是 | 渠道ID,例如:929 |
curl 'https://tracking-stage.etowertech.com/api/shipper/v1/channel/serviceOptions?channelId=929' \ -H 'sessionId: MuETuXqSzpU_QQFiSD-dbQ' \ -H 'language: zh_CN' \ -H 'Accept: application/json, text/plain, */*' |
{
"success": true,
"code": "0",
"data": [
{
"id": 1,
"code": "E-Parcel",
"description": "Standard delivery service, fully tracked"
},
{
"id": 83,
"code": "Boxable",
"description": "MiniPak EU Direct Injection"
},
{
"id": 84,
"code": "Non-Boxable",
"description": "MiniPak EU Direct Injection"
}
],
"errors": []
}
|
字段 | 类型 | 说明 |
|---|---|---|
success | Boolean | 请求是否成功 |
code | String | 响应码,"0"表示成功 |
data | Array | 服务选项列表数据 |
errors | Array | 错误信息列表 |
data 返回的是 服务选项列表,每个元素代表一个服务选项的详细信息。
字段 | 类型 | 说明 |
|---|---|---|
id | Integer | 服务选项ID |
code | String | 服务选项代码 |
description | String | 服务选项描述 |