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

Autorisations

X-API-KEY
string
header
requis
OW-KEY
string
header
requis

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

Corps

application/json
supplierPurchaseOrderId
integer<int64>
requis

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

isEquipmentLine
boolean
requis

REQUIRED

partUomId
integer
requis

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

partCurrencyId
string
requis

REQUIRED

equipmentUomId
integer
requis

REQUIRED

equipmentCurrencyId
string
requis

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

Réponse

Successful response

type
string
requis

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[]
requis
count
integer<int64>
requis

Total number of matching records (across all pages)

status
enum<string>
requis

"ok" on success

Options disponibles:
ok