--- title: Post-purchase description: The post-purchase screen appears after merchants complete a sale, return, or exchange transaction. This screen displays the transaction summary and provides opportunities for follow-up actions, customer service, and revenue generation. api_version: 2024-04 api_name: pos-ui-extensions source_url: html: https://shopify.dev/docs/api/pos-ui-extensions/2024-04/targets/post-purchase md: https://shopify.dev/docs/api/pos-ui-extensions/2024-04/targets/post-purchase.md --- # Post-purchase The post-purchase screen appears after merchants complete a sale, return, or exchange transaction. This screen displays the transaction summary and provides opportunities for follow-up actions, customer service, and revenue generation. ### Use cases * **Purchase details:** Display warranty information, registration links, and care instructions. * **Customer follow-up:** Launch satisfaction surveys, loyalty enrollment, and follow-up communications. * **Upselling:** Present complementary products and service add-ons. * **External integrations:** Connect with CRM (Customer Relationship Management), marketing automation, and inventory systems. ![Post-purchase targets overview](https://cdn.shopify.com/shopifycloud/shopify-dev/production/assets/assets/images/api/pos-ui-extensions/targets-overview-images/post-purchase-overview-BN5zz9_a.png) *** ## Post-purchase targets Use these targets for purchase completion workflows, post-sale analytics, or integration with external systems for customer engagement and business intelligence. ### Post-purchase action (menu item) target `pos.purchase.post.action.menu-item.render` Renders a single interactive button component as a menu item in the post-purchase action menu. Use this target for post-purchase operations like sending receipts, collecting customer feedback, or launching follow-up workflows after completing a sale. Extensions at this target can access the order identifier through the Order API to perform purchase-specific operations. Menu items typically invoke `api.action.presentModal()` to launch the companion [modal](#post-purchase-action-modal-) for complete post-purchase workflows. Support Components (1) APIs (8) ### Supported components * [Action​Item](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/ui-components/actions/actionitem) ### Available APIs * [Action API](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/target-apis/standard-apis/action-api) * [Connectivity API](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/target-apis/platform-apis/connectivity-api) * [Device API](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/target-apis/platform-apis/device-api) * [Locale API](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/target-apis/standard-apis/locale-api) * [Order API](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/target-apis/contextual-apis/order-api) * [Product​Search API](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/target-apis/standard-apis/productsearch-api) * [Session API](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/target-apis/standard-apis/session-api) * [Toast API](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/target-apis/standard-apis/toast-api) Examples ### Examples * #### Add a menu item to post-purchase actions ##### Description Create an action menu item that appears after a purchase is completed. This example demonstrates rendering an ActionItem button in the post-purchase menu using the \`pos.purchase.post.action.menu-item.render\` target, enabling post-sale workflows like receipt sending or feedback collection. ##### React ```tsx import React from 'react'; import { reactExtension, ActionItem, useApi } from '@shopify/ui-extensions-react/point-of-sale'; const ActionItemComponent = () => { const api = useApi(); return api.action.presentModal()}/> } export default reactExtension('pos.purchase.post.action.menu-item.render', () => ); ``` ##### TS ```ts import {ActionItem, extension} from '@shopify/ui-extensions/point-of-sale'; export default extension( 'pos.purchase.post.action.menu-item.render', (root, api) => { const actionItem = root.createComponent(ActionItem, { onPress: () => api.action.presentModal(), enabled: true, }); console.log(JSON.stringify(api)); root.append(actionItem); }, ); ``` ### Post-purchase action (modal) target `pos.purchase.post.action.render` Renders a full-screen modal interface launched from post-purchase [menu items](#post-purchase-action-menu-item-). Use this target for complex post-purchase workflows that require forms, multi-step processes, or detailed information displays beyond what a simple button can provide. Extensions at this target have access to order data through the Order API and support workflows with multiple screens, navigation, and interactive components. Support Components (30) APIs (7) ### Supported components * [Action​Item](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/ui-components/actions/actionitem) * [Badge](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/ui-components/feedback-and-status-indicators/badge) * [Banner](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/ui-components/feedback-and-status-indicators/banner) * [Button](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/ui-components/actions/button) * [Camera​Scanner](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/ui-components/navigation-and-content/camerascanner) * [Date​Field](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/ui-components/forms/datefield) * [Date​Picker](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/ui-components/forms/datepicker) * [Dialog](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/ui-components/feedback-and-status-indicators/dialog) * [Email​Field](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/ui-components/forms/emailfield) * [Formatted​Text​Field](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/ui-components/forms/formattedtextfield) * [Icon](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/ui-components/media-and-visuals/icon) * [Image](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/ui-components/media-and-visuals/image) * [List](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/ui-components/layout-and-structure/list) * [Navigator](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/ui-components/navigation-and-content/navigator) * [Number​Field](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/ui-components/forms/numberfield) * [Pin​Pad](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/ui-components/forms/pinpad) * [Radio​Button​List](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/ui-components/forms/radiobuttonlist) * [Screen](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/ui-components/layout-and-structure/screen) * [Scroll​View](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/ui-components/layout-and-structure/scrollview) * [Search​Bar](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/ui-components/navigation-and-content/searchbar) * [Section](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/ui-components/layout-and-structure/section) * [Segmented​Control](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/ui-components/navigation-and-content/segmentedcontrol) * [Selectable](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/ui-components/actions/selectable) * [Stack](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/ui-components/layout-and-structure/stack) * [Stepper](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/ui-components/forms/stepper) * [Text](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/ui-components/layout-and-structure/text) * [Text​Area](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/ui-components/forms/textarea) * [Text​Field](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/ui-components/forms/textfield) * [Time​Field](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/ui-components/forms/timefield) * [Time​Picker](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/ui-components/forms/timepicker) ### Available APIs * [Connectivity API](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/target-apis/platform-apis/connectivity-api) * [Device API](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/target-apis/platform-apis/device-api) * [Locale API](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/target-apis/standard-apis/locale-api) * [Order API](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/target-apis/contextual-apis/order-api) * [Product​Search API](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/target-apis/standard-apis/productsearch-api) * [Session API](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/target-apis/standard-apis/session-api) * [Toast API](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/target-apis/standard-apis/toast-api) Examples ### Examples * #### Build a post-purchase action modal ##### Description Create a full-screen modal that launches from post-purchase menu items to handle complex post-sale workflows. This example shows how to build a basic modal using the \`pos.purchase.post.action.render\` target with navigation and content, perfect for multi-step post-purchase processes. ##### React ```tsx import React from 'react' import { Text, Screen, ScrollView, Navigator, reactExtension } from '@shopify/ui-extensions-react/point-of-sale' const Modal = () => { return ( Welcome to the extension! ) } export default reactExtension('pos.purchase.post.action.render', () => ); ``` ##### TS ```ts import { Navigator, Screen, ScrollView, Text, extension, } from '@shopify/ui-extensions/point-of-sale'; export default extension('pos.purchase.post.action.render', (root) => { const navigator = root.createComponent(Navigator); const screen = root.createComponent(Screen, { name: 'HelloWorld', title: 'Hello World!', }); const scrollView = root.createComponent(ScrollView); const text = root.createComponent(Text); text.append('Welcome to the extension!'); scrollView.append(text); screen.append(scrollView); navigator.append(screen); root.append(navigator); }); ``` *** ## Best practices * **Show clear action confirmations:** Show clear success or error messages that specify which purchase was affected and what action was completed, using messages like "Purchase #1001 processed successfully," "Customer survey sent," or "Unable to process - system error." * **Ensure purchase continuity:** Ensure that post-purchase actions integrate properly with the overall transaction lifecycle and business processes, such as updated inventory records, triggered follow-up workflows, and recorded sales analytics. * **Handle error states gracefully:** Communicate purchase processing limitations clearly rather than showing generic error messages. If your extension processes purchase data or triggers post-purchase workflows, ensure you handle completion states responsibly, provide clear feedback about processing stages, and communicate any requirements or restrictions that affect purchase finalization or follow-up actions. * **Write clear and action-oriented labels:** Use action-oriented labels that specify what will happen for this particular purchase, with descriptive titles that indicate the information type. Use labels like "Send receipt by email" or "Purchase Summary" instead of generic labels like "Purchase options" or "Purchase App." * **Show current status and purchase information:** Show current purchase status, relevant metrics, and action eligibility to support completion decisions, such as purchase completion status, "Purchase completed successfully," and order ID and customer details. *** ## Limitations * You can only render one [`Button`](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/ui-components/actions/button) component for each POS UI extension using the action (menu item) target. * Order data is read-only through the [Order API](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/target-apis/contextual-apis/order-api), which provides only the order ID, name, and customer ID. To access additional purchase information or modify purchase data, use external API calls or integrate with the Admin API through your app backend. ***