# 4 仓库

# 4.1 仓库信息

# 4.1.1 获取仓库信息 (GET)

# URL

https://developers.cjdropshipping.com/api2.0/v1/warehouse/detail

# CURL

curl --location 'https://developers.cjdropshipping.com/api2.0/v1/warehouse/detail?id=201e67f6ba4644c0a36d63bf4989dd70' \
     --header 'CJ-Access-Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
参数名称 参数意义 参数类型 是否必传 长度 备注
id 仓库id string 200 Query

# 返回

success

{
    "code": 200,
    "result": true,
    "message": "Success",
    "data": {
        "id": "201e67f6ba4644c0a36d63bf4989dd70",
        "name": "Cranbury Warehouse",
        "areaId": 2,
        "areaCountryCode": "US",
        "address1": "Cranbury, New Jersey ",
        "address2": null,
        "contacts": null,
        "phone": "+1-9095862127",
        "city": "Cranbury",
        "province": "New Jersey",
        "logisticsBrandList": [
            {
                "id": "USPS",
                "name": "USPS"
            },
            {
                "id": "FedEx",
                "name": "FedEx"
            },
            {
                "id": "UPS",
                "name": "UPS"
            },
            {
                "id": "GOFO",
                "name": "GOFO"
            },
            {
                "id": "DHL",
                "name": "DHL"
            },
            {
                "id": "UniUni",
                "name": "UniUni"
            },
            {
                "id": "CBT",
                "name": "CBT"
            }
        ],
        "isSelfPickup": null,
        "zipCode": null
    },
    "requestId": "2b97f15603384fe4832e85617cf07d9c",
    "success": true
}
返回字段 字段意思 字段类型 长度 备注
id 仓库id string 200
name 仓库名称 string 200
areaId 区域id integer 200
areaCountryCode 区域国家二字码 string 200
province 省份 string 200
city 城市 string 200
address1 地址1 string 200
address2 地址2 string 200
contacts 联系人 string 200
phone 联系人电话 string 200
isSelfPickup 是否支持自提 integer 1 1: 支持 0: 不支持
zipCode 邮政编码 string 200
logisticsBrandList 支持的品牌列表 list 200
- id 品牌ID string 200
- name 品牌名称 string 200

error

{
    "code": 1608001,
    "result": false,
    "message": "Warehouse info not found",
    "data": null,
    "requestId": "c5d92fbc9c794c5caa0ce453dd9c9236",
    "success": false
}
返回字段 字段意思 字段类型 长度 备注
code 错误码 int 20 返回错误码标准表
result 是否正常返回 boolean 1
message 返回信息 string 200
data object 接口数据返回
requestId 请求Id string 48 用于日志查询错误