Update purchase order item, quantity, cost, pack size, pack quantity, in PENDING order only. Returns class that represents modified/recalculated purchase order header and modified purchase order item line
Name | Type | Description |
---|---|---|
updateItemParameter | Update_PurchaseOrderItemParameter | Edit purchase order item class |
The following request format is required for this method.
GET | POST https://eu-ext.linnworks.net/api/PurchaseOrder/Update_PurchaseOrderItem
Connection: keep-alive
Accept: application/json
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE
This is an example of the request structure. Results will vary depending on your data.
updateItemParameter={
"pkPurchaseItemId": "70a5bc68-544d-4b13-87f8-6545b61d0c1c",
"pkPurchaseId": "a17eff19-2170-483c-92c3-e11521dccdf1",
"Quantity": 1,
"PackQuantity": 1,
"PackSize": 1,
"Cost": 1.0,
"TaxRate": 1.0
}
This is an example of the response JSON. Results will vary depending on your data.
{
"NewPurchaseOrderItem": {
"pkPurchaseItemId": "29d0d8fa-28c2-419f-aa18-acd38f3f7371",
"fkStockItemId": "c2af8fa8-ab60-47b3-8fcf-e5e4226a7e91",
"StockItemIntId": 3,
"Quantity": 4,
"Cost": 5.0,
"Delivered": 6,
"TaxRate": 7.0,
"Tax": 8.0,
"PackQuantity": 9,
"PackSize": 10,
"SKU": "sample string 11",
"ItemTitle": "sample string 12",
"InventoryTrackingType": 13,
"IsDeleted": true,
"SortOrder": 15,
"DimHeight": 16.0,
"DimWidth": 17.0,
"BarcodeNumber": "sample string 18",
"DimDepth": 19.0,
"BoundToOpenOrdersItems": 20,
"BinRack": "sample string 21",
"QuantityBoundToOpenOrdersItems": 22,
"SupplierCode": "sample string 24",
"SupplierBarcode": "sample string 25",
"SkuGroupIds": [
1
]
},
"PurchaseOrderHeader": {
"pkPurchaseID": "5dc95ab5-efba-4ede-b4f7-0867fb04033f",
"fkSupplierId": "e3b8d6af-d748-48e0-ba44-c5d949a95d1e",
"fkLocationId": "a8bb5d9e-0884-4add-becf-6895324a641b",
"ExternalInvoiceNumber": "sample string 4",
"Status": 0,
"Currency": "sample string 5",
"SupplierReferenceNumber": "sample string 6",
"Locked": true,
"LineCount": 8,
"DeliveredLinesCount": 9,
"UnitAmountTaxIncludedType": 10,
"DateOfPurchase": "2023-01-10T13:49:49.9237428Z",
"DateOfDelivery": "2023-01-10T13:49:49.9237428Z",
"QuotedDeliveryDate": "2023-01-10T13:49:49.9237428Z",
"PostagePaid": 4.0,
"TotalCost": 5.0,
"taxPaid": 6.0,
"ShippingTaxRate": 7.0,
"ConversionRate": 8.0,
"ConvertedShippingCost": 9.0,
"ConvertedShippingTax": 10.0,
"ConvertedOtherCost": 11.0,
"ConvertedOtherTax": 12.0,
"ConvertedGrandTotal": 13.0
},
"BatchInventoryId": 1
}