The Delivery Orders API is the backbone of the Oasis Express dispatch system. Orders are created automatically when a sale is processed withDocumentation 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: true. Pharmacy managers and dispatchers can then list pending orders, assign an available driver, and track the delivery through its status lifecycle. Drivers update their GPS position with each status transition, enabling real-time tracking.
GET /api/v1/delivery-orders
Return a paginated list of delivery orders. Results are filtered by the caller’s role — drivers see only their own assigned orders, pharmacy managers see orders from their pharmacy, and admins see all.Query parameters
Filter by delivery status. One of:
pending, assigned, picked_up, in_transit, delivered, cancelled.Filter by originating pharmacy UUID.
Filter by assigned driver UUID.
ISO 8601 lower bound on
order_date.Page number.
Results per page.
curl example
POST /api/v1/delivery-orders/:id/assign
Assign a delivery driver to an order. The order must be inpending status. After assignment the status transitions to assigned.
Path parameters
UUID of the delivery order.
Request body
UUID of the delivery driver to assign. The driver must have
is_available: true.curl example
PATCH /api/v1/delivery-orders/:id/status
Update the status of a delivery order. Drivers call this endpoint as they move through the delivery workflow. GPS coordinates are used to update the driver’s recorded position.Path parameters
UUID of the delivery order.
Request body
New delivery status. One of:
pending, assigned, picked_up, in_transit, delivered, cancelled.Driver’s current latitude. Recommended when updating to
picked_up, in_transit, or delivered.Driver’s current longitude. Recommended when updating to
picked_up, in_transit, or delivered.curl example
Delivery status lifecycle
| Status | Description |
|---|---|
pending | Order created, awaiting driver assignment |
assigned | A driver has been assigned |
picked_up | Driver has collected the order from the pharmacy |
in_transit | Order is on the way to the delivery address |
delivered | Order successfully delivered to the patient |
cancelled | Order was cancelled before delivery |
DeliveryOrder key response fields
UUID of the delivery order.
UUID of the originating pharmacy.
UUID of the receiving patient.
UUID of the assigned delivery driver. Null until assigned.
Current delivery status.
Street address of the pharmacy (pickup point).
Street address of the delivery destination.
ISO 8601 timestamp when the order was created.
ISO 8601 timestamp when the order was delivered. Null until status is
delivered.