快工助手跨境电商知识与商机助手

Significant OpenAPI Updates

Shopee 官方资料 · Shopee Open Platform 变更通知(Announcements) · 适合开发者

stable本次发布有变化全部展示

来自 Shopee 官方资料快照 ·

打开官方原文 ↗
  1. 当前资料结构化阅读页
  2. 固定快照已留存,可追溯
  3. 官方原文可核对
查看技术与溯源信息
平台 / profile
Shopee / profile.shopee.announcements
语言
en
发布版本
cn-20260909-2
标签
zhuge/sourceplatform/shopeeaudience/developercategory/announcementtopic/apitopic/api-producttopic/api-pushtopic/changelogtopic/developertopic/openapi-updates

资料正文

§1 Significant OpenAPI Updates

尊敬的开发者,请留意以下变动:

1.添加商品与更新商品接口均新增渠道互斥逻辑,即当添加商品或修改商品信息时,如果同一商品的两条渠道互斥,则接口会报错,并在message中提示此两条渠道无法同时打开。例如:message:"invalid logistic info , channel_id:8004 (This channel cannot open with other selected channels at the same time, channelid : [81000]) | channel_id:81000 (This channel cannot open with other selected channels at the same time, channelid : [8004])",需要重新只选择其中一条enable方可调用成功。

影响接口:

shopee.item.Add

shopee.item.UpdateItem

v2.product.add_item

v2.product.update_item

上线时间:2021/12/23

2.V2的push接口新增了4个配置项分别为:brand_register_result、promotion_update、webchat_update、open_api_authorization_expiry,可以分别通过v2.push.set_push_config进行配置,并通过v2.push.get_push_config查询配置结果。

影响接口:

v2.push.get_push_config

v2.push.set_push_config

上线时间:2021/12/23

3.原逻辑,商品在参与部分活动类型(例如Product Promotion/Flash Sale/Brand Sale),并处于活动期间,卖家不可以修改库存。现改为支持所有活动类型,商品在活动期间,卖家可以修改库存。

影响接口:

v2.product.update_stock

shopee.item.UpdateVariationStockBatch

shopee.item.UpdateStockBatch

shopee.item.UpdateVariationStock

shopee.item.UpdateStock

上线时间:2021/12/28

Dear Developers,

Please find below updates:

  1. Adding item and updating item information related APIs will all add a logic of conflict channels, which means add item API and update item API in V1 and V2 will fail and return error message when 2 conflict channels being enabled at the same time. For example:message:"invalid logistic info , channel_id:8004 (This channel cannot open with other selected channels at the same time, channelid : [81000]) | channel_id:81000 (This channel cannot open with other selected channels at the same time, channelid : [8004])".Then you need to only choose one of them to enable and call API again.

Related API:

shopee.item.Add

shopee.item.UpdateItem

v2.product.add_item

v2.product.update_item

Effective Date on Live:2021/12/23

2.V2 push API will add 4 new types of configuration:brand_register_result、promotion_update、webchat_update、open_api_authorization_expiry, you can use v2.push.set_push_config to open/close their toggle and use v2.push.get_push_config to check the result of all the configuration of pushing.

Related API:

v2.push.get_push_config

v2.push.set_push_config

Effective Date on Live:2021/12/23

3.If the product participates in some types of promotion (for example, Product Promotion/Flash Sale/Brand Sale), seller cannot modify the stock when the promotion is ongoing. Now it supports all types of promotion, sellers can modify the stock during the event.

Related API:

v2.product.update_stock

shopee.item.UpdateVariationStockBatch

shopee.item.UpdateStockBatch

shopee.item.UpdateVariationStock

shopee.item.UpdateStock

Effective Date on Live:2021/12/28

#