Hey @joriswpp
, thanks for the questions. Happy to help look into this!
Just to clarify, are you building for the post‑purchase interstitial page (after payment, before Order status), or for the Thank you / Order status pages?
If it’s post‑purchase, extensions can make network requests to your own service using fetch from a web‑worker, but your server must allow CORS (for example, Access‑Control‑Allow‑Origin: *).
My understanding is that cookies are not available for post purchase functions and essentially won’t behave like first‑party storage relative to the checkout domain, so I’d recommend using the extension Storage API and your backend for persistence.
The post‑purchase page is technically a single surface that you render so, there aren’t discrete “before/after order summary” targets there. If you need to compute pricing or edit the initial purchase, use calculateChangeset/applyChangeset from the Post‑purchase API, and call done() to continue to the Order status page.
If your goal is to place content before or after the order summary, that would technically map to Checkout UI extension targets on the Thank you / Order status pages, not post‑purchase.
You could pick a precise target (for example, after all line items) from the targets catalog here: https://shopify.dev/docs/api/checkout-ui-extensions/targets, and the Thank you / Order status overview is here: About Thank you and Order status page customization.
For those UI extensions, you’d want to enable external calls by allowing network_access in your extension configuration and Partner Dashboard, and observe the CORS requirements documented here: https://shopify.dev/docs/api/checkout-ui-extensions/latest/configuration#network-access.
If you want flexible placement managed by merchants, I’d also reccommend considering block targets (for example, purchase.thank-you.block.render) so merchants can position your block in the editor.
Could you let me know which surface you’re looking at targetting and the exact spot where you want the UI to render, plus what data you need to fetch, so I can point you to the exact targets/APIs and sample code? Happy to help out further if need be and hope this helped a bit, feel free to ping me here 