The Medicines API manages the platform-wide medicine catalog and per-pharmacy inventory. Catalog records describe a medicine’s properties — name, dosage form, active ingredient, and whether a prescription is required. Inventory endpoints are scoped to individual pharmacies and allow stock and price adjustments, which are reflected immediately in the Aura Pharmacy 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.
GET /api/v1/medicines
Return the full medicine catalog. Supports a name search to narrow results.Query parameters
Partial or full medicine name to search. Case-insensitive.
Page number.
Results per page.
curl example
POST /api/v1/medicines
Add a new medicine to the catalog. Requires theadmin role.
Request body
The medicine’s commercial or generic name.
Optional description of the medicine’s purpose or composition.
Physical form of the medicine. One of:
tablet, syrup, injection, capsule, cream, drops, inhaler.Primary active pharmaceutical ingredient.
Concentration or strength, e.g.
"500mg" or "10mg/ml".When
true, pharmacies require a valid prescription before dispensing.Optional barcode or SKU for scanning at the counter.
curl example
GET /api/v1/pharmacies/:id/inventory
Return the full inventory list for a specific pharmacy. Each item includes the medicine details, current stock, and unit price.Path parameters
UUID of the pharmacy.
curl example
POST /api/v1/pharmacies/:id/inventory/adjust
Adjust the stock level (and optionally the price) of a medicine in a specific pharmacy’s inventory. Use a positivequantity_change to add stock and a negative value to remove it.
Path parameters
UUID of the pharmacy whose inventory is being adjusted.
Request body
UUID of the medicine to adjust.
Units to add (positive) or remove (negative) from current stock.
New unit price. Omit to keep the existing price.
curl example
GET /api/v1/pharmacies/:id/inventory/movements
Return the inventory movement history (Kardex) for a specific pharmacy. Each entry records a stock change with its type, quantity, and timestamp.Path parameters
UUID of the pharmacy.
curl example
Movement type values
| Type | Description |
|---|---|
restock | Stock added during a reorder or supplier delivery |
sale | Units deducted when a sale is processed |
adjustment | Manual quantity correction by a pharmacy manager |
in | Generic inbound stock movement |
out | Generic outbound stock movement |
Dosage form values
| Value | Description |
|---|---|
tablet | Solid oral tablet |
syrup | Liquid oral suspension |
injection | Injectable solution or powder |
capsule | Hard or soft gelatin capsule |
cream | Topical cream or ointment |
drops | Ophthalmic, otic, or nasal drops |
inhaler | Pressurized metered-dose or dry-powder inhaler |