Create marketing events
POST https://{handle}.myshopline.com/admin/openapi/v20261201/sales/marketing_events.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 .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 eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJhcHBJZCI6MCwiYXBwS2V5IjoiNzU2ZjI1NWE2NjdlZTcwNTk1MzM0ZjVjYzk4NzU5MzBmN2E3NGZjMSIsImV4cCI6MTg3OTQ4MjA3NiwiaXNzIjoieXNvdWwiLCJzZWxsZXJJZCI6IjIwMDAyMzQ4ODAiLCJzdG9yZUlkIjoiMTY3MjM2OTcyOTYwNiIsInRpbWVzdGFtcCI6MTc4NDc4NzY3NjY2MSwidmVyc2lvbiI6IlYyIn0.3ZzbGAH4cLU1QR2VPEvMOQInUDvus-C4amkINSQIPuNVlXsFKj0sAt1c0KnUy9MWUOFV9cHlkf7J90r2y1FzpA
Request Body
marketing_eventobject
Marketing eventsutm_term stringKey words for identification searchExample:This is search word for utm itemevent_type string required●ad : advertising ● post : push ( fb post-chinese ) ● message : sms ● retargeting : dynamic redirect advertising ● transactional : ● affiliate : distribution / kol / red people ●Loyalty : gift card ● newsletter : subscription mail ● abandoned_cart : discard ● live : live broadcastExample:admarketing_channel string requiredMarketing event select channels ● search ● display ● social ● email ● referral ● smsExample:searchremote_id stringResources idExample:6019932248291157288utm_source stringAdvertising customers , advertising websitesExample:manong.myshopline.comutm_medium stringIdentification source typeExample:emailutm_campaign stringIdentify specific advertisingExample:googlestarted_at stringStart timeExample:2022-12-15T09:00:00+08:00description stringDescriptionExample:This is description for marketing eventended_at stringEnd timeExample:2023-12-15T09:00:00+08:00referring_domain stringDomain name for marketing events , if marketing_channel is search and social , specify is neededExample:manong.myshopline.comutm_content stringDistinguish between the same ad and different linksExample:googleAdspreview_url stringUrl to preview(Examples link are for reference only)Example:https://manong.myshopline.com/manage_url stringManaged links (Examples link are for reference only)Example:https://manong.myshopline.com/admin/
Status Codes
- 200
- 400
- 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
marketing_eventobject
Marketing eventsremote_id stringResources idExample:6019942645165466925referring_domain stringDomain name for marketing events , if marketing_channel is search and social , specify is neededExample:manong.myshopline.compreview_url stringUrl to previewExample:https://manong.myshopline.com/marketing_channel stringMarketing event select channels ● search ● display ● social ● email ● referral ● smsExample:searchdescription stringMarketing campaign descriptionExample:This is description for marketing eventutm_medium stringIdentification source typeExample:emailutm_campaign stringIdentify specific advertisingExample:googleutm_term stringKey words for identification searchExample:This is search word for utm itemevent_type string●ad : advertising ● post : push ( fb post-chinese ) ● message : sms ● retargeting : dynamic redirect advertising ● transactional : ● affiliate : distribution / kol / red people ●Loyalty : gift card ● newsletter : subscription mail ● abandoned_cart : discard ● live : live broadcastExample:adid stringId for marketing eventsExample:4073marketing_event_id stringYingxiao id for marketing eventsExample:MA_6019943243021559089manage_url stringManaged links (Examples link are for reference only)Example:https://manong.myshopline.com/admin/ended_at stringEnd timeExample:2023-12-15T09:00:00+08:00started_at stringStart timeExample:2022-12-15T09:00:00+08:00utm_content stringDistinguish between the same ad and different linksExample:googleAdsutm_source stringAdvertising customers , advertising websitesExample:manong.myshopline.com
API Explorer
Debugger
Examples
Was this article helpful to you?