I’d recommend running through this tutorial (~10 minutes) to see how the pieces fit together. From there, you have access to this information on the thank you page and this information on the order status page.
For #1. You can get the order ID like this:
const { order } = useApi()
console.log(order.current().id);
For #2. You could construct this URL by using the order ID and the Shop ID
Thanks for replying. Unfortunately we need the order id on the thank you page and it’s not available in the Standard API. It would be great to have this order data available on the thank you page (at least the order id, number and maybe the orderstatus url) or provide a method to allow the user to advanced to the order status page via a button, link or pressable.
Is it possible to interact with the admin api (REST or GraphQL) in a checkout ui extension. If yes, could you provide an example? I’m currently using the remix stack for our internal app and would like to see what the possibilities are here.
Just realized that I can simply use the pure ID of gid://shopify/OrderIdentity/5881974834746, i.e., 5881974834746 and use it in a GraphQL query as Order. Like this: