Get order attribution in bulk
POST https://{handle}.myshopline.com/admin/openapi/v20260301/orders/order_attribution_info.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 .Get a list of attribution details based on the specified order IDs.
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
- orders array requiredA list of order IDs.
Maximum size: 500Example:["[\"21071058873779430237494658\",\"21069159447203440732216088\"]"]
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
dataobject[]
List of order attribution data.days_for_conversion integerThe number of days taken for order conversion.first_interactionobject
The details of the buyer's first interaction that led to the order.first_interact_time stringTime of the first interaction. Format: ISO 8601.Example:2025-03-21T17:46:17+08:00first_interaction_source stringFirst referrer source type. Valid values are:Direct: Directly visiting the storeSocial: Visiting the store through social media recommendationsSearch: Visiting the store via search engine recommendationsOther: Visiting the store through recommendations from other websitesAI Chat: Visiting the store through recommendations from AI chat conversations
Example:Socialfirst_landing_page_url stringFirst landing page URL.first_referrer_name stringFirst referrer name.Example:Facebookfirst_referrer_url stringFirst referrer URL.first_utm_parametersobject
UTM parameters from the first interaction, used for advertising order attribution.first_utm_campaign stringFirst UTM campaign theme.Example:black_friday_2025first_utm_content stringFirst UTM campaign content.Example:textlink vs buttonfirst_utm_medium stringFirst UTM campaign medium.Example:socialfirst_utm_name stringFirst UTM campaign name.Example:main_banner_v1first_utm_source stringFirst UTM campaign source.Example:googlefirst_utm_term stringFirst UTM campaign term.Example:running+shoeslast_interactionobject
The details of the buyer's latest interaction that led to the order.last_interact_time stringTime of the latest interaction. Format: ISO 8601.Example:2025-03-21T17:48:14+08:00last_interaction_source stringLatest referrer source type. Valid values are:Direct: Directly visiting the storeSocial: Visiting the store through social media recommendationsSearch: Visiting the store via search engine recommendationsOther: Visiting the store through recommendations from other websitesAI Chat: Visiting the store through recommendations from AI chat conversations
Example:Sociallast_landing_page stringLatest landing page URL.last_referrer_name stringLatest referrer name.Example:Facebooklast_referrer_url stringLatest referrer URL.last_utm_parametersobject
UTM parameters from the latest interaction, used for advertising order attribution.last_utm_campaign stringLatest UTM campaign theme.Example:black_friday_2025last_utm_content stringLatest UTM campaign content.Example:textlink vs buttonlast_utm_medium stringLatest UTM campaign medium.Example:sociallast_utm_name stringLatest UTM campaign name.Example:main_banner_v1last_utm_source stringLatest UTM campaign source.Example:googlelast_utm_term stringLatest UTM campaign term.Example:running+shoesorder_seq stringOrder ID.Example:21071058873779430237494658total_traffics integerThe number of interactions a user has before order conversion.
API Explorer
Debugger
Examples
Was this article helpful to you?