Skip to main content
POST
Create Purchase Order Line Item

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

Idempotency-Key
string

Optional, client-generated key for deduplicating repeated write requests. A repeated request with the same key returns the originally recorded result instead of executing the effect again.

Required string length: 1 - 255
x-tenant-id
string<uuid>
required

The tenant ID for the target ERP instance.

Path Parameters

purchaseOrderId
string<uuid>
required

ID of the purchase order the position is added to. Der LieferantenBestellung Schlüssel.

Example:

"b45f6432-2462-4c6f-b00f-1d9d01000000"

Query Parameters

disableAutomaticWorkflows
boolean
required

Indicates whether automatic workflows should be suppressed for this write. Defaults to false when omitted.

Body

application/json

Request model for CreatePurchaseOrderLineItem command endpoint. Route parameters bind from the route, query parameters from the query string, everything else from the body.

itemId
string<uuid>
required

The article to order. It must already be assigned to the order's supplier; the API never auto-assigns. Kit articles, inactive articles and variation parents are rejected, exactly as on the create-order endpoint.

Example:

"b45f6432-2462-4c6f-b00f-1d9d01000000"

quantity
number<decimal>
required

Ordered quantity; must be greater than zero.

netPurchasePriceAmount
number<decimal>
required

Net purchase price per unit. Zero is allowed — it is the underlying column's own default — but a negative price is not.

vatRatePercentage
number<decimal>
required

VAT rate in percent, between 0 and 100 inclusive. A sanity bound only; specific rates are not whitelisted.

supplierItemNumber
string

The supplier's own article number for this position. When omitted, resolved from the supplier's master data. A supplied value is used as given even when it differs from master data, because this is a free-text snapshot rather than a lookup key.

deliveryDate
string<date-time>

Expected delivery date of this position. When omitted, calculated from the article's (or, failing that, the supplier's) lead time in days, added to today.

note
string

Free-text note on the position, at most 2000 characters.

Response

The position was added. The body carries its new ID, which is all the caller needs to address it afterwards — the order-level consequences of the write (recalculated totals, open quantities) are visible through a subsequent read of the order.

Adds one article position to an existing purchase order. The order must be Open or Released — from InProgress onwards the position would already be part of a goods receipt. The article must already be assigned to the order's supplier; this endpoint never creates that assignment. Fields the caller omits are resolved from the supplier's master data, so the smallest useful request carries the article, the quantity, the net price and the VAT rate. - Response

lineItemId
string<uuid>
required

Unique ID of the newly created line item.

Example:

"b45f6432-2462-4c6f-b00f-1d9d01000000"