Solved

Get liquid order.customer_url or rest api order.token in GraphQL API

ko-lem-pc
Tourist
7 0 5

In liquid, we have this https://shopify.dev/docs/themes/liquid/reference/objects/order#order-customer_url. I would like to be able to get the same url in my app.

order.token in rest api should do it but is there a way to get this value through the GraphQL api?

Accepted Solution (1)

awwdam
Shopify Staff
249 42 36

This is an accepted solution.

Hey @ko-lem-pc,

At the moment this field is unavailable to query via GraphQL. Pulling that information via REST will be your best option right now - REST Admin API - Order.  

awwdam | API Support @ 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

View solution in original post

Replies 2 (2)

awwdam
Shopify Staff
249 42 36

This is an accepted solution.

Hey @ko-lem-pc,

At the moment this field is unavailable to query via GraphQL. Pulling that information via REST will be your best option right now - REST Admin API - Order.  

awwdam | API Support @ 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

ko-lem-pc
Tourist
7 0 5

Ah, figured. Thanks