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

reserved_stock_change_push

Shopee 官方资料 · Shopee Open Platform 推送机制(Push Mechanism) · 适合开发者

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

来自 Shopee 官方资料快照 ·

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

资料正文

§1 reserved_stock_change_push

Get the reserved stock change log

#

§2 Overview

Overview

FieldValue
Push code8
Timeout (seconds)3
Retry strategy (seconds)300, 1800, 10800
Guaranteed deliveryNo
#

§3 Push parameters

Push parameters

NameTypeRequiredSampleDescription
dataobjectMain Push message info
data.shop_idint12744916Shopee's unique identifier for a shop.
data.item_idint1861418518Shopee's unique identifier for an item.
data.variation_idint8791278571Shopee's unique identifier for a variation of an item.
data.changed_valuesobject[]Changed event.
data.changed_values.namestringreserved_stockThe field value we changed.
data.changed_values.oldint4951The value before change.
data.changed_values.newint4950The value after change.
data.promotion_typestringflash_salePromotion type:seller_discount / product_promotion_SG / product_promotion_MY / product_promotion_ID / product_promotion_VN / product_promotion_TW / product_promotion_TH / product_promotion_PH / flash_sale (contains: in_shop_flash_sale, flash_sale, brand_sale) / add_on_deal_main / add_on_deal_sub / bundle_deal / group_buy / Platform Streaming / Seller Streaming / Campaign (contains: deep_discount, platform_sale, low_price_promotion)
data.promotion_idint137899002020202The identity of item promotion.
data.actionstringplace_orderThe action of the event. Can be "place_order" or "cancel_order"
data.ordersnstring210810QXVJM3EXThe ordersn associated with the event.
data.update_timestring1660124246The time of event.
shop_idint127449165Shopee's unique identifier for a shop.
codeint8Shopee's unique identifier for a push notification
timestamptimestamp1660124246Timestamp that indicates the message was sent.
#

§4 Sample

Sample

{"data":{"shop_id":1274495,"item_id":18614185187,"variation_id":87912785718,"changed_values":[{"name":"reserved_stock","old":4951,"new":4950}],"promotion_type":"flash_sale","promotion_id":104993304719361,"action":"place_order","ordersn":"220810QXVJM3EX","update_time":1660124246},"shop_id":1274495,"code":8,"timestamp":1660124246}
{"data":{"shop_id":1274495,"item_id":19213740442,"variation_id":154918396482,"changed_values":[{"name":"reserved_stock","old":199,"new":200}],"promotion_type":"flash_sale","promotion_id":103363389812736,"action":"cancel_order","ordersn":"220809KS77DXTS","update_time":1660124321},"shop_id":1274495,"code":8,"timestamp":1660124321}
#

§5 Update log

Update log

DateChange
2023-08-01update promotion_type
2022-08-18New Push Mechanism
#