API · v1 · stable
CODEMETA OSDeveloper Center
EN
Open console
Entity · material_buckets

Material Bucket Schema

Schema ID
material_bucket
Collection
material_buckets
Permissions
  • Readmaterial_bucket_view
  • Creatematerial_bucket_create
  • Editmaterial_bucket_edit
  • Deletematerial_bucket_delete

Fields

Material Bucket Schema

material_buckets4 permissions

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

statusstringrequired

OPEN = aktiv, CLOSED = abgeschlossen

OPENCLOSED
Default: "OPEN"
bucketNumberstringoptional

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

max 30 charactersread-only
descriptionstringoptional

Optional description / Beschreibung

max 2000 charactersnullable
partyIduuidoptional

Linked customer (Party UUID)

nullable
ticketIduuidoptional

Linked ticket UUID

nullable
projectIduuidoptional

Linked project UUID

nullable
partyNamestringoptional

Denormalized customer name

max 300 charactersnullable
ticketNumberstringoptional

Denormalized ticket number

max 30 charactersnullable
projectNumberstringoptional

Denormalized project number

max 30 charactersnullable
assignedToIduuidoptional

Technician user ID who owns this bucket

nullable
closedAtdatetimeoptional

Timestamp when bucket was closed

nullable
closedByuuidoptional

User ID who closed the bucket

nullable
itemsobject[]optional

Scanned / added material items

Default: []
iduuidrequired

Unique item ID (UUIDv7)

articleIdstringrequired

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

1–64 characters
articleNumberstringoptional

Denormalized article number

max 50 charactersnullable
namestringrequired

Denormalized article name

max 300 characters
skustringoptional

Denormalized EAN / SKU

max 50 charactersnullable
quantityintegerrequired

Quantity (locked to 1 when serialNumber is set)

≥ 1Default: 1
serialNumberstringoptional

Serial number (if set, quantity must be 1)

max 100 charactersnullable
serialNumberRequiredbooleanoptional

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.

notesstringoptional

Optional notes for this item

max 1000 charactersnullable
billedAtdatetimeoptional

Timestamp when bucket was billed

read-onlynullable
billedByuuidoptional

User ID who billed the bucket

read-onlynullable
invoiceIduuidoptional

Invoice UUID generated from this bucket

read-onlynullable
closedWithoutInvoicePerformanceRecordIduuidoptional

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
stockBookingobjectoptional

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
statusstringoptional
PENDINGRUNNINGBOOKEDFAILED
requestedAtstringoptional
nullable
requestedBystringoptional
nullable
lastRunAtstringoptional
nullable
bookedAtstringoptional
nullable
errorsobject[]optional
movementsobject[]optional
assetsobject[]optional
notesobject[]optional
tagsstring[]optional

Tags for categorization

Default: []

Standard endpoints

This resource follows the platform's generic CRUD contract. Read the conventions for pagination, idempotency, optimistic locking and audit. The most important endpoints:

  • GET /api/v1/material_buckets — List, paginated + filterable
  • GET /api/v1/material_buckets/<id> — Single entity
  • POST /api/v1/material_buckets — Create
  • PATCH /api/v1/material_buckets/<id> — Partial update
  • DELETE /api/v1/material_buckets/<id> — Soft delete
  • GET /api/v1/material_buckets/<id>/timeline — Audit + activities

Search