Thank You Page - Shipping address update via backend

Hi we run a business where we ship grocery to inmate ordered by their families. We have an issue with our checkout process, before a client is able to view the checkout form/page, they will have entered the inmate ID number, which we send through an external api to fetch the inmate data. We have the inmates location, name, and ID.

During the checkout processes, the form for inputing the shippping address is now used to collect billing addresses, once the client hit checkout, we want to update and change the shipping address thats shown on the thank you page to an updated addressed computed via our backend/ api.

What is the proper process for achieving this, I created an app using the orderCreate webhook, but thats triggering too late and isnt updating the shipping address on the thank you page, our competitor is doing a good job at this already. So I know its possible.

Thank You

The Thank You page doesn’t have the order data synchronously unfortunately.

The only solution I’ve found is to poll the order API and display a loading indicator until the order is finalized.

You mentioned that you believe your competitors have found a solution, but are you certain in your testing that these stores have upgraded to the new Customer Account Extensions? Or are they using the older Order Status page?

Non-Plus Shopify stores aren’t required to migrate to the new Customer Account TYP/OSP yet. And the older Order Status page supported synchronous changes/editing HTML directly.

So as far as I know, it’s not possible for a Thank You page to immediately retrieve the order data, nor it is it possible to override built in blocks like the Shipping Address/Billing Address blocks.