Skip to main content
GET
/
stock
/
{stockId}
Détails d'un article en stock
curl --request GET \
  --url https://api.treats.vet/api/v1/stock/{stockId} \
  --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_...

Path Parameters

stockId
string<uuid>
required

Identifiant de l'article

Response

Détails de l'article

Article en stock

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>