餐饮团购-同步商品库存
同步库存
使用限制
无
接口说明
1、小程序商品使用,非小程序商品可忽略此接口
基本信息
HTTP URL | ||||
HTTP Method | POST | |||
申请权限 | 商品发布 | |||
权限要求 |
|
请求头
参数 | 描述 | 必须 |
Content-Type | application/json | 是 |
access-token | 是 |
请求参数
Body 请求
参数名称 | 参数类型 | 是否必传 | 参数描述 |
| string | FALSE | 商品id product_id 和out_id 字段须二选一 |
| string | FALSE | 商品第三方id product_id 和out_id 字段须二选一 |
| StockStruct | TRUE | 库存信息 |
| int | TRUE | 库存上限类型,为2时stock_qty字段无意义 1-有限库存 2-无限库存 |
| int | TRUE | 总库存,limit_type=2时无意义 |
| string | TURE | 商家ID,传入时服务商须与该商家满足授权关系 |
请求示例
curl --location 'https://open.douyin.com/goodlife/v1/akte/goods/stock/sync/' \ --header 'access-token: clt.fbf20fbdd88a69ef7e52bf7c953b2d94aJghqCfoYQJsiuCM43y9f8dK9Pmh' \ --header 'Content-Type: application/json' \ --header 'Cookie: passport_csrf_token=07a8ffb6d249f30aaacb663c962296d4; passport_csrf_token_default=07a8ffb6d249f30aaacb663c962296d4' \ --data '{ "out_id": "akte_goods_demo", "stock": { "limit_type": 1, "stock_qty": 800 }, "account_id": "7166966001467131917" }'
响应参数
参数名称 | 参数类型 | 是否必传 | 参数描述 |
| struct | TRUE |