- 开发指南
- 基础接口
- 客户设置
- 消息推送
- 客户&线索&待分配
- 客户查询
- 客户导入
- 客户
- 线索&待分配
- 商机
- 个人客户转企业客户
- 企业客户联系人
- 客户旅程
- 客户操作
- 按企微员工id列出企微好友客户详情POST
- 公海
- 企微组织架构
- 企微标签库
- 企业
- 合同
- 电商平台
- 营销
- 数据统计
- 内容访客
- 电销手机
- SOP任务
- 群发消息
- 管控
- 工单
- 素材
- 应用通知
- 附录
- 群数据
- 店主活码
导入商城商品类别
POST
/api/v1/h5_spu/category
请求参数
Header 参数
appId
string
应用 appId
默认值:
{{appId}}
timestamp
string
请求时间戳
默认值:
{{timestamp}}
sign
string
请求消息签名值
默认值:
{{sign}}
appKey
string
应用 appKey
默认值:
{{appKey}}
Body 参数application/json
shopId
string
商城ID
categoryList
array [object {6}]
商品类型
categoryId
integer
类别ID
categoryName
string
类别名称
parentCategoryId
integer
父类别ID
categoryLevel
integer
级别
deleted
integer
是否删除
departmentIds
array[number]
类别的适用部门
示例
{
"shopId":"apple_shop",
"categoryList":[
{
"categoryId":1,
"categoryName":"男装",
"parentCategoryId":0,
"categoryLevel": 1,
"deleted":0,
"departmentIds":[1589,3652]
},
{
"categoryId":2,
"categoryName":"女装",
"parentCategoryId":0,
"categoryLevel": 1,
"deleted":0,
"departmentIds":[6352,6668]
},
{
"categoryId":3,
"categoryName":"精品男装",
"parentCategoryId":1,
"categoryLevel": 2,
"deleted":0
},
{
"categoryId":4,
"categoryName":"精品女装",
"parentCategoryId":2,
"categoryLevel": 2,
"deleted":0
}
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/v1/h5_spu/category' \
--header 'appId;' \
--header 'timestamp;' \
--header 'sign;' \
--header 'appKey: {{appKey}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"shopId":"apple_shop",
"categoryList":[
{
"categoryId":1,
"categoryName":"男装",
"parentCategoryId":0,
"categoryLevel": 1,
"deleted":0,
"departmentIds":[1589,3652]
},
{
"categoryId":2,
"categoryName":"女装",
"parentCategoryId":0,
"categoryLevel": 1,
"deleted":0,
"departmentIds":[6352,6668]
},
{
"categoryId":3,
"categoryName":"精品男装",
"parentCategoryId":1,
"categoryLevel": 2,
"deleted":0
},
{
"categoryId":4,
"categoryName":"精品女装",
"parentCategoryId":2,
"categoryLevel": 2,
"deleted":0
}
]
}'
返回响应
🟢200成功
application/json
Body
code
integer
响应码
message
string
响应信息
示例
{
"code": 0,
"message": "success"
}
修改于 2022-09-15 08:58:53