PR Line Items
Retrieve and manage purchase request line items.
| Field | Data Type | POST | PATCH |
|---|---|---|---|
| PRID | String | X | X |
| LineNo | Int32 | X | X |
| AccountCode | String | X | X |
| DueDate | DateTimeOffset | X | X |
| ManufacturerID | String | X | X |
| MFRPartID | String | X | X |
| ModelNo | String | X | X |
| OEM | Boolean | X | X |
| PartDescription | String | X | X |
| PartServiceID | String | X | X |
| PartType | String | X | X |
| QtyPerUOP | Decimal(9,3) | X | X |
| Quantity | Decimal(9,3) | X | X |
| QuoteID | String | X | X |
| ReceiveTo | String | X | X |
| ReceiveToID | String | X | X |
| RequestedBy | String | X | X |
| SingleSource | Boolean | X | X |
| Specifications | String | X | X |
| StockLocation | String | X | X |
| Taxable | Boolean | X | X |
| TaxCode | String | X | X |
| TotalCost | Decimal(18,3) | ||
| Type | String | X | X |
| UnitCost | Decimal(18,5) | X | X |
| UnitOfMeasure | String | X | X |
| UnitOfPurchase | String | X | X |
| UnitOfWeight | String | X | X |
| UNSPSCCode | String | X | X |
| VendorID | String | X | X |
| VendorPartID | String | X | X |
| Weight | Decimal(9,3) | X | X |
| CreatedBy | String | ||
| DateCreated | DateTimeOffset | ||
| EditedBy | String | ||
| DateEdited | DateTimeOffset |
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
Typeallowed values:Part,ServiceReceiveToallowed values:CostCenter,Equipment,Location,RepairableSpare,Stock,System,WorkGroup,WorkOrderStockLocationis required ifReceiveTo = Stock
