API · v1 · estable
CODEMETA OSDeveloper Center
ES
Abrir la consola
Entidad · material_buckets

Material Bucket Schema

ID del esquema
material_bucket
Colección
material_buckets
Permisos
  • Leermaterial_bucket_view
  • Crearmaterial_bucket_create
  • Modificarmaterial_bucket_edit
  • Eliminarmaterial_bucket_delete

Campos

Material Bucket Schema

material_buckets4 permisos

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

statusstringobligatorio

OPEN = aktiv, CLOSED = abgeschlossen

OPENCLOSED
Valor por defecto: "OPEN"
bucketNumberstringopcional

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

máx. 30 caracteressolo lectura
descriptionstringopcional

Optional description / Beschreibung

máx. 2000 caracteresadmite null
partyIduuidopcional

Linked customer (Party UUID)

admite null
ticketIduuidopcional

Linked ticket UUID

admite null
projectIduuidopcional

Linked project UUID

admite null
partyNamestringopcional

Denormalized customer name

máx. 300 caracteresadmite null
ticketNumberstringopcional

Denormalized ticket number

máx. 30 caracteresadmite null
projectNumberstringopcional

Denormalized project number

máx. 30 caracteresadmite null
assignedToIduuidopcional

Technician user ID who owns this bucket

admite null
closedAtdatetimeopcional

Timestamp when bucket was closed

admite null
closedByuuidopcional

User ID who closed the bucket

admite null
itemsobject[]opcional

Scanned / added material items

Valor por defecto: []
iduuidobligatorio

Unique item ID (UUIDv7)

articleIdstringobligatorio

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

1–64 caracteres
articleNumberstringopcional

Denormalized article number

máx. 50 caracteresadmite null
namestringobligatorio

Denormalized article name

máx. 300 caracteres
skustringopcional

Denormalized EAN / SKU

máx. 50 caracteresadmite null
quantityintegerobligatorio

Quantity (locked to 1 when serialNumber is set)

≥ 1Valor por defecto: 1
serialNumberstringopcional

Serial number (if set, quantity must be 1)

máx. 100 caracteresadmite null
serialNumberRequiredbooleanopcional

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.

notesstringopcional

Optional notes for this item

máx. 1000 caracteresadmite null
billedAtdatetimeopcional

Timestamp when bucket was billed

solo lecturaadmite null
billedByuuidopcional

User ID who billed the bucket

solo lecturaadmite null
invoiceIduuidopcional

Invoice UUID generated from this bucket

solo lecturaadmite null
closedWithoutInvoicePerformanceRecordIduuidopcional

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.

solo lecturaadmite null
stockBookingobjectopcional

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.

solo lecturaadmite null
statusstringopcional
PENDINGRUNNINGBOOKEDFAILED
requestedAtstringopcional
admite null
requestedBystringopcional
admite null
lastRunAtstringopcional
admite null
bookedAtstringopcional
admite null
errorsobject[]opcional
movementsobject[]opcional
assetsobject[]opcional
notesobject[]opcional
tagsstring[]opcional

Tags for categorization

Valor por defecto: []

Endpoints estándar

Este recurso sigue el contrato CRUD genérico de la plataforma. Lea las convenciones sobre paginación, idempotencia, bloqueo optimista y auditoría. Los endpoints principales:

  • GET /api/v1/material_buckets — Lista, paginada y filtrable
  • GET /api/v1/material_buckets/<id> — Una entidad
  • POST /api/v1/material_buckets — Crear
  • PATCH /api/v1/material_buckets/<id> — Actualización parcial
  • DELETE /api/v1/material_buckets/<id> — Eliminación lógica
  • GET /api/v1/material_buckets/<id>/timeline — Auditoría y actividades

Búsqueda