API endpoints
Loading flow
1
Select customer
A customer must be assigned to the order. The system fetches their pending sale orders.
2
Pick sale order
The sale order picker displays pending orders with name, date, and total amount. The user selects one.
3
Load into POS
Calls
/pos-api/v1/sale-orders/load with the sale order ID and POS config ID. Returns order lines with product, quantity, price, discount, and tax information.4
Add to current order
The loaded lines are added to the active POS order. Products are matched by ID and taxes are mapped to the POS tax configuration.
Response format
TheloadSaleOrder endpoint returns:
Error handling
The API client uses a customSaleOrderLoadError class that includes an error code and details, handling both API-level errors and validation failures (e.g., product not found in POS catalog).