1 ---
2 products:
3 - product
4 - inventory
5 - order
6 - sales channel
7 - payment
8 ---
9
10 import { AcademicCapSolid } from "@medusajs/icons"
11
12 export const metadata = {
13 title: `Point-of-Sale (POS) Recipe`,
14 }
15
16 # {metadata.title}
17
18 This recipe provides the general steps to build a Point of Sale (POS) system with Medusa.
19
20 ## Overview
21
22 Building a POS system on top of an ecommerce engine introduces challenges related to the tech stack used, data sync across channels, and feature availability relevant to offline sales in a POS, not just online sales.
23
24 Medusa's modular architecture solves these challenges. Any frontend can utilize Medusa's commerce features, such as sales channels or multi-warehouse features, through its REST APIs.
25
26 <Note title="Related use-case">
27
28 [How Tekla built a POS system with Medusa](https://medusajs.com/blog/tekla-agilo-pos-case/).
29
30 </Note>
31
32 ---
33
34 ## Freedom in Choosing Your POS Tech Stack
35
36 When you build a POS system, you choose the programming language or tool you want to use.
37
38 Medusa's modular architecture removes any restrictions you may have while making this choice. Any client or frontend can connect to the Medusa application using its headless REST APIs.
39
40 ![POS Tech Stack](https://res.cloudinary.com/dza7lstvk/image/upload/v1709034046/Medusa%20Book/pos-tech-stack_fy8uiu.jpg)
41
42 <Card
43 href="!api!/admin"
44 title="Admin REST APIs"
45 text="Check out available Admin REST APIs in Medusa."
46 icon={AcademicCapSolid}
47 />
48
49 ---
50
51 ## Integrate a Barcode Scanner
52
53 POS systems make the checkout process smoother by integrating a barcode scanner. Merchants scan a product by its barcode to check its details or add it to the customer's purchase.
54
55 The Product Module's [ProductVariant](/references/product/models/ProductVariant) data model has the properties to implement this integration, mainly the `barcode` attribute. Other notable properties include `ean`, `upc`, and `hs_code`, among others.
56
57 To search through product variants by their barcode, create a custom API Route and call it within your POS.
58
59 ![Example flow of integrating a barcode scanner](https://res.cloudinary.com/dza7lstvk/image/upload/v1709034282/Medusa%20Book/pos-scan-barcode_a8j8ew.jpg)
60
61 <CardList
62 itemsPerRow={2}
63 items={[
64 {
65 href: "/commerce-modules/product",
66 title: "Product Module",
67 text: "Learn about the Product Module.",
68 icon: AcademicCapSolid,
69 },
70 {
71 href: "!docs!/learn/fundamentals/api-routes",
72 title: "Create API Route",
73 text: "Learn how to create an API Route.",
74 icon: AcademicCapSolid,
75 },
76 ]}
77 />
78
79 ---
80
81 ## Access Accurate Inventory Details
82
83 As you manage an online and offline store, it's essential to separate inventory quantity across different locations.
84
85 Medusa's [Inventory](../../commerce-modules/inventory/page.mdx), [Stock Location](../../commerce-modules/stock-location/page.mdx), and [Sales Channel](../../commerce-modules/sales-channel/page.mdx) modules allow merchants to manage the inventory items and their availability across locations and sales channels.
86
87 ![Using Multi-warehouse features with POS](https://res.cloudinary.com/dza7lstvk/image/upload/v1709034731/Medusa%20Book/pos-multiwarehouse_r1z48x.jpg)
88
89 Merchants can create a sales channel for their online store and a sales channel for their POS system, then manage the inventory quantity of product variants in each channel.
90
91 This also opens the door for other business opportunities, such as an endless aisle experience.
92
93 Suppose a product isn't available in-store but is available in different warehouses. You can allow customers to purchase that item in-store and deliver it to their address.
94
95 <CardList
96 items={[
97 {
98 href: "/commerce-modules/inventory",
99 title: "Inventory Module",
100 text: "Learn about the Inventory Module.",
101 icon: AcademicCapSolid,
102 },
103 {
104 href: "/commerce-modules/stock-location",
105 title: "Stock Location Module",
106 text: "Learn about the Stock Location Module.",
107 icon: AcademicCapSolid,
108 },
109 ]}
110 />
111
112 <Card
113 href="/commerce-modules/sales-channel"
114 title="Sales Channel Module"
115 text="Learn about the Sales Channel Module."
116 icon={AcademicCapSolid}
117 className="mt-1"
118 />
119
120 ---
121
122 ## Build an Omni-channel Customer Experience
123
124 Using Medusa's [Customer Module](../../commerce-modules/customer/page.mdx), you can retrieve a customer's details from the Medusa application and place an order on the POS under their account. The customer can then view their order details on their online profile as if they had placed the order online.
125
126 In addition, using Medusa's [Promotion Module](../../commerce-modules/promotion/page.mdx), store operators can create promotions on the fly for customers using the POS system and apply them to their orders.
127
128 You can also create custom modules to provide features for a better customer experience, such as a rewards system or loyalty points.
129
130 <CardList
131 itemsPerRow={2}
132 items={[
133 {
134 href: "/how-to-tutorials/tutorials/loyalty-points",
135 title: "Loyalty Points Tutorial",
136 text: "Learn how to create a loyalty points system.",
137 icon: AcademicCapSolid,
138 },
139 {
140 href: "/commerce-modules/customer",
141 title: "Customer Module",
142 text: "Learn about the Customer Module.",
143 icon: AcademicCapSolid,
144 },
145 {
146 href: "/commerce-modules/promotion",
147 title: "Promotion Module",
148 text: "Learn about the Promotion Module.",
149 icon: AcademicCapSolid,
150 },
151 {
152 href: "!docs!/learn/fundamentals/modules",
153 title: "Create a Module",
154 text: "Learn how to create a module.",
155 icon: AcademicCapSolid,
156 }
157 ]}
158 />
159
160 ---
161
162 ## Accept Payment, Place Order, and Use RMA Features
163
164 Medusa's architecture allows you to integrate any third-party payment provider for your POS and online storefront. For example, you can integrate [Stripe Terminal](https://stripe.com/terminal) to accept in-store payments.
165
166 Once you accept the payment, you can place an order in the POS system using the [Draft Order APIs](!api!/admin/draft-orders). Draft orders provide similar features to an online checkout experience, including discounts, payment processing, and more.
167
168 Then, merchants can view all orders coming from different sales channels using the Medusa Admin. This keeps logistics and order handling consistent between online and in-store customers.
169
170 <CardList
171 items={[
172 {
173 href: "/references/payment/provider",
174 title: "Create a Payment Module Provider",
175 text: "Learn how to create a payment module provider.",
176 icon: AcademicCapSolid,
177 },
178 {
179 href: "!api!/admin",
180 title: "Admin REST APIs",
181 text: "Check out available Admin REST APIs.",
182 icon: AcademicCapSolid,
183 },
184 ]}
185 />