/api/healthPublikHealth check
Request
Ingen request body
Response
Service-info
{
"ok": true,
"service": "pulpo-hold",
"product": "WMS"
}WMS · API Reference
Hold är stock-master: inventory, locations, movements och plocklistor. Produktmaster synkas från Core.
{
"ok": false,
"error": "Unauthorized"
}/api/healthPublikIngen request body
Service-info
{
"ok": true,
"service": "pulpo-hold",
"product": "WMS"
}/api/inventoryAuth| Namn | In | Typ | Beskrivning |
|---|---|---|---|
view | query | summary | Aggregerat per SKU |
warehouseId | query | string | Filtrera warehouse |
Ingen request body
Saldorader
{
"ok": true,
"inventory": [
{
"sku": "DEMO-1",
"name": "Demo-produkt",
"warehouseId": "wh_sto_01",
"locationId": "loc_a0101",
"onHand": 42,
"reserved": 2,
"available": 40
}
]
}/api/inventory/importAuthWoo CSV / cutover. dryRun rekommenderas först.
{
"dryRun": true,
"csv": "sku,stock\nDEMO-1,42\nDEMO-2,18"
}Importresultat
{
"ok": true,
"dryRun": true,
"rows": 2,
"applied": 0
}/api/movementsAuthÖkar onHand på angiven location.
| Fält | Typ | Beskrivning |
|---|---|---|
type* | "receive" | Movement-typ |
warehouseId* | string | Warehouse-id |
locationId* | string | Location-id |
sku* | string | SKU |
qty* | number | Antal |
{
"type": "receive",
"warehouseId": "wh_sto_01",
"locationId": "loc_a0101",
"sku": "DEMO-1",
"name": "Demo-produkt",
"qty": 10,
"note": "Testinleverans"
}Movement skapad
{
"ok": true,
"movement": {
"id": "mov_…",
"type": "receive",
"sku": "DEMO-1",
"qty": 10,
"createdAt": "2026-09-12T11:00:00.000Z"
}
}/api/movementsAuthPositiv delta = öka, negativ = minska.
{
"type": "adjust",
"warehouseId": "wh_sto_01",
"locationId": "loc_a0101",
"sku": "DEMO-1",
"name": "Demo-produkt",
"delta": -2,
"note": "Inventering"
}Justering sparad
{
"ok": true,
"movement": {
"id": "mov_…",
"type": "adjust",
"delta": -2
}
}/api/movementsAuth{
"type": "transfer",
"warehouseId": "wh_sto_01",
"fromLocationId": "loc_a0101",
"toLocationId": "loc_pick",
"sku": "DEMO-1",
"name": "Demo-produkt",
"qty": 3
}Flytt sparad
{
"ok": true,
"movement": {
"id": "mov_…",
"type": "transfer",
"qty": 3
}
}/api/picksAuthFrån externt ordersystem (externalOrderId + warehouseId) eller manuellt med lines.
{
"warehouseId": "wh_sto_01",
"externalOrderId": "order-id-from-oms-or-erp"
}Plocklista skapad
{
"ok": true,
"pick": {
"id": "pick_…",
"status": "picking",
"warehouseId": "wh_sto_01",
"externalOrderId": "order-id-from-oms-or-erp",
"lines": [
{
"sku": "DEMO-1",
"qty": 1
}
]
}
}/api/picks/:idAuthStatus picked/shipped drar saldo via pick-lagerhändelse.
| Namn | In | Typ | Beskrivning |
|---|---|---|---|
id* | path | string | Plocklista-id |
{
"status": "picked"
}Uppdaterad
{
"ok": true,
"pick": {
"id": "pick_…",
"status": "picked"
}
}/api/products/importAuth| Namn | In | Typ | Beskrivning |
|---|---|---|---|
from | query | core | Pull + upsert från Core |
Ingen request body
Upsert klar
{
"ok": true,
"imported": 24,
"source": "core"
}