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

shop_authorization_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/pushtopic/shopee-push

资料正文

§1 shop_authorization_push

This push allows you to be notified once shops or merchants are authorized to your app

#

§2 Overview

Overview

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

§3 Push parameters

Push parameters

NameTypeRequiredSampleDescription
partner_idint200000Shopee's unique identifier for your App. Partner ID is assigned upon registration is successful.
codeint1Shopee's unique identifier for a push notification
timestamptimestamp1610000000Timestamp that indicates the message was sent.
dataobject[]
data.shop_idint600000[Optional]; Shopee's unique identifier for a shop. It indicates which shop has been authorized.
data.shop_id_listint[][6000000,60000001][Optional] If the seller uses a main account to authorize multiple shops at the same time, there will be this parameter to indicate all authorized shops
data.merchant_idint600000[Optional]; Shopee's unique identifier for a merchant. It indicates which merchant has been authorized.
data.merchant_id_listint[][6000000,60000001][Optional]; If the seller uses a main account to authorize multiple merchants at the same time, there will be this parameter to indicate all authorized merchants
data.authorize_typestringshop authorization by userIn which way shops are authorized to App
data.extrastringshop id 600000 (SG) has been authorizedDetails of the authorization
data.main_account_idint60000[Optional]; Shopee's unique identifier for a main account. If a seller uses a main account to authorize, it would have this parameter to indicate which main account seller use to authorize
data.successint1Indicates if the push is success
#

§4 Sample

Sample

{"data":{"authorize_type":"shop authorization by user","extra":"shop id 600000 (SG) has been authorized successfully","shop_id":60011111,"success":1},"partner_id":2000002,"code":1,"timestamp":1660616278}
{"data":{"authorize_type":"shop authorization by user","extra":"Shop has been authorized successfully","main_account_id":68272,"shop_id_list":[62000001,62000002,62000003,62000004],"success":1},"partner_id":2000002,"code":1,"timestamp":1660616631}
{"data":{"authorize_type":"merchant authorization by user","extra":"merchant id 600000 has been authorized successfully","merchant_id":600222872,"success":1},"partner_id":2000007,"code":1,"timestamp":1660616278}
#

§5 Update log

Update log

DateChange
2022-08-18New Push Mechanism
#