批量同步营销事件统计数据
POST https://{handle}.myshopline.com/admin/openapi/v20250601/sales/marketing_events/sync_data.json
handle
:店铺的唯一标识符,值为店铺域名的前缀。例如,域名为 open001.myshopline.com
的店铺,其 handle
是 open001
。批量同步营销事件统计数据(创建营销参与)
请求头
- Content-Type required字段值固定为
application/json; charset=utf-8
- Authorization string required资源的访问令牌。请参考 应用授权 获取访问令牌,然后将获取到的访问令牌以 Bearer 格式传入Example:
Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw
请求体
marketing_activity_datasobject[]
营销事件数据,统计数据为全量数据add_cart_sum long加购数Example:100
benefit_amount long优惠金额Example:100
bounced_num long弹回数Example:100
check_out_sum long结账数Example:100
click_num long点击数Example:100
custom_activity_engagement_listobject[]
自定义拓展-活动参与度,最多5个name string数据名称,最长20个字符Example:FackbookOrderConversionRate
tool_tips string提示语,最长30个字符Example:Fackboo order conversion rate
type integer数据类型,1-金额;2-百分比;3-数值Example:2
value string数据值Example:0.09
custom_sale_data_listobject[]
自定义拓展-销售数据,最多5个name string数据名称,最长20个字符Example:FackbookOrderCount
tool_tips string提示语,最长30个字符Example:Order from Fackbook count
type integer数据类型,1-金额;2-百分比;3-数值Example:3
value string数据值Example:100
get_unit_cost long获得单位成本Example:100
has_delivery_num long送达数Example:100
has_send_num long发送数Example:100
impression_num long曝光数,指展示次数Example:100
marketing_event_id string营销事件的唯一idExample:MA_12323312324
new_buyer_sum long新客数Example:100
occurred_on long发生时间,标准13位时间戳Example:1672246800000
old_buyer_sum long老客数Example:1001672246800000
open_sum long打开数Example:100
order_amount long销售额Example:100
order_num long订单数Example:100
order_product_sum long订单商品总数Example:100
order_visitor_amount long下单用户数Example:100
product_sale_listobject[]
商品销量-排行榜,最多10个count long销量Example:100
product_id string商品idExample:16062938070772167548642145
purchase_num long购买数Example:100
regional_visit_listobject[]
地区访问量-排行榜,最多5个count long访问量Example:100
name string名称,最长200个字符Example:ua
reported_as_spam_num long报告为垃圾邮件数Example:100
spend_cost long营销成本Example:100
unsubscribed_num long取消订阅数Example:100
visitor_amount long访客数Example:100
响应
- 200
- 401
- 429
API Explorer
调试台
这篇文章对你有帮助吗?
Error loading component.