Voorraad

Raadpleeg het voorraadoverzicht en bekijk voorraadtransacties.

Endpoints

MethodePadBeschrijving
GET/inventory/overviewVoorraadoverzicht ophalen
GET/inventory/overview/:idVoorraaddetails per content ophalen
GET/inventory/transactionsAlle transacties ophalen
GET/inventory/transactions/:idSpecifieke transactie ophalen
GET/inventory/lostandfoundLost & Found items ophalen
GET/inventory/lostandfound/:idLost & Found detail ophalen

Voorraadoverzicht

GET /inventory/overview

Response 200 OK

[
  {
    "content_id": 1001,
    "sku_id": "SKU-001",
    "description": "Widget A",
    "loc_id": "LOC-A01",
    "qty": 100,
    "qty_allocated": 10,
    "qty_tasked_from": 0,
    "tag_id": "TAG-0001",
    "expiry_date": "2027-01-01",
    "client_id": "CLIENT01",
    "created_datetime": "2026-03-14 10:30:00"
  }
]
VeldTypeBeschrijving
content_idnumberUniek ID van de voorraadinhoud
sku_idstringArtikel-ID
descriptionstringArtikelomschrijving
loc_idstringLocatie-ID
qtynumberTotale hoeveelheid
qty_allocatednumberGealloceerde hoeveelheid (gereserveerd voor orders)
qty_tasked_fromnumberHoeveelheid in taken (wordt verplaatst)
tag_idstringTag/label ID
expiry_datestringVervaldatum (YYYY-MM-DD)
client_idstringClient ID (fulfillment)

Beschikbare voorraad

Beschikbare voorraad = qtyqty_allocatedqty_tasked_from

Voorraaddetails

GET /inventory/overview/:id

Response 200 OK

Retourneert een enkel voorraadrecord met hetzelfde formaat als het overzicht.

Transacties

GET /inventory/transactions

Response 200 OK

[
  {
    "id": 1,
    "dstamp": "2026-03-14 10:30:00",
    "transaction_type": "Receipt",
    "content_id": 1001,
    "from_loc_id": "RECV-01",
    "to_loc_id": "STAGE-01",
    "final_loc_id": "LOC-A01",
    "sku_id": "SKU-001",
    "qty": 100,
    "tag_id": "TAG-0001",
    "order_id": null,
    "line_id": null,
    "notes": null,
    "client_id": "CLIENT01"
  }
]
VeldTypeBeschrijving
idnumberTransactie-ID
dstampstringDatum/tijd (YYYY-MM-DD HH:mm:ss)
transaction_typestringType (Receipt, Allocate, Pick, etc.)
content_idnumberContent ID
from_loc_idstringVan locatie
to_loc_idstringNaar locatie
final_loc_idstringEindlocatie
sku_idstringArtikel-ID
qtynumberHoeveelheid
tag_idstringTag ID
order_idstringGerelateerd order ID
line_idnumberGerelateerd regelnummer
notesstringOpmerkingen
client_idstringClient ID

Specifieke transactie

GET /inventory/transactions/:id

Response 200 OK

Retourneert een enkele transactie.

Response 404 Not Found

{
  "message": "Inventory transaction with transactionId 999 not found"
}