I am developing an app which will be placed in the order complete action menu when an order is completed.
Is there any methods/functions/actions which would allow me to retrieve data from the just-completed order and further process it with my app?
Solved! Go to the solution
An alternative way of using embedded app in order complete section is webhook.
- First, embedded app obtains accessToken through auth flow to access Graphql / REST Admin API.
- Second, they create a Webhook for Order Creation. See https://help.shopify.com/en/api/graphql-admin-api/reference/mutation/webhooksubscriptioncreate or https://help.shopify.com/en/api/reference/events/webhook
Let me know if it helps.
hello, I am facing the same issue as well... however, I was checking one of your app
When I complete the order and click APPS -> Print with Order Printer, then the modal can show the exact order I want to print, may I know how to do that? I also tried to use this app to re-print some other orders, and the app can print it, so I am sure that's not using webhook to do that...To be able to get the order info is very useful for app development. Thanks.
I'm new to shopify app developing and I'm having the same problem, I didn't totally understand your answer @Henry_Tao , I'm really sorry but Can I ask you to explain better where I found most recent order id?
Thanks again, have a nice Day.
What I mean is that when merchant opens your app in the order completed screen, you can access to order id in the request query params. For instance: `https://your-app.com/?id=xyz&shop=...&hmac=...×tamp=...&locale=...`. The `id` in query params is the order id that you are looking for.
Let me know if you see it.