Skip to main content
GET
Retrieves the full detail of a purchase order by its ID.

Authorizations

Authorization
string
header
required

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

FlowAuthorization Code
Authorization URL
https://id.jtl-cloud.com/oauth/v2/authorize
Token URL
https://id.jtl-cloud.com/oauth/v2/token
Scopes1
purchaseorders.read

Headers

x-tenant-id
string<uuid>
required

The tenant ID for the target ERP instance.

Path Parameters

purchaseOrderId
string<uuid>
required

The purchase order's ID. Der LieferantenBestellung Schlüssel.

Example:

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

Response

Success.

The full detail of a purchase order, including its line items, addresses and the supplier snapshot.

purchaseOrderId
string<uuid>
required

Unique ID of the purchase order.

Example:

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

supplierId
string<uuid>
required

ID of the supplier the order was placed with.

Example:

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

status
enum<integer>
required

The order's current status.

Available options:
0,
5,
20,
30,
50,
500
currencyIso
string
required

ISO code of the order's currency.

currencyFactor
number<decimal>
required

Conversion factor of the order's currency.

isConfirmed
boolean
required

Whether the order has been confirmed by the supplier.

lineItems
object[]
required

The order's line items — article positions and free positions. Summing this list yields the goods value only; freight charges, discounts and minimum quantity charges are not included here and are returned under allowancesAndCharges instead.

allowancesAndCharges
object[]
required

Document-level allowances and charges. The document total is the goods value from lineItems plus the entries in this list — there is no header total field, so the client computes it. Rows are grouped by (type, vatRatePercentage); amounts are summed within the group; the note of the row with the lowest sort order in the group wins, ties broken by the lowest line item id. The tiebreaker is mandatory: sort order has no uniqueness guarantee within a group — an import that never sets it leaves every row at the same default. These values are the stored rows, grouped and summed — not a figure this API derives or validates. The Wawi may overwrite them the next time the order is opened and saved in the desktop client: discounts unconditionally, freight charge and minimum quantity surcharge depending on a shipping-position auto-detection setting. An order without charge rows returns an empty list, never null.

supplierName
string

The supplier's current display name, resolved at read time. NULL if the supplier could not be resolved.

orderNumber
string

The order's own number.

externalOrderNumber
string

The buyer's own order number.

referenceOrderNumber
string

A reference order number.

requestedDeliveryDate
string<date-time>

The delivery date requested from the supplier.

createdAt
string<date-time>

Date the order was created.

warehouseId
string<uuid>

Target warehouse of the incoming goods.

Example:

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

companyId
string<uuid>

The company the order was placed for.

Example:

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

internalComment
string

Internal comment on the order, not communicated to the supplier.

deliveryAddress
object

Delivery address of the order.

billingAddress
object

Billing address of the order.

supplier
object

Snapshot of the supplier's master data at the time the order was created.