版本比较

标识

  • 该行被添加。
  • 该行被删除。
  • 格式已经改变。

接口名称

查询服务列表

接口地址

代码块
/api/shipper/v1/channel/servicesByShipperAndCountry

请求方式

代码块
GET

请求头

参数

类型

必填

说明

sessionId

String

登录会话ID

language

String

语言

语言取值:

说明

zh_CN

中文

en_US

英文

请求参数

参数

类型

必填

说明

country

String

国家代码,例如:AX(奥兰群岛)

请求示例

代码块
curl 'https://tracking-stage.etowertech.com/api/shipper/v1/channel/servicesByShipperAndCountry?country=AX' \
  -H 'sessionId: MuETuXqSzpU_QQFiSD-dbQ' \
  -H 'language: zh_CN' \
  -H 'Accept: application/json, text/plain, */*'

返回示例

代码块
{
  "success": true,
  "code": "0",
  "data": [
    {
      "channelId": 929,
      "name": "Australia Economy General PRO",
      "aggregator": 100,
      "providerClass": "com.walltech.parcel.core.ubi.UBIVirtualChannelProvider",
      "label": true,
      "scan": true,
      "lineHaul": true,
      "customs": true,
      "labelType": 1,
      "resendChannel": 0,
      "returnChannel": 0,
      "returnAddressHash": "",
      "description": "",
      "destination": "*",
      "level": 1,
      "origin": "CN",
      "configuredUrl": "clientConfigDefault.jsp",
      "configuredTitle": "DefaultClientConfig",
      "providedUrl": "providedDefault.jsp",
      "providedTitle": "DefaultProvidedConfig",
      "provisionedUrl": "provisionedDefault.jsp",
      "provisionedTitle": "DefaultProvisionedConfig",
      "code": "DIR2AU.ECO.GENERAL.PRO",
      "channelGroup": "DIR2AU.ECO.GENERAL.PRO",
      "bizType": 4,
      "active": true,
      "whiteLabel": true,
      "validPeriod": false,
      "whiteLabelType": 1,
      "remark": "",
      "instruction": "",
      "nativeName": "",
      "lastMailCarrier": "",
      "shortCode": "",
      "switchBatteryFlag": true,
      "createOrderWay": 1,
      "clockIn": false,
      "trackingWebSiteList": [],
      "customsAgentPartyList": [],
      "customsAgentPartyIds": [],
      "returnAddressBeautify": ""
    },
    {
      "channelId": 1131,
      "name": "Australia iMile",
      "aggregator": 100,
      "providerClass": "com.walltech.parcel.core.ubi.imile.IMileAuMetadataChannelProvider",
      "label": true,
      "scan": true,
      "lineHaul": true,
      "customs": true,
      "labelType": 1,
      "resendChannel": 4,
      "returnChannel": 0,
      "returnAddressHash": "ADD_20240711113100001",
      "description": "Australia iMile",
      "destination": "*",
      "level": 1,
      "origin": "CN",
      "configuredUrl": "clientConfigDefault.jsp",
      "configuredTitle": "DefaultClientConfig",
      "providedUrl": "providedDefault.jsp",
      "providedTitle": "DefaultProvidedConfig",
      "provisionedUrl": "provisionedDefault.jsp",
      "provisionedTitle": "DefaultProvisionedConfig",
      "code": "UBI.DIRECT2AU.IMILE",
      "channelGroup": "UBI.DIRECT2AU.IMILE",
      "bizType": 1,
      "active": true,
      "whiteLabel": true,
      "validPeriod": false,
      "whiteLabelType": 2,
      "instruction": "小包重量≤ 22kg,大包限重≤30kg,尺寸限制:长≤ 105cm,缠红色胶纸,计泡系数12000。长×宽×高(CM)/12000小于0.5KG的货物不挑泡",
      "nativeName": "Australia iMile",
      "lastMailCarrier": "",
      "shortCode": "MACRO",
      "switchBatteryFlag": true,
      "createOrderWay": 1,
      "trackingWebSiteList": [],
      "currency": "CNY",
      "customsAgentPartyList": [],
      "customsAgentPartyIds": [],
      "returnAddressBeautify": ""
    }
  ],
  "errors": []
}

返回字段说明

字段

类型

说明

success

Boolean

请求是否成功

code

String

响应码,"0"表示成功

data

Array

渠道服务列表数据

errors

Array

错误信息列表

data 字段说明

data 返回的是 渠道服务列表,每个元素代表一个渠道服务的详细信息。

...