API · v1 · stabil
CODEMETA OSDeveloper Center
DE
Konsole öffnen
Entity · material_buckets

Material Bucket Schema

Schema-ID
material_bucket
Collection
material_buckets
Permissions
  • Lesenmaterial_bucket_view
  • Anlegenmaterial_bucket_create
  • Ändernmaterial_bucket_edit
  • Löschenmaterial_bucket_delete

Felder

Material Bucket Schema

material_buckets4 Permissions

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

statusstringerforderlich

OPEN = aktiv, CLOSED = abgeschlossen

OPENCLOSED
Default: "OPEN"
bucketNumberstringoptional

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

max 30 Zeichenread-only
descriptionstringoptional

Optional description / Beschreibung

max 2000 Zeichennullable
partyIduuidoptional

Linked customer (Party UUID)

nullable
ticketIduuidoptional

Linked ticket UUID

nullable
projectIduuidoptional

Linked project UUID

nullable
partyNamestringoptional

Denormalized customer name

max 300 Zeichennullable
ticketNumberstringoptional

Denormalized ticket number

max 30 Zeichennullable
projectNumberstringoptional

Denormalized project number

max 30 Zeichennullable
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: []
iduuiderforderlich

Unique item ID (UUIDv7)

articleIdstringerforderlich

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

1–64 Zeichen
articleNumberstringoptional

Denormalized article number

max 50 Zeichennullable
namestringerforderlich

Denormalized article name

max 300 Zeichen
skustringoptional

Denormalized EAN / SKU

max 50 Zeichennullable
quantityintegererforderlich

Quantity (locked to 1 when serialNumber is set)

≥ 1Default: 1
serialNumberstringoptional

Serial number (if set, quantity must be 1)

max 100 Zeichennullable
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 Zeichennullable
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

Diese Resource folgt dem generischen CRUD-Vertrag der Plattform. Lesen Sie die Konventionen für Pagination, Idempotenz, Optimistic Locking und Audit. Die wichtigsten Endpoints:

  • GET /api/v1/material_buckets — Liste, paginiert + filterbar
  • GET /api/v1/material_buckets/<id> — Einzelne Entity
  • POST /api/v1/material_buckets — Anlegen
  • PATCH /api/v1/material_buckets/<id> — Teil-Update
  • DELETE /api/v1/material_buckets/<id> — Soft-Delete
  • GET /api/v1/material_buckets/<id>/timeline — Audit + Aktivitäten

Suche