--- title: Target APIs description: >- Shopify automatically provides you with specific APIs based on where your extension runs within the POS interface. api_version: 2024-04 api_name: pos-ui-extensions source_url: html: 'https://shopify.dev/docs/api/pos-ui-extensions/2024-04/target-apis' md: 'https://shopify.dev/docs/api/pos-ui-extensions/2024-04/target-apis.md' --- # Target APIs When you build a POS UI extension, Shopify automatically provides you with specific APIs based on where your extension runs within the POS interface. This system ensures extensions receive exactly the data and functionality they need for their particular use case, while maintaining security and performance. Your [target](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/targets) determines which APIs you receive because different locations in POS require different capabilities. ## Contextual APIs Contextual APIs provide access to data and operations specific to your extension's current location within [the POS app](https://apps.shopify.com/shopify-pos). These APIs give you the ability to read and modify context-specific information like cart contents, selected products, customer details, or order information based on where your extension is rendered. | Name | Description | | - | - | | [Cart API](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/target-apis/contextual-apis/cart-api) | Add, remove, and modify cart items, apply discounts, and manage cart properties. | | [Order API](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/target-apis/contextual-apis/order-api) | Read order data and build post-purchase functionality. | ## Platform APIs Platform APIs expose device-specific hardware capabilities and native POS functionality that differentiate mobile retail experiences from traditional web applications. These APIs provide access to physical device features like barcode scanners, receipt printers, camera scanning, and device connectivity status. They enable extensions to use the unique hardware and navigation patterns of POS devices to create native retail experiences. | Name | Description | | - | - | | [Connectivity API](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/target-apis/platform-apis/connectivity-api) | Check device connectivity status and Internet connection availability. | | [Device API](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/target-apis/platform-apis/device-api) | Retrieve device information including device name, ID, and hardware capabilities. | | [Navigation API](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/target-apis/platform-apis/navigation-api) | Navigate between different screens and views within the POS interface. | | [Scanner API](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/target-apis/platform-apis/scanner-api) | Capture barcodes and QR codes using the device camera or connected barcode scanners. | ## Standard APIs Standard APIs offer core functionality that most extensions need regardless of their specific use case or location within [the POS app](https://apps.shopify.com/shopify-pos). These APIs provide essential capabilities like local data storage, session and authentication management, user notifications through toasts, and internationalization support. They serve as the foundational building blocks that enable extensions to integrate with the POS environment while maintaining consistent behavior across different contexts. | Name | Description | | - | - | | [Action API](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/target-apis/standard-apis/action-api) | Launch modal dialogs for multi-step workflows and complex interactions. | | [Locale API](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/target-apis/standard-apis/locale-api) | Retrieve the merchant's locale and localization settings for internationalization. | | [ProductSearch API](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/target-apis/standard-apis/productsearch-api) | The Product Search API provides access to POS native product search functionality, allowing you to search for products, fetch product details, and retrieve product variants with pagination support and flexible sorting options. | | [Session API](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/target-apis/standard-apis/session-api) | Access session information and generate fresh authentication tokens for secure backend API requests. | | [Toast API](https://shopify.dev/docs/api/pos-ui-extensions/2024-04/target-apis/standard-apis/toast-api) | Display toast notifications to provide feedback and information to users. | ***