Deliver purchase order item. This will affect current stock level according to the delivered quantity.
You can specify the total number of delivered items. If all items are delivered, the purchase order status will be changed to delivered
Name | Type | Description |
---|---|---|
deliverItemParameter | Deliver_PurchaseItemParameter | Class that represents parameters for Deliver Purchase Item |
The following request format is required for this method.
GET | POST https://eu-ext.linnworks.net/api/PurchaseOrder/Deliver_PurchaseItem
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.
deliverItemParameter={
"BatchNumber": "sample string 1",
"BinRack": "sample string 2",
"PrioritySequence": 3,
"BatchStatus": "sample string 4",
"pkPurchaseId": "76ca94cd-0ea3-41c4-8290-f952fc7b31dd",
"pkPurchaseItemId": "fbd5a1ec-e623-47ec-93de-1d1a7384cb8e",
"Delivered": 1,
"AddToDelivered": 1
}
This is an example of the response JSON. Results will vary depending on your data.
{
"NewPurchaseOrderItem": {
"pkPurchaseItemId": "65fbfacf-168c-42c2-8fe9-259a56e8d7f2",
"fkStockItemId": "bee1ae1f-7130-49cd-8daf-6135a91eabbc",
"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": "4562a8d1-956c-4db0-87b4-490d5a0f9079",
"fkSupplierId": "8b706c40-52db-4377-a8a8-e410e949f8b1",
"fkLocationId": "15389056-1e03-4948-8bef-b84b7a9f2f47",
"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.9804578Z",
"DateOfDelivery": "2023-01-10T13:49:49.9804578Z",
"QuotedDeliveryDate": "2023-01-10T13:49:49.9804578Z",
"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
}