Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

How to get the customer journey for an order using REST API in Shopify?

How to get the customer journey for an order using REST API in Shopify?

user072319
Shopify Partner
131 0 17

How to get the customer journey for an order using REST API in Shopify? 

 

Example: For a Shopify order 4578957, I want to get the customer journey with all pages the customer went through to place the order. 

 

I found the GraphQL documentation here https://shopify.dev/docs/api/admin-graphql/2023-04/objects/CustomerJourneySummary. Is there a similar API call in REST API?

 

Any pointers would be appreciated

Reply 1 (1)

Liam
Community Manager
3108 344 889

Hi,

 

The customer journey information is not exposed via the REST API, it's only available in the Shopify GraphQL API.

 

If you are strictly limited to using the REST API, you may need to make multiple API calls to retrieve different pieces of information about a customer's interactions (such as order history, page visits if tracked etc), and then manually construct the customer journey, but it may not be as accurate. 

 

Hope this helps!

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog