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

Auktoriseringar

X-API-KEY
string
header
obligatorisk
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

REQUIRED. Purchase order the line item belongs to; its stockLocationId/locationId are inherited

isEquipmentLine
boolean
obligatorisk

REQUIRED

partUomId
integer
obligatorisk

REQUIRED (unit-of-measure id for the part half; pass even for equipment lines)

partCurrencyId
string
obligatorisk

REQUIRED

equipmentUomId
integer
obligatorisk

REQUIRED

equipmentCurrencyId
string
obligatorisk

REQUIRED

id
integer<int64>

Existing line item id; its current status is preserved (new items start as 'new')

viaStockLocationId
integer<int64>
partId
integer<int64>
partCatalogId
integer<int64>
partQuantity
integer
partCost
number

partCost or equipmentCost is required unless the supplier company's inventory settings mark PO cost as not mandatory

equipmentTypeId
integer<int64>
equipmentCatalogId
integer<int64>
equipmentQuantity
integer
equipmentCost
number
prLineItemIds
integer<int64>[]
warrantyAssetId
integer<int64>
glCode
string

Svar

Successful response

type
string
obligatorisk

Entity type label, e.g. "SupplierPurchaseOrderLineItem". Endpoints that derive it via Scala reflection (most generic list/get endpoints) may return the fully qualified server class name instead (e.g. "models.workorder.WorkOrder"); treat this field as informational.

data
object[]
obligatorisk
count
integer<int64>
obligatorisk

Total number of matching records (across all pages)

status
enum<string>
obligatorisk

"ok" on success

Tillgängliga alternativ:
ok