API · v1 · stable
CODEMETA OSDeveloper Center
FR
Ouvrir la console
Entité · material_buckets

Material Bucket Schema

ID du schéma
material_bucket
Collection
material_buckets
Autorisations
  • Lirematerial_bucket_view
  • Créermaterial_bucket_create
  • Modifiermaterial_bucket_edit
  • Supprimermaterial_bucket_delete

Champs

Material Bucket Schema

material_buckets4 autorisations

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

statusstringobligatoire

OPEN = aktiv, CLOSED = abgeschlossen

OPENCLOSED
Par défaut : "OPEN"
bucketNumberstringfacultatif

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

max. 30 caractèreslecture seule
descriptionstringfacultatif

Optional description / Beschreibung

max. 2000 caractèresnullable
partyIduuidfacultatif

Linked customer (Party UUID)

nullable
ticketIduuidfacultatif

Linked ticket UUID

nullable
projectIduuidfacultatif

Linked project UUID

nullable
partyNamestringfacultatif

Denormalized customer name

max. 300 caractèresnullable
ticketNumberstringfacultatif

Denormalized ticket number

max. 30 caractèresnullable
projectNumberstringfacultatif

Denormalized project number

max. 30 caractèresnullable
assignedToIduuidfacultatif

Technician user ID who owns this bucket

nullable
closedAtdatetimefacultatif

Timestamp when bucket was closed

nullable
closedByuuidfacultatif

User ID who closed the bucket

nullable
itemsobject[]facultatif

Scanned / added material items

Par défaut : []
iduuidobligatoire

Unique item ID (UUIDv7)

articleIdstringobligatoire

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

1–64 caractères
articleNumberstringfacultatif

Denormalized article number

max. 50 caractèresnullable
namestringobligatoire

Denormalized article name

max. 300 caractères
skustringfacultatif

Denormalized EAN / SKU

max. 50 caractèresnullable
quantityintegerobligatoire

Quantity (locked to 1 when serialNumber is set)

≥ 1Par défaut : 1
serialNumberstringfacultatif

Serial number (if set, quantity must be 1)

max. 100 caractèresnullable
serialNumberRequiredbooleanfacultatif

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.

notesstringfacultatif

Optional notes for this item

max. 1000 caractèresnullable
billedAtdatetimefacultatif

Timestamp when bucket was billed

lecture seulenullable
billedByuuidfacultatif

User ID who billed the bucket

lecture seulenullable
invoiceIduuidfacultatif

Invoice UUID generated from this bucket

lecture seulenullable
closedWithoutInvoicePerformanceRecordIduuidfacultatif

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.

lecture seulenullable
stockBookingobjectfacultatif

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.

lecture seulenullable
statusstringfacultatif
PENDINGRUNNINGBOOKEDFAILED
requestedAtstringfacultatif
nullable
requestedBystringfacultatif
nullable
lastRunAtstringfacultatif
nullable
bookedAtstringfacultatif
nullable
errorsobject[]facultatif
movementsobject[]facultatif
assetsobject[]facultatif
notesobject[]facultatif
tagsstring[]facultatif

Tags for categorization

Par défaut : []

Endpoints standard

Cette ressource suit le contrat CRUD générique de la plateforme. Lisez les conventions pour la pagination, l'idempotence, le verrouillage optimiste et l'audit. Les endpoints principaux :

  • GET /api/v1/material_buckets — Liste, paginée et filtrable
  • GET /api/v1/material_buckets/<id> — Une entité
  • POST /api/v1/material_buckets — Créer
  • PATCH /api/v1/material_buckets/<id> — Mise à jour partielle
  • DELETE /api/v1/material_buckets/<id> — Suppression logique
  • GET /api/v1/material_buckets/<id>/timeline — Audit et activités

Recherche