Skip to main content
POST
Bulk (re)create purchase order line items

Auktoriseringar

X-API-KEY
string
header
obligatorisk

Supplier partner API key. Rate limited to 10 requests per 20-second window.

OW-KEY
string
header
obligatorisk

OpenWrench shared secret. Required on every request alongside X-API-KEY; issued together with your API key.

Kropp

application/json
supplierPurchaseOrderId
integer<int64>
obligatorisk

Purchase order the line items belong to (must be the same PO for all items in the call)

isEquipmentLine
boolean
obligatorisk

true for an equipment line, false for a part line

partUomId
integer<int32>
obligatorisk

Unit-of-measure id for the part line

partCurrencyId
string
obligatorisk

Currency code for part costs

equipmentUomId
integer<int32>
obligatorisk

Unit-of-measure id for the equipment line

equipmentCurrencyId
string
obligatorisk

Currency code for equipment costs

id
integer<int64> | null

Optional id of an existing line item (its current status is preserved)

viaStockLocationId
integer<int64> | null
partId
integer<int64> | null
partCatalogId
integer<int64> | null
partQuantity
integer<int32> | null
partCost
number | null
equipmentTypeId
integer<int64> | null
equipmentCatalogId
integer<int64> | null
equipmentQuantity
integer<int32> | null
equipmentCost
number | null
prLineItemIds
integer<int64>[] | null

Purchase request line item ids fulfilled by this PO line

warrantyAssetId
integer<int64> | null
glCode
string | null

Svar

Successful response

Standard list envelope wrapping an array of SupplierPurchaseOrderLineItem with the total matching count.

type
string
obligatorisk

Entity type name, e.g. "SupplierPurchaseOrderLineItem"

data
object[]
obligatorisk
count
integer<int64>
obligatorisk

Total number of records matching the query (not just this page)

status
enum<string>
obligatorisk
Tillgängliga alternativ:
ok