Discussing APIs and development related to customers, discounts, and order management.
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
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