Skip to main content
Migrate to Polaris

Version 2025-07 is the last API version to support React-based UI components. Later versions use web components, native UI elements with built-in accessibility, better performance, and consistent styling with Shopify's design system. Check out the migration guide to upgrade your extension.

Information

The customer information section on the Thank you page displays the buyer's contact details and, for shipping orders, their delivery address. Use this target to add UI immediately after the customer information section, such as referral program prompts, loyalty enrollment offers, or order follow-up messaging.

  • Referral program: Display a shareable referral link or discount code below the customer's contact details, encouraging buyers to refer friends immediately after completing their purchase.
  • Loyalty enrollment: Prompt first-time buyers to join a loyalty program, using order data to show how many points their purchase would earn.
  • Order follow-up: Display a personalized message with the order number, estimated delivery timeline, and tracking information.
  • Account creation: Encourage guest buyers to create an account by highlighting benefits like order history and faster future checkouts.
  • Feedback request: Show a compact survey or feedback link below the customer information section.

A static extension target that renders below the customer information section on the Thank you page. Unlike block targets, this target always renders in a fixed position relative to the customer information.

Anchor to Render after customer information ,[object Object]Render after customer information target

purchase.thank-you.customer-information.render-after

The OrderConfirmationApi provides read access to order data, including the order number and whether it's the buyer's first order. Extensions also have read access through API properties to checkout state, including shop details, buyer identity, cost totals, and cart lines. Write access isn't available on Thank you page targets because the order is complete.

Support
Components (59)
APIs (26)

  • Personalize for first-time buyers: Use orderConfirmation.current.isFirstOrder from useApi() to tailor messaging. First-time buyers are more receptive to loyalty enrollment and referral program prompts.
  • Keep content contextually relevant: This target renders directly below the customer's contact details. Content should relate to the buyer's identity or post-purchase actions, not to products or order summary information.

  • Limited order data: The OrderConfirmationApi only exposes isFirstOrder and number. Detailed order information like line items, payment method, or fulfillment status isn't available through this API.

Was this page helpful?