Sale orders created in Odoo’s Sales module can be loaded into the POS for fulfillment. This bridges the back-office order flow with the restaurant POS.Documentation Index
Fetch the complete documentation index at: https://docs.laportenard.com/llms.txt
Use this file to discover all available pages before exploring further.
API endpoints
| Endpoint | Purpose |
|---|---|
POST /pos-api/v1/sale-orders/list | List sale orders for a customer (by partner_id) |
POST /pos-api/v1/sale-orders/load | Load a sale order into POS-compatible format |
Loading flow
Select customer
A customer must be assigned to the order. The system fetches their pending sale orders.
Pick sale order
The sale order picker displays pending orders with name, date, and total amount. The user selects one.
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.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).