Purchase Order Line Item Object
End Point
/purchaseorderlineitem
GET, POST, PUT, DELETE
GET request expect three parameters of type Int32 as follows
- recordType (always 6)
- docNo
- lineId
DELETE requests expect parameter id of type Int32.
Properties
| Property | Caption | Data Type | Required | Read Only |
| $type | This property MUST be included to tell the API what type of item is being added. The value should be "AOLib7.PurchaseOrderLineItem, AOLib7" | |||
| Id | Id | Int32 | For Put only | True |
| LineNo | Line No | Int16 | False | True |
| ItemRef | Item | EntityRef | True | False |
| Description | Description | String (4000) | False | False |
| LineInstructions | Line Instructions | String (4000) | False | False |
| SalesTaxCodeRef | Tax Code | EntityRef | False | False |
| UomRef | UOM | EntityRef | False | False |
| UomConversionRate | UOM Conversion Rate | Decimal | False | False |
| Cost | Cost | Decimal | True | False |
| Quantity | Quantity | Decimal | True | False |
| CustomerPartNo | Customer Part No | String (50) | False | False |
| CustomFields | Custom Fields | Array of CustomFieldData | False | False |
| IsCleared | Cleared | Boolean | False | False |
Json Sample
{
"$type": "AOLib7.PurchaseOrderLineItem, AOLib7",
"ItemRef": {
"Id": 37,
"Name": "TSS - Grey - SN"
},
"Description": "Company Branded T-Shirt Large GREY Check out our website for other offers!",
"Cost": 42,
"SalesTaxCodeRef": {
"Id": 12,
"Name": "Non"
},
"Quantity": 12,
"CustomFields": [
{
"Name": "SOICust1",
"Value": "Valve",
"Caption": "H Code"
}
]
}