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

Purchase Order Schema

Schema-ID
purchase_order
Collection
purchase_orders
Permissions
  • Lezenpurchase_order_view
  • Aanmakenpurchase_order_create
  • Wijzigenpurchase_order_edit
  • Verwijderenpurchase_order_delete

Velden

Purchase Order Schema

purchase_orders4 permissions

Einkaufsbestellung an einen Lieferanten mit Status-Workflow und Wareneingang.

purchaseOrderNumberstringoptioneel

Auto-generierte Bestellnummer (PO-{YYYY}-{NNNNN}).

max. 64 tekensDefault: nullread-onlynullable
supplierIduuidvereist

Lieferanten-Party-UUID (party.isSupplier=true).

assignedToIdstringoptioneel

Verantwortlicher Einkäufer (User-UUID).

PatternDefault: nullnullable
orgUnitIdstringoptioneel

Verantwortliche Org-Einheit.

PatternDefault: nullnullable
statusstringvereist

Workflow: DRAFT → ORDERED → (PARTIALLY_RECEIVED →) RECEIVED. CANCELLED ist aus DRAFT/ORDERED erreichbar.

DRAFTORDEREDPARTIALLY_RECEIVEDRECEIVEDCANCELLED
Default: "DRAFT"
orderDatedatetimeoptioneel

Bestelldatum (gesetzt bei Übergang nach ORDERED).

Default: nullnullable
expectedDeliveryDatedatetimeoptioneel

Erwartetes Liefertermin.

Default: nullnullable
actualDeliveryDatedatetimeoptioneel

Tatsächlicher (vollständiger) Wareneingang.

Default: nullnullable
deliveryOrgUnitIdstringoptioneel

Eigene Niederlassung als Lieferadresse (Verweis auf org_unit).

PatternDefault: nullnullable
deliveryAddressobjectoptioneel

Eingebettete Lieferadresse, falls keine org_unit-Referenz.

Default: nullnullable
itemsobject[]optioneel
Default: []
iduuidvereist
positionNumberintegervereist
≥ 1
articleIduuidvereist
articleNamestringoptioneel
Default: nullnullable
articleNumberstringoptioneel
Default: nullnullable
supplierArticleNumberstringoptioneel
max. 200 tekensDefault: nullnullable
descriptionstringoptioneel
max. 4000 tekensDefault: nullnullable
quantityOrderedstringvereist
Pattern
quantityReceivedstringoptioneel

Bisher gebuchte Wareneingangsmenge.

PatternDefault: "0"
unitPricestringvereist
Pattern
discountPercentstringoptioneel
PatternDefault: nullnullable
taxRatestringoptioneel

Steuersatz in Prozent (z.B. "19").

PatternDefault: nullnullable
totalNetstringoptioneel

Computed: quantityOrdered × unitPrice × (1 − discountPercent/100).

PatternDefault: nullnullable
currencyCodestringoptioneel
PatternDefault: "EUR"
totalNetstringoptioneel
PatternDefault: nullnullable
totalTaxstringoptioneel
PatternDefault: nullnullable
totalGrossstringoptioneel
PatternDefault: nullnullable
notestringoptioneel

Externe Notiz an den Lieferanten.

max. 4000 tekensDefault: nullnullable
internalNotestringoptioneel

Interne Notiz (nicht Lieferanten-sichtbar).

max. 4000 tekensDefault: nullnullable
cancelReasonstringoptioneel
max. 1000 tekensDefault: nullnullable
confirmedAtdatetimeoptioneel
Default: nullnullable
confirmedBystringoptioneel
PatternDefault: nullnullable
cancelledAtdatetimeoptioneel
Default: nullnullable
cancelledBystringoptioneel
PatternDefault: nullnullable
_iduuidoptioneel
read-only
schemastringoptioneel
purchase_order
read-only
schemaVersionintegeroptioneel
≥ 1read-only
tenantIduuidoptioneel
read-only
versionintegeroptioneel
≥ 0read-only
createdAtdatetimeoptioneel
read-only
updatedAtdatetimeoptioneel
read-only
createdByuuidoptioneel
read-only
updatedBystringoptioneel
Patternread-onlynullable
deletedAtdatetimeoptioneel
read-onlynullable
deletedBystringoptioneel
Patternread-onlynullable

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

Zoeken