Mass sync marketing event statistics
POST https://{handle}.myshopline.com/admin/openapi/v20260301/sales/marketing_events/sync_data.json
handle : The store's unique identifier, which is the prefix of the store's domain name. For example, if a store's domain name is open001.myshopline.com , the store handle is open001 .Bulk sync marketing event statistics (Create marketing engagement)
Request Headers
- Content-Type string requiredThe field must be set to the fixed value
application/json; charset=utf-8. - Authorization string requiredThe access token for the API resource. Refer to App authorization to obtain the access token, and then pass the obtained token in the Bearer format.Example:
Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw
Request Body
marketing_activity_datasobject[]
Marketing event data, statistical data is full dataorder_num longOrder qtyExample:100visitor_amount longNumber of visitorsExample:100order_amount longSalesExample:100occurred_on longTime to happen , standard 13- digit stampExample:1672246800000impression_num longExposure number , refers to the number of displaysExample:100new_buyer_sum longNew guest numberExample:100product_sale_listobject[]
Product sale rankingproduct_id stringProduct idExample:16062938070772167548642145count longProduct saleExample:100unsubscribed_num longUnsubscribed numExample:100check_out_sum longCheckout numberExample:100click_num longClick countExample:100custom_activity_engagement_listobject[]
Custom activity engagement, max size =5name stringName, maximum 20 charactersExample:FackbookOrderConversionRatetool_tips stringTool tips, maximum 30 charactersExample:Fackboo order conversion ratetype integerValue type, 1-amount; 2-percent; 3-numericalExample:2value stringValueExample:0.09old_buyer_sum longNumber of old buyerExample:1001672246800000regional_visit_listobject[]
Regional visit ranking, max size=5count longRegional visitExample:100name stringRegional name, maximum 200 charactersExample:uabenefit_amount longDiscount amountExample:100has_delivery_num longNumber of deliveriesExample:100marketing_event_id stringId for marketing eventsExample:MA_12323312324open_sum longNumber of openExample:100reported_as_spam_num longReported as spam numExample:100add_cart_sum longAdditional purchase numberExample:100custom_sale_data_listobject[]
custom sale data, max size =5value stringValueExample:100name stringName, maximum 20 charactersExample:FackbookOrderCounttool_tips stringTool tips, maximum 30 charactersExample:Order from Fackbook counttype integerValue type, 1-amount; 2-percent; 3-numericalExample:3spend_cost longMarketing costExample:100has_send_num longNumber of sendExample:100order_product_sum longOrder Product total numberExample:100bounced_num longBounced numExample:100order_visitor_amount longNumber of users orderedExample:100purchase_num longNumber of purchasesExample:100get_unit_cost longGet unit costExample:100
Status Codes
- 200
- 401
- 429
For the complete list of codes and messages, see Http status code.
Response Headers
traceId
A globally unique identifier for the request. It is used to track the request flow throughout the system, allowing for easy location and debugging when issues arise.
Response Body
- sucess_count integerSuccess total numberExample:
1
API Explorer
Debugger
Was this article helpful to you?