The Sales API handles the point-of-sale flow for pharmacy managers. A sale records the medicines dispensed, the amounts charged, and optionally links the transaction to a patient and a digital prescription. WhenDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/FlasheyEstudi/Oasis-Liquido/llms.txt
Use this file to discover all available pages before exploring further.
is_delivery is set to true, the API automatically creates a DeliveryOrder and returns its ID and initial status alongside the sale confirmation.
POST /api/v1/sales
Create a new pharmacy sale. Requires thepharmacy_manager role. The pharmacy is inferred from the authenticated manager’s profile; no pharmacy_id field is needed in the request body.
Request body
One or more line items in the sale.
UUID of the patient purchasing. Optional for anonymous counter sales.
UUID of a validated prescription to link to this sale. Include when dispensing prescription-only medicines.
Set to
true to create a delivery order for this sale. When true, delivery_address, delivery_lat, and delivery_lng are required.Full street address for delivery. Required when
is_delivery is true.Delivery latitude coordinate. Required when
is_delivery is true.Delivery longitude coordinate. Required when
is_delivery is true.Optional notes for the sale or delivery.
curl example — counter sale
curl example — delivery sale
Response fields
UUID of the newly created sale record.
Present only when
is_delivery was true. Contains the created delivery order reference.Setting
is_delivery: true automatically creates a DeliveryOrder with status pending. The order can then be assigned to a driver via the Delivery Orders API.