- 开发指南
- 基础接口
- 客户设置
- 消息推送
- 客户&线索&待分配
- 客户查询
- 客户导入
- 客户
- 线索&待分配
- 商机
- 个人客户转企业客户
- 企业客户联系人
- 客户旅程
- 客户操作
- 按企微员工id列出企微好友客户详情POST
- 公海
- 企微组织架构
- 企微标签库
- 企业
- 合同
- 电商平台
- 营销
- 数据统计
- 内容访客
- 电销手机
- SOP任务
- 群发消息
- 管控
- 工单
- 素材
- 应用通知
- 附录
- 群数据
- 店主活码
导入商城商品
POST
/api/v1/h5_spu/replace
限制:10000条
请求参数
Header 参数
appId
string
应用 appId
默认值:
{{appId}}
timestamp
string
请求时间戳
默认值:
{{timestamp}}
sign
string
请求消息签名值
默认值:
{{sign}}
appKey
string
应用 appKey
默认值:
{{appKey}}
Body 参数application/json
每次最多导入10000条数据
array of:
spuId
integer
商品spuId
picture
string
商品图片
goodsName
string
商品名称
goodsDesc
string
商品描述
price
integer
商品价格
originPrice
integer
商品原价(划线价)
shopId
string
商城ID
goodsType
integer
0-小程序 1-链接 不填为0
goodsUrl
string
商品链接/小程序链接
goodsDetail
string
商品详情(富文本字符)
deleted
integer
为0的时候是新增或者修改(spuId冲突的时候修改,spuId不存在的时候新增),当deleted 不为0的时候,为删除,deleted传递的删除时间的时间戳
categoryId
integer
商品类别
appId
string
绑定小程序的appid
如果跳转探马后台绑定的小程序,可不指定appid
示例
[
{
"spuId": 17,
"picture": "http://dummyimage.com/400x400",
"goodsName": "此联通各求",
"goodsDesc": "esse",
"price": 40,
"originPrice": 2,
"shopId": "13",
"goodsUrl": "http://rmwf.sg/jgbutqcvu",
"deleted": 40,
"categoryId": 38,
"goodsType": 8,
"goodsDetail": "mollit non ex laborum minim",
"appId": "53"
},
{
"spuId": 19,
"picture": "http://dummyimage.com/400x400",
"goodsName": "习事取民义",
"goodsDesc": "laborum commodo voluptate occaecat",
"price": 81,
"originPrice": 2,
"shopId": "11",
"goodsUrl": "http://tbokabeu.sg/awtogmxh",
"deleted": 43,
"categoryId": 76,
"appId": "35",
"goodsDetail": "labore Lorem aliquip proident id",
"goodsType": 2
},
{
"spuId": 20,
"picture": "http://dummyimage.com/400x400",
"goodsName": "至位们学较作感",
"goodsDesc": "esse exercitation ea ex",
"price": 8,
"originPrice": 81,
"shopId": "80",
"goodsUrl": "http://uthgej.sl/xwfremq",
"deleted": 68,
"categoryId": 25,
"appId": "19",
"goodsType": 19,
"goodsDetail": "commodo sint mollit non sed"
}
]
示例代码
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/replace' \
--header 'appId;' \
--header 'timestamp;' \
--header 'sign;' \
--header 'appKey: {{appKey}}' \
--header 'Content-Type: application/json' \
--data-raw '[
{
"spuId": 17,
"picture": "http://dummyimage.com/400x400",
"goodsName": "此联通各求",
"goodsDesc": "esse",
"price": 40,
"originPrice": 2,
"shopId": "13",
"goodsUrl": "http://rmwf.sg/jgbutqcvu",
"deleted": 40,
"categoryId": 38,
"goodsType": 8,
"goodsDetail": "mollit non ex laborum minim",
"appId": "53"
},
{
"spuId": 19,
"picture": "http://dummyimage.com/400x400",
"goodsName": "习事取民义",
"goodsDesc": "laborum commodo voluptate occaecat",
"price": 81,
"originPrice": 2,
"shopId": "11",
"goodsUrl": "http://tbokabeu.sg/awtogmxh",
"deleted": 43,
"categoryId": 76,
"appId": "35",
"goodsDetail": "labore Lorem aliquip proident id",
"goodsType": 2
},
{
"spuId": 20,
"picture": "http://dummyimage.com/400x400",
"goodsName": "至位们学较作感",
"goodsDesc": "esse exercitation ea ex",
"price": 8,
"originPrice": 81,
"shopId": "80",
"goodsUrl": "http://uthgej.sl/xwfremq",
"deleted": 68,
"categoryId": 25,
"appId": "19",
"goodsType": 19,
"goodsDetail": "commodo sint mollit non sed"
}
]'
返回响应
🟢200成功
application/json
Body
code
integer
响应码
message
string
响应信息
示例
{
"code": 0,
"message": "success"
}
修改于 2023-03-27 08:14:58