POS
The POS API provides the ability to retrieve POS user, device, and location data, while also interacting with the cart and closing the app.
It is recommended to use POS UI extensions for your development needs as they provide a faster, more robust, and easier to use solution for merchants using apps on POS. To learn more about the benefits and implementation details, refer to POS UI Extensions.
Anchor to cartCart
Retrieve cart data and perform actions.
Add a new address to a customer.
Add properties for the cart.
Add custom sale for the cart.
Add a product to the cart.
Add properties to a line item.
Apply a code discount to the whole cart.
Apply a percentage or fixed amount discount to the whole cart.
Clear all contents from the cart.
Fetch the current cart.
Clears all applied discounts from the cart and optionally disables automatic discounts.
Remove the discount applied to the whole cart.
Remove properties from the cart.
Remove the current customer from the cart.
Remove a line item in the cart.
Remove a discount from a line item.
Remove properties from a line item.
Add a new or existing customer to the cart.
Apply a discount to a line item.
Subscribe the cart changes.
Update an address for a customer.
Make changes to a line item in the cart.
Anchor to CloseClose()
Close the app
Anchor to Close-returnsReturns
Anchor to DeviceDevice()
Retrieve device data
Anchor to Device-returnsReturns
Anchor to LocationLocation()
Retrieve location data
Anchor to Location-returnsReturns
Anchor to UserUser()
Refer to the user API to learn more about retrieving POS user data.
Anchor to User-returnsReturns
Fetch the POS cart
Anchor to examplesExamples
Examples for retrieving and interacting with data on the POS