1. 仓库
西之月开放接口(openapi)
  • 西之月开放平台介绍
  • 西之月接入流程
  • 西之月开放API
  • 西之月订阅通知
  • 公共错误码
  • 货盘页面接入说明
  • openapi
    • 商品
      • 📖商品能力
      • SKU
        • SKU列表
        • SKU信息
        • SKU信息及价格
        • SKU查询客户价格
        • SKU查询英代欧代美代协议
        • SKU一体化标签
        • SKU一体化标签平台
        • SKU证书
        • SKU六面图
        • SKU商品图包
        • SKU视频
        • SKU商品标签【国内】
        • SKU产品文案
        • SKU实拍图附带一体化标签
        • SKU图包资料
      • 库存
        • 商品总库存列表
        • 商品分仓库存列表
        • 指定商品分仓库存
        • 圈货、备货库存查询
        • SKU实时库存【国内】
      • 商品列表
      • 商品详情
      • 商品价格
      • 个性化商品价格列表
      • 商品所有档位价格
      • 商品分类
      • 商品分类-获取子分类
      • 商品品牌
      • 商品证书
      • 商品使用说明书
    • 订单
      • 📖订单能力
      • 交接单
        • 交接单列表
        • 验证订单允许上传交接单
        • 上传交接单文件
        • 保存交接单
      • 创建订单
      • 订单预计算
      • 订单列表
      • 订单详情
      • 订单详情列表
      • 订单取消
      • 订单状态
      • 订单支付状态
      • 订单物流轨迹
    • 支付
      • 📖支付能力
      • 订单支付页面
      • 发起支付
      • 获取支付方式
      • 获取订单支付信息
    • 售后
      • 📖售后能力
      • 获取发起售后配置数据
      • 订单发起售后
      • 撤销售后
    • 账期
      • 📖账期能力
      • 已结清账期-账单列表
      • 未结清账期-账单列表
      • 未结清账单-销售订单列表
      • 未结清账单-售后订单列表
    • 品牌授权
      • 📖品牌授权能力
      • 获取授权平台列表
      • 获取模板类型列表
      • 获取授权品牌列表
      • 获取执照列表信息
      • 品牌授权申请
      • 品牌授权记录
      • 品牌授权作废
    • 其他
      • 📖其它能力
      • 仓库
        • 仓库列表信息
          POST
        • 发货区域列表
          GET
      • 物流
        • 物流公司列表
        • 获取运费接口
      • 平台
        • 获取授权码
        • 平台列表信息-新
        • 平台列表信息
      • 用户
        • 根据token获取用户信息
    • 订阅通知
      • 商品信息变更
      • 商品上下架状态变更
      • 商品库存变更
      • 商品价格变更
      • 商品删除
  1. 仓库

仓库列表信息

外部-测试环境
https://testing.westmonth.com
外部-测试环境
https://testing.westmonth.com
POST
/openapi/depot/list

仓库列表信息接口#

提供仓库列表信息的查询能力,支持根据国家二字码和发货模式筛选仓库信息。

适用场景#

查询特定国家和发货模式下的仓库列表

接口类型#

POST

请求频率限制#

默认频率:以平台配额为准

请求说明#

请求URL
正式环境:https://www.westmonth.com/openapi/depot/list
测试环境:https://testing.westmonth.com/openapi/depot/list

请求参数#

Header参数#

参数名类型必填示例值说明
Authorizationstring是authorization身份验证Token
Content-Typestring是application/json建议固定传此值

Body参数#

根 字段
参数名类型必填默认值可选值说明
country_codesarray否--国家二字码,数组
pattern_typesarray否-0:快递配送、1:第三方物流自提、2:个人自提发货模式,数组

响应字段说明#

成功响应(HTTP 200)
根 字段
字段类型说明
codeinteger业务状态码(0表示成功,1表示服务错误,2表示参数错误,3表示授权无效,4表示请求上限)
msgstring错误描述
dataarray业务数据(仓库列表信息)
data数组 字段
字段类型说明
idinteger仓库id
namestring仓库代号
depost_namestring仓库名称
delivery_region_idinteger发货区域ID
delivery_region_namestring发货区域名称
wms_co_idintegerWMS公司ID
wms_server_idintegerWMS服务器ID
sortinteger权重
pattern_typearray发货模式(0:快递配送,1:第三方物流自提,2:个人自提)
warehouse_codestring仓库编码
warehousesarray仓库地址列表
warehouses数组 字段
字段类型说明
addressstring仓库地址
contact_namestring仓库负责人
postcodestring仓库邮政编码
contact_phonestring仓库负责人联系电话

调用示例#

URL请求#

请求示例#

{
    "country_codes": [
        "US"
    ],
    "pattern_types": []
}

成功返回示例#

{
    "code": 0,
    "msg": "",
    "data": [
        {
            "id": 3,
            "name": "美国1仓",
            "depost_name": "美国万邑通仓",
            "delivery_region_id": 3,
            "delivery_region_name": "美国",
            "wms_co_id": 13625047,
            "wms_server_id": 1,
            "sort": 1,
            "pattern_type": [
                "0",
                "1",
                "2"
            ],
            "warehouses": [
                {
                    "depot_id": 3,
                    "address": "2125 Gateway Blvd, Hebron, KY 41048(周一~周五, 法定假日除外), 12:00-17:00",
                    "contact_name": "wangweixuan",
                    "contact_phone": "8594850550",
                    "postcode": "41048"
                }
            ]
        },
        {
            "id": 11,
            "name": "美国2仓",
            "depost_name": "美国万邑通美西仓",
            "delivery_region_id": 3,
            "delivery_region_name": "美国",
            "wms_co_id": 14194305,
            "wms_server_id": 1,
            "sort": 2,
            "pattern_type": [
                "0",
                "1",
                "2"
            ],
            "warehouses": [
                {
                    "depot_id": 11,
                    "address": "381 S Brea Canyon Road ,Walnut CA 91789(周一~周五, 法定假日除外):12:00-17:00",
                    "contact_name": "Willie Lam",
                    "contact_phone": "6266060308",
                    "postcode": "91789"
                }
            ]
        },
        {
            "id": 7,
            "name": "美国4仓",
            "depost_name": "美国新势力仓",
            "delivery_region_id": 3,
            "delivery_region_name": "美国",
            "wms_co_id": 13839184,
            "wms_server_id": 5,
            "sort": 4,
            "pattern_type": [
                "0",
                "1"
            ],
            "warehouses": [
                {
                    "depot_id": 7,
                    "address": "2225 Grant Ave, San Lorenzo, CA 94580",
                    "contact_name": "MSS/XSL-EASON",
                    "contact_phone": "415-937-2077",
                    "postcode": "94580"
                }
            ]
        },
        {
            "id": 17,
            "name": "美国12仓",
            "depost_name": "美国-京东仓",
            "delivery_region_id": 3,
            "delivery_region_name": "美国",
            "wms_co_id": 14198179,
            "wms_server_id": 9,
            "sort": 6,
            "pattern_type": [
                "0",
                "1"
            ],
            "warehouses": [
                {
                    "depot_id": 17,
                    "address": "1570 S. Washington Avenue, Piscataway, Middlesex County, New Jersey",
                    "contact_name": "shlyaaa",
                    "contact_phone": "2135515825",
                    "postcode": "08854"
                }
            ]
        },
        {
            "id": 34,
            "name": "美国15仓",
            "depost_name": "美国-洛杉矶仓",
            "delivery_region_id": 3,
            "delivery_region_name": "美国",
            "wms_co_id": 14653464,
            "wms_server_id": 2,
            "sort": 10,
            "pattern_type": [
                "0",
                "1"
            ],
            "warehouses": [
                {
                    "depot_id": 34,
                    "address": "11600 Los Nietos Road, Santa Fe Springs, CA",
                    "contact_name": "RAY ZHAO",
                    "contact_phone": "626-264-7515",
                    "postcode": "90670"
                }
            ]
        },
        {
            "id": 27,
            "name": "美国8仓",
            "depost_name": "美国休斯顿自建仓",
            "delivery_region_id": 3,
            "delivery_region_name": "美国",
            "wms_co_id": 14251327,
            "wms_server_id": 10,
            "sort": 11,
            "pattern_type": [
                "0",
                "1"
            ],
            "warehouses": [
                {
                    "depot_id": 27,
                    "address": "750 Almeda Genoa Rd Suite B, Houston, TX",
                    "contact_name": "Anna Gao/Qin Gao",
                    "contact_phone": "(US+1)2674143213",
                    "postcode": "77047"
                }
            ]
        },
        {
            "id": 36,
            "name": "美国16仓",
            "depost_name": "马帮休斯顿仓-香港志南资讯有限公司",
            "delivery_region_id": 3,
            "delivery_region_name": "美国",
            "wms_co_id": 14251327,
            "wms_server_id": 10,
            "sort": 20,
            "pattern_type": [],
            "warehouses": [
                {
                    "depot_id": 36,
                    "address": "750 Almeda Genoa Rd Suite B, Houston, TX",
                    "contact_name": "Anna Gao/Qin Gao",
                    "contact_phone": "(US+1)2674143213",
                    "postcode": "77047"
                }
            ]
        }
    ]
}

失败返回示例#

{
    "code": 3,
    "msg": "授权无效 authorization timestamp error",
    "data": []
}

错误处理#

公共错误码
HTTP status code错误码错误信息描述

常见问题#

Q1:如何获取有效的国家二字码?#

A:国家二字码遵循国际标准ISO 3166-1 alpha-2,可通过相关国际标准文档或权威网站查询。

版本历史#

版本日期修改说明
v1.02025-01-01初始版本

请求参数

Header 参数

Body 参数application/json

示例
{
    "country_codes": [
        "US"
    ],
    "pattern_types": []
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location 'https://testing.westmonth.com/openapi/depot/list' \
--header 'Authorization: {{token}}' \
--header 'Cookie: {{cookie}};{{cookie}}' \
--header 'Content-Type: application/json' \
--data '{
    "country_codes": [
        "US"
    ],
    "pattern_types": []
}'

返回响应

🟢200成功
application/json
Bodyapplication/json

示例
{
    "code": 0,
    "msg": "",
    "data": [
        {
            "id": 3,
            "name": "美国1仓",
            "depost_name": "美国万邑通仓",
            "delivery_region_id": 3,
            "delivery_region_name": "美国",
            "wms_co_id": 13625047,
            "wms_server_id": 1,
            "sort": 0,
            "pattern_type": [
                "0",
                "1",
                "2"
            ],
            "warehouses": [
                {
                    "depot_id": 3,
                    "address": "2125 Gateway Blvd, Hebron, KY 41048(周一~周五, 法定假日除外), 12:00-17:00",
                    "contact_name": "wangweixuan",
                    "contact_phone": "8592799537",
                    "postcode": "41048"
                }
            ]
        },
        {
            "id": 11,
            "name": "美国2仓",
            "depost_name": "美国万邑通美西仓",
            "delivery_region_id": 3,
            "delivery_region_name": "美国",
            "wms_co_id": 14194305,
            "wms_server_id": 1,
            "sort": 1,
            "pattern_type": [
                "0",
                "1",
                "2"
            ],
            "warehouses": [
                {
                    "depot_id": 11,
                    "address": "381 S Brea Canyon Road ,Walnut CA 91789(周一~周五, 法定假日除外):12:00-17:00",
                    "contact_name": "Willie Lam",
                    "contact_phone": "6266060308-5705",
                    "postcode": "91789"
                }
            ]
        },
        {
            "id": 13,
            "name": "美国3仓",
            "depost_name": "美国直新",
            "delivery_region_id": 3,
            "delivery_region_name": "美国",
            "wms_co_id": 13799844,
            "wms_server_id": 8,
            "sort": 2,
            "pattern_type": [
                "0",
                "1"
            ],
            "warehouses": [
                {
                    "depot_id": 13,
                    "address": "1724 5th Ave, Bay Shore, NY 11706",
                    "contact_name": "Cindy+CFNS",
                    "contact_phone": "+1(917)770-1819",
                    "postcode": "11706"
                }
            ]
        },
        {
            "id": 27,
            "name": "美国8仓",
            "depost_name": "美国休斯顿自建仓",
            "delivery_region_id": 3,
            "delivery_region_name": "美国",
            "wms_co_id": 14251327,
            "wms_server_id": 10,
            "sort": 5,
            "pattern_type": [],
            "warehouses": [
                {
                    "depot_id": 27,
                    "address": "750 Almeda Genoa Rd Suite B, Houston, TX",
                    "contact_name": "Anna Gao/Qin Gao",
                    "contact_phone": "(US+1)2674143213",
                    "postcode": "77047"
                }
            ]
        },
        {
            "id": 20,
            "name": "美国14仓",
            "depost_name": "美国-易达云8仓",
            "delivery_region_id": 3,
            "delivery_region_name": "美国",
            "wms_co_id": 14382105,
            "wms_server_id": 11,
            "sort": 7,
            "pattern_type": [
                "0",
                "1"
            ],
            "warehouses": [
                {
                    "depot_id": 20,
                    "address": "Deliver Address: 951 Coopertown Rd, Delanco, NJ",
                    "contact_name": "M5664/doudou",
                    "contact_phone": "732-515-9018",
                    "postcode": "08075"
                }
            ]
        },
        {
            "id": 24,
            "name": "美国6仓",
            "depost_name": "美国-阔仓美西仓",
            "delivery_region_id": 3,
            "delivery_region_name": "美国",
            "wms_co_id": 14236683,
            "wms_server_id": 8,
            "sort": 8,
            "pattern_type": [],
            "warehouses": [
                {
                    "depot_id": 24,
                    "address": "6015 Randolph St, unit B Commerce, CA",
                    "contact_name": "Feng Mai",
                    "contact_phone": "6264296687",
                    "postcode": "90040"
                }
            ]
        },
        {
            "id": 31,
            "name": "美国13仓",
            "depost_name": "美国-易达云7仓",
            "delivery_region_id": 3,
            "delivery_region_name": "美国",
            "wms_co_id": 14197035,
            "wms_server_id": 0,
            "sort": 10,
            "pattern_type": [],
            "warehouses": []
        },
        {
            "id": 17,
            "name": "美国12仓",
            "depost_name": "美国-京东仓",
            "delivery_region_id": 3,
            "delivery_region_name": "美国",
            "wms_co_id": 14198179,
            "wms_server_id": 9,
            "sort": 66,
            "pattern_type": [
                "0",
                "1"
            ],
            "warehouses": [
                {
                    "depot_id": 17,
                    "address": "1570 S. Washington Avenue, Piscataway, Middlesex County, New Jersey",
                    "contact_name": "shlyaaa",
                    "contact_phone": "2135515825",
                    "postcode": "08854"
                }
            ]
        },
        {
            "id": 7,
            "name": "美国4仓",
            "depost_name": "美国新势力仓",
            "delivery_region_id": 3,
            "delivery_region_name": "美国",
            "wms_co_id": 13839184,
            "wms_server_id": 5,
            "sort": 100,
            "pattern_type": [
                "0",
                "1"
            ],
            "warehouses": [
                {
                    "depot_id": 7,
                    "address": "2225 Grant Ave, San Lorenzo, CA 94580",
                    "contact_name": "MSS/XSL-EASON",
                    "contact_phone": "415-937-2077",
                    "postcode": "94580"
                }
            ]
        },
        {
            "id": 8,
            "name": "美国出口易直新仓",
            "depost_name": "美国直新仓",
            "delivery_region_id": 3,
            "delivery_region_name": "美国",
            "wms_co_id": 0,
            "wms_server_id": 1,
            "sort": 991,
            "pattern_type": [],
            "warehouses": []
        }
    ]
}
修改于 2026-02-24 03:32:14
上一页
📖其它能力
下一页
发货区域列表
Built with