Skip to main content
GET
/
stock
/
low
Articles en rupture ou stock bas
curl --request GET \
  --url https://api.treats.vet/api/v1/stock/low \
  --header 'X-API-Key: <api-key>'
[
  {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "productId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "productName": "Amoxicilline 500mg",
    "productCategory": "Antibiotique",
    "quantity": 123,
    "minThreshold": 123,
    "maxThreshold": 123,
    "isLowStock": true,
    "isOutOfStock": true,
    "lastMovementAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
]

Authorizations

X-API-Key
string
header
required

Clé API fournie par l'administrateur de la clinique. Format : vk_...

Response

Articles en stock bas

id
string<uuid>
productId
string<uuid>
productName
string
Example:

"Amoxicilline 500mg"

productCategory
string
Example:

"Antibiotique"

quantity
integer

Quantité actuelle

minThreshold
integer

Seuil minimum d'alerte

maxThreshold
integer

Seuil maximum

isLowStock
boolean

Stock sous le seuil minimum

isOutOfStock
boolean

Rupture de stock

lastMovementAt
string<date-time>

Date du dernier mouvement de stock

updatedAt
string<date-time>