Delivery drivers are the last-mile layer of Oasis Liquido. Once a pharmacy processes a sale with home delivery, the resulting order becomes visible to available drivers. You pick up the package, update status at each stage of the journey, and broadcast your GPS position so the patient can follow you on the live map.Documentation 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.
What drivers can do
- Browse open delivery orders scoped to your availability status
- Accept an order to become its assigned driver
- Progress the order through each handoff status (
pending → assigned → picked_up → in_transit → delivered) - Share your current GPS coordinates with each status update
- View pickup and drop-off addresses and coordinates for routing
Driver profile fields
Your account is backed by aDeliveryDriverProfile record with the following fields:
| Field | Type | Description |
|---|---|---|
vehicle_type | string | Type of vehicle used for deliveries (default: "motocicleta") |
license_plate | string | Vehicle license plate number |
is_available | boolean | Whether you appear in the pool of assignable drivers |
current_lat | float | Latest reported latitude |
current_lng | float | Latest reported longitude |
Delivery status lifecycle
Every delivery order moves through a defined sequence of statuses. You advance the status by calling the status update endpoint and including your current coordinates.| Status | Action |
|---|---|
pending | Order created by the pharmacy; no driver assigned yet |
assigned | You accepted the order (assigned_at is recorded) |
picked_up | You collected the package from the pharmacy (picked_up_at is recorded) |
in_transit | You are en route to the patient’s address |
delivered | Package handed to the patient (delivered_at is recorded) |
cancelled | Order cancelled before delivery was completed |
Updating status with GPS coordinates
Each status transition should include your current position so the patient’s map stays accurate.DeliveryRoute entries attached to the order, building a full route history that both the patient and administrators can review.
Viewing available orders
The order list endpoint returns orders filtered by your role automatically. You can apply additional filters:DeliveryOrder includes pickup_address, pickup_lat, pickup_lng, delivery_address, delivery_lat, and delivery_lng — everything needed to plan your route before accepting.
Once you accept an order it is locked to your driver ID. If you cannot complete a delivery, contact your pharmacy administrator to reassign or cancel the order.