Hi Support,
Is there any way to fetch the order data from the server prior to the order confirmation page?
Is there any way to fetch the order data from the server before the order confirmation page?
Hi Support,
Is there any way to fetch the order data from the server prior to the order confirmation page?
Is there any way to fetch the order data from the server before the order confirmation page?
You can try using the Checkout API to retrieve order data before the confirmation page. The OrderForm endpoint (/api/checkout/pub/orderForm/{orderFormId}) allows you to fetch real-time order details during the checkout process.
Make sure you have the correct orderFormId, which is generated when a user starts a checkout session. You can retrieve it from local storage or a previous API response.
If you’re looking for a way to trigger this earlier in the flow, consider using VTEX’s order placement hooks or custom middleware.