API · v1 · stabiel
CODEMETA OSDeveloper Center
NL
Console openen
Entity · material_buckets

Material Bucket Schema

Schema-ID
material_bucket
Collection
material_buckets
Permissions
  • Lezenmaterial_bucket_view
  • Aanmakenmaterial_bucket_create
  • Wijzigenmaterial_bucket_edit
  • Verwijderenmaterial_bucket_delete

Velden

Material Bucket Schema

material_buckets4 permissions

Schema for validating material bucket entities (Lagertool / Wegfahr-Buckets)

statusstringvereist

OPEN = aktiv, CLOSED = abgeschlossen

OPENCLOSED
Default: "OPEN"
bucketNumberstringoptioneel

Auto-generated sequence number (e.g. M-2026-00001)

max. 30 tekensread-only
descriptionstringoptioneel

Optional description / Beschreibung

max. 2000 tekensnullable
partyIduuidoptioneel

Linked customer (Party UUID)

nullable
ticketIduuidoptioneel

Linked ticket UUID

nullable
projectIduuidoptioneel

Linked project UUID

nullable
partyNamestringoptioneel

Denormalized customer name

max. 300 tekensnullable
ticketNumberstringoptioneel

Denormalized ticket number

max. 30 tekensnullable
projectNumberstringoptioneel

Denormalized project number

max. 30 tekensnullable
assignedToIduuidoptioneel

Technician user ID who owns this bucket

nullable
closedAtdatetimeoptioneel

Timestamp when bucket was closed

nullable
closedByuuidoptioneel

User ID who closed the bucket

nullable
itemsobject[]optioneel

Scanned / added material items

Default: []
iduuidvereist

Unique item ID (UUIDv7)

articleIdstringvereist

Reference to the source article (local UUID or weclapp article id)

1–64 tekens
articleNumberstringoptioneel

Denormalized article number

max. 50 tekensnullable
namestringvereist

Denormalized article name

max. 300 tekens
skustringoptioneel

Denormalized EAN / SKU

max. 50 tekensnullable
quantityintegervereist

Quantity (locked to 1 when serialNumber is set)

≥ 1Default: 1
serialNumberstringoptioneel

Serial number (if set, quantity must be 1)

max. 100 tekensnullable
serialNumberRequiredbooleanoptioneel

Snapshot of weclapp `serialNumberRequired` taken when the item was added. A bucket cannot be closed while such an item has no serialNumber. Absent on items added before 2026-11 — those never block closing.

notesstringoptioneel

Optional notes for this item

max. 1000 tekensnullable
billedAtdatetimeoptioneel

Timestamp when bucket was billed

read-onlynullable
billedByuuidoptioneel

User ID who billed the bucket

read-onlynullable
invoiceIduuidoptioneel

Invoice UUID generated from this bucket

read-onlynullable
closedWithoutInvoicePerformanceRecordIduuidoptioneel

ADR 1065 — set (together with billedAt/billedBy, without invoiceId) when the Leistungsnachweis this bucket was selected on was closed without an invoice. The bucket then counts as settled and is never offered for billing again; reopening that Leistungsnachweis releases it.

read-onlynullable
stockBookingobjectoptioneel

Stock booking in weclapp, written only by the server (protectedFields). `movements` is the append-only ledger of outgoing/incoming weclapp stock movements per item; `status` is the state of the last run. Absent = the bucket never booked stock.

read-onlynullable
statusstringoptioneel
PENDINGRUNNINGBOOKEDFAILED
requestedAtstringoptioneel
nullable
requestedBystringoptioneel
nullable
lastRunAtstringoptioneel
nullable
bookedAtstringoptioneel
nullable
errorsobject[]optioneel
movementsobject[]optioneel
assetsobject[]optioneel
notesobject[]optioneel
tagsstring[]optioneel

Tags for categorization

Default: []

Standaard-endpoints

Deze resource volgt het generieke CRUD-contract van het platform. Lees de conventies voor paginering, idempotentie, optimistic locking en audit. De belangrijkste endpoints:

  • GET /api/v1/material_buckets — Lijst, gepagineerd + filterbaar
  • GET /api/v1/material_buckets/<id> — Enkele entity
  • POST /api/v1/material_buckets — Aanmaken
  • PATCH /api/v1/material_buckets/<id> — Gedeeltelijke update
  • DELETE /api/v1/material_buckets/<id> — Soft-delete
  • GET /api/v1/material_buckets/<id>/timeline — Audit + activiteiten

Zoeken