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 |
---|---|---|
purchaseId | Guid | Purchase Order ID |
The following request format is required for this method.
POST https://eu-ext.linnworks.net/api/PurchaseOrder/Deliver_PurchaseItemAll_ExceptBatchItems
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.
purchaseId=0abbd50c-5b69-4b15-9c2b-f33134a6a4cc
This is an example of the response JSON. Results will vary depending on your data.
{
"poHeaderAndItems": {
"PurchaseOrderItems": [
{
"pkPurchaseItemId": "9cc37fba-33de-42ee-ade8-089760eb779f",
"fkStockItemId": "a852b15c-c6d9-4e62-b36b-6dd09adf749e",
"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": "f70fb562-5590-409f-bde5-fea4430882c5",
"fkSupplierId": "66df441a-16b0-4548-a5af-6743f7684e6d",
"fkLocationId": "85449b07-789a-42c2-bd5b-06530c7efb29",
"ExternalInvoiceNumber": "sample string 4",
"Status": 0,
"Currency": "sample string 5",
"SupplierReferenceNumber": "sample string 6",
"Locked": true,
"LineCount": 8,
"DeliveredLinesCount": 9,
"UnitAmountTaxIncludedType": 10,
"DateOfPurchase": "2022-03-09T13:04:12.1220669Z",
"DateOfDelivery": "2022-03-09T13:04:12.1220669Z",
"QuotedDeliveryDate": "2022-03-09T13:04:12.1220669Z",
"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
}
},
"allItemsDelivered": true,
"message": "sample string 2"
}