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

Autorizaciones

X-API-KEY
string
header
requerido
OW-KEY
string
header
requerido

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

Cuerpo

application/json
supplierPurchaseOrderId
integer<int64>
requerido

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

isEquipmentLine
boolean
requerido

REQUIRED

partUomId
integer
requerido

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

partCurrencyId
string
requerido

REQUIRED

equipmentUomId
integer
requerido

REQUIRED

equipmentCurrencyId
string
requerido

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

Respuesta

Successful response

type
string
requerido

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

Total number of matching records (across all pages)

status
enum<string>
requerido

"ok" on success

Opciones disponibles:
ok