Skip to main content
GET
/
estoque
/
{estoque_id}
curl -X GET https://api.vidaplus.com/estoque/1 \
  -H "Authorization: Bearer YOUR_TOKEN"
{
  "id": 1,
  "tipo_item": "Medicamento",
  "nome": "Paracetamol",
  "quantidade": 100,
  "unidade": "mg",
  "data_validade": "2025-12-31"
}

Authentication

This endpoint requires a valid Bearer token with admin/superuser privileges.

Path Parameters

estoque_id
integer
required
Unique identifier of the inventory itemExample: 1

Response

id
integer
Unique identifier of the inventory item
tipo_item
enum
Type of inventory item (Medicamento, Insumo, or Equipamento)
nome
string
Name of the inventory item
quantidade
integer
Quantity available in stock
unidade
string
Unit of measurement
data_validade
date
Expiration date
curl -X GET https://api.vidaplus.com/estoque/1 \
  -H "Authorization: Bearer YOUR_TOKEN"
{
  "id": 1,
  "tipo_item": "Medicamento",
  "nome": "Paracetamol",
  "quantidade": 100,
  "unidade": "mg",
  "data_validade": "2025-12-31"
}

Error Codes

Status CodeDescription
200Inventory item retrieved successfully
401Authentication token missing or invalid
403User does not have admin/superuser privileges
404Inventory item with the specified ID not found

Build docs developers (and LLMs) love