Back

Search

Search

Methods

Inventory

Orders

PurchaseOrder /Deliver_PurchaseItem

Response: Update_PurchaseOrderItemResponse



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

Parameters

NameTypeDescription
deliverItemParameterDeliver_PurchaseItemParameterClass that represents parameters for Deliver Purchase Item

HTTP Endpoint

Server /PurchaseOrder / Deliver_PurchaseItem

Permissions

GlobalPermissions.PurchaseOrder.EditPurchaseOrder.EditPurchaseOrderNode

Example Code

Example Request

The following request format is required for this method.

POST https://eu-ext.linnworks.net//api/PurchaseOrder/Deliver_PurchaseItem HTTP/1.1
Host: eu-ext.linnworks.net
Connection: keep-alive
Accept: application/json, text/javascript, */*; q=0.01
Origin: https://www.linnworks.net
Accept-Language: en
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Referer: https://www.linnworks.net/
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE

deliverItemParameter={
  "BatchNumber": "sample string 1",
  "BinRack": "sample string 2",
  "PrioritySequence": 3,
  "BatchStatus": "sample string 4",
  "pkPurchaseId": "97f6b744-3d52-4b09-b152-c1904b625a41",
  "pkPurchaseItemId": "327bee78-073a-4df9-9bb1-9cbd96f323b8",
  "Delivered": 1,
  "AddToDelivered": 1
}

Response

This is an example response. Results may vary depending on your data.

{
  "NewPurchaseOrderItem": {
    "pkPurchaseItemId": "e435f0bf-f47f-4405-a7af-2d40d703e6c8",
    "fkStockItemId": "8ea30438-ac53-4952-821f-e61972803e03",
    "Quantity": 3,
    "Cost": 4.0,
    "Delivered": 5,
    "TaxRate": 6.0,
    "Tax": 7.0,
    "PackQuantity": 8,
    "PackSize": 9,
    "SKU": "sample string 10",
    "ItemTitle": "sample string 11",
    "InventoryTrackingType": 12,
    "IsDeleted": true
  },
  "PurchaseOrderHeader": {
    "pkPurchaseID": "5b841e12-33a7-4dc2-bb5f-4ccf927fa3da",
    "fkSupplierId": "77dc27e3-5869-4c80-81e9-5dbfe650b451",
    "fkLocationId": "7d2429c7-a83c-44d2-86c6-0987ce522411",
    "ExternalInvoiceNumber": "sample string 4",
    "Status": 0,
    "Currency": "sample string 5",
    "SupplierReferenceNumber": "sample string 6",
    "Locked": true,
    "LineCount": 8,
    "DeliveredLinesCount": 9,
    "DateOfPurchase": "2018-02-19T16:57:07.7165843Z",
    "DateOfDelivery": "2018-02-19T16:57:07.7165843Z",
    "QuotedDeliveryDate": "2018-02-19T16:57:07.7165843Z",
    "PostagePaid": 4.0,
    "TotalCost": 5.0,
    "taxPaid": 6.0,
    "ShippingTaxRate": 7.0,
    "ConversionRate": 8.0
  }
}