PR Line Items

PR Line Items

Retrieve and manage purchase request line items.

FieldData TypePOSTPATCH
PRIDStringXX
LineNoInt32XX
AccountCodeStringXX
DueDateDateTimeOffsetXX
ManufacturerIDStringXX
MFRPartIDStringXX
ModelNoStringXX
OEMBooleanXX
PartDescriptionStringXX
PartServiceIDStringXX
PartTypeStringXX
QtyPerUOPDecimal(9,3)XX
QuantityDecimal(9,3)XX
QuoteIDStringXX
ReceiveToStringXX
ReceiveToIDStringXX
RequestedByStringXX
SingleSourceBooleanXX
SpecificationsStringXX
StockLocationStringXX
TaxableBooleanXX
TaxCodeStringXX
TotalCostDecimal(18,3)
TypeStringXX
UnitCostDecimal(18,5)XX
UnitOfMeasureStringXX
UnitOfPurchaseStringXX
UnitOfWeightStringXX
UNSPSCCodeStringXX
VendorIDStringXX
VendorPartIDStringXX
WeightDecimal(9,3)XX
CreatedByString
DateCreatedDateTimeOffset
EditedByString
DateEditedDateTimeOffset

Key: PRID, LineNo

Endpoints

GET

URL: https://{site}.mvpplant.com/ODataApi/v1/PRLineItems

Description: Retrieve purchase request line items.

POST

URL: https://{site}.mvpplant.com/ODataApi/v1/PRLineItems

Description: Create a purchase request line item.

Body: Send the property values marked in the POST column.

PATCH

URL: https://{site}.mvpplant.com/ODataApi/v1/PRLineItems(PRID='prID',LineNo=lineNo)

Description: Update an existing purchase request line item.

Body: Send only the property values you want to update from the PATCH column.

Notes

  • Type allowed values: Part, Service
  • ReceiveTo allowed values: CostCenter, Equipment, Location, RepairableSpare, Stock, System, WorkGroup, WorkOrder
  • StockLocation is required if ReceiveTo = Stock