Voorraad
Wat een praktijk in Swyp als voorraad bijhoudt, met aantallen en opslaglocatie.
Elk item is een product uit Swyp of een eigen product dat de praktijk zelf toevoegde. Bij een eigen product is productId null en is vendors leeg.
stock is het aantal dat in Swyp staat. Het stijgt als de praktijk bij een levering in Swyp telt wat er geleverd is. Verbruik telt pas mee als de praktijk het aantal aanpast.
Om een leveringslijn aan de voorraad te koppelen, stem je af op productId.
GET
Elk product dat de praktijk in haar voorraad bijhoudt, laatst toegevoegd eerst. Het antwoord is niet gepagineerd.
apiKeyheader
AuthorizationBearer <swyp_...>De API-sleutel van de praktijk.
X-Practice-Id?stringVerplicht als de sleutel toegang geeft tot meerdere praktijken.
Formaat
uuidDe voorraad.
application/json- response
[index: integer]?curl -X GET 'https://api.swyp.be/inventory'Voorbeeldantwoord
[ { "id": "e4c2a9f1-3b6d-4e8a-9c1f-5a6b7c8d9e0f", "name": "Nitrile gloves, size M, 100 pcs", "stock": 3, "min": 5, "max": 20, "unit": "box", "productId": "5e6f7a8b-1c2d-4e3f-9a0b-1c2d3e4f5a6b", "sku": "NIT-M-100", "ean": "5412345678901", "category": "Gloves", "vendors": [ "HENRYSCHEIN", "BASIQ" ], "externalSupplier": null, "storageLocation": { "id": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d", "name": "Drawer 2", "path": "/Treatment room 1/Drawer 2" }, "createdAt": "2026-09-14T07:30:00.000Z", "updatedAt": "2026-11-03T15:42:10.218Z" }, { "id": "f5d3b0a2-4c7e-4f9b-8d2a-6b7c8d9e0f1a", "name": "Lab coat", "stock": 12, "min": null, "max": null, "unit": null, "productId": null, "sku": null, "ean": null, "category": "Clothing", "vendors": [], "externalSupplier": "Local workwear shop", "storageLocation": null, "createdAt": "2026-10-02T10:05:41.903Z", "updatedAt": "2026-10-02T10:05:41.903Z" }]Heb je hier iets aan gehad?
Laatst bijgewerkt op