描述

获取用户可用的仓库、服务数据

路径

HTTP Verb

URL

GET

/api/supplier-service/v1/b2c/warehouseServiceList


请求头样例


POST /api/supplier-service/v1/b2b/poList
Host: http://cfs-qa.etowertech.com/
Content-Type: application/json
Accept: application/json
Authorization:WallTech etotest8xkIIphLnbkjRACNj4P:pc9H97D-_b2_TSCVvNj81A
X-WallTech-Date:Tue, 02 Aug 2022 06:43:37 GMT


请求字段

字段名数据类型最大长度必填描述
serviceType
Short
O

服务类型:

4:转运服务(Transshipment)

5:代发服务(Fulfillment)

默认全部服务类型

businessCodeString
O业务编码

请求样例


 https://cfs-qa.etowertech.com/api/supplier-service/v1/b2c/warehouseServiceList?serviceType=4&businessCode=string
 https://cfs-qa.etowertech.com/api/supplier-service/v1/b2c/warehouseServiceList?serviceType=5&businessCode=string
 https://cfs-qa.etowertech.com/api/supplier-service/v1/b2c/warehouseServiceList?businessCode=string



响应字段


字段名

子级字段名

数据类型

最大长度

描述

warehouseCode


String

仓库代码。具有唯一性,下单需使用仓库代码

warehouseName
String
仓库名称
countryCode
String
仓库所在国家二字码

serviceList


List

服务列表


serviceCodeString
服务代码。不唯一

serviceNameString
服务名称。在同一个仓库、同一个服务类型下具有唯一性,在下单接口中使用服务名称下单

serviceTypeShort
服务类型  4:Transshipment;5:Fulfillment

serviceTypeNameString
服务类型名称

activeShort
客户服务状态 0:Inactive;1:Active

activeMsgString
服务状态名称


响应样例

{
	"code":"0",
	"data":[
		{
			"countryCode":"CA",
			"serviceList":[
				{
					"active":1,
					"activeMsg":"Active",
					"serviceCode":"CAWS",
					"serviceName":"加西仓",
					"serviceType":4,
					"serviceTypeName":"Transshipment"
				}
			],
			"warehouseCode":"CASW",
			"warehouseName":"加二仓"
		},
		{
			"countryCode":"AU",
			"serviceList":[
				{
					"active":1,
					"activeMsg":"Active",
					"serviceCode":"AU转运出库单",
					"serviceName":"TEST.AU.ZY",
					"serviceType":4,
					"serviceTypeName":"Transshipment"
				}
			],
			"warehouseCode":"AU2",
			"warehouseName":"AU测试仓库2"
		}
		
	],
	"errors":"",
	"message":"",
	"messageId":"",
	"success":true,
	"warnList":""
}