微信小店API /区域仓库API /创建区域仓库 /
创建区域仓库
接口说明
通过该接口可创建区域仓库。
注意事项
out_warehouse_id命名规则
类型 | 内容 |
字母数字 | [0-9, a-z, A-Z] |
特殊字符 | [-_.] |
cover_locations说明
address_id1必填,其他地址可以留空,覆盖区域举例说明(其中ABCD均非0):
address_id1 | address_id2 | address_id3 | address_id4 | 可覆盖地址 |
A | 0 | 0 | 0 | A省份。 |
A | B | 0 | 0 | A省份B市。 |
A | B | C | 0 | A省份B市C区。 |
A | B | C | D | A省份B市C区D街道。 |
接口调用请求说明
请求参数说明
参数 | 类型 | 是否必填 | 描述 |
out_warehouse_id | string | 是 | 外部仓库ID,一个店铺下,同一个外部ID只能创建一个仓库,最大128字符 |
name | string | 是 | 仓库名称 |
intro | string | 是 | 仓库介绍 |
cover_locations[] | array[cover_locations] | 否 | 覆盖区域,可以在创建后添加 |
cover_locations[].address_id1 | number | 是 | 省份地址编码 |
cover_locations[].address_id2 | number | 否 | 市地址编码 |
cover_locations[].address_id3 | number | 否 | 区地址编码 |
cover_locations[].address_id4 | number | 否 | 街道地址编码 |
请求参数示例
返回参数说明
参数 | 类型 | 描述 |
errcode | number | 错误码 |
errmsg | string | 错误信息 |
返回参数示例
错误码
错误码 | 错误描述 |
公共错误码 | - |
10020200 | out_warehouse_id命名非法 |
10020203 | address_id非法,或关联关系非法 |
10020205 | 仓库名称或仓库介绍为空 |
The translations are provided by WeChat Translation and are for reference only. In case of any inconsistency and discrepancy between the Chinese version and the English version, the Chinese version shall prevail.Incorrect translation. Tap to report.