Skip to main content

Order API

The Order API provides access to order confirmation data on the Thank You page. Use this API to display post-purchase information, detect first-time buyers, and present personalized offers.

Order data is read-only. There are no methods to modify order details from a checkout extension.

OrderConfirmationApi is available only on purchase.thank-you extension targets. Order data isn't accessible during the checkout flow.

If you're building an order status page extension, use the Order API for customer accounts. OrderStatusApi has moved there.

  • Display order confirmation details: Show the buyer a summary of their completed order.
  • Detect first-time buyers: Check whether this is the buyer's first order and display a welcome offer.
  • Present personalized post-purchase offers: Tailor the Thank you page based on order context.

Anchor to Order confirmation propertiesOrder confirmation properties

The shopify global object provides the following additional properties on shopify for extensions registered for the purchase.thank-you extension targets.

Anchor to orderConfirmation
orderConfirmation
<>
required

The order details available after the buyer completes checkout, including the order ID, order number, and whether it's the buyer's first purchase.

Anchor to Order status propertiesOrder status properties

Note

This documentation has moved to customer accounts. Refer to Order API


  • Use order.id for backend operations: The order.id is a globally unique GID that corresponds to the order in the GraphQL Admin API. Use it to trigger post-purchase workflows like fulfillment, analytics, or loyalty program enrollment.

Was this page helpful?