Description

Retrieve available warehouse and service data for the Calling Party

Path

HTTP Verb

URL

GET

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


Sample:

Request Header 

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


Request

FieldData TypeLength LimitRequiredDescription
serviceType
Short
O

Enumeration:

4: Transshipment,

5: Fulfillment.

Default: all service types

Request Sample


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



Response

Level 1 Field

Level 2 Field

Data Type

Length Limit

Description

warehouseCode


String

Warehouse code. Unique identifier, required for order placement

warehouseName
String
Warehouse name
countryCode
String
Two-character country code of warehouse location

serviceList


List

Service list


serviceCodeString
Service code. Not unique

serviceNameString
Service name. Unique within same warehouse and service type; used for placing orders

serviceTypeShort

Service type   4: Transshipment; 5: Fulfillment.


serviceTypeNameString
Service type name

activeShort
Customer service status 0:Inactive;1:Active

activeMsgString
Service status name


Response Sample

{
	"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":""
}