Back

Search

Search

Methods

Inventory

Orders

PurchaseOrder /Deliver_PurchaseItemAll_ExceptBatchItems

Response: Deliver_PurchaseOrderItemAllNoBatchResponse



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

Parameters

NameTypeDescription
purchaseIdGuidPurchase Order ID

HTTP Endpoint

Server /PurchaseOrder / Deliver_PurchaseItemAll_ExceptBatchItems

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_PurchaseItemAll_ExceptBatchItems 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

purchaseId=92a65281-9a2d-457d-a957-a0771c874db4

Response

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

{
  "poHeaderAndItems": {
    "PurchaseOrderItems": [
      {
        "pkPurchaseItemId": "60807c6f-ff58-42af-942d-ec4383c5a911",
        "fkStockItemId": "ab349cb6-793d-4c3a-ae23-447e7ca4f88b",
        "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
      },
      {
        "pkPurchaseItemId": "60807c6f-ff58-42af-942d-ec4383c5a911",
        "fkStockItemId": "ab349cb6-793d-4c3a-ae23-447e7ca4f88b",
        "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": "952a07e0-7d13-449d-8d7f-6e8115c1150f",
      "fkSupplierId": "ff8b39a7-6ea2-49c1-baf1-ff7dca06bd33",
      "fkLocationId": "debdc895-337a-428c-9d39-72e06c23bfdc",
      "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.7130678Z",
      "DateOfDelivery": "2018-02-19T16:57:07.7130678Z",
      "QuotedDeliveryDate": "2018-02-19T16:57:07.7130678Z",
      "PostagePaid": 4.0,
      "TotalCost": 5.0,
      "taxPaid": 6.0,
      "ShippingTaxRate": 7.0,
      "ConversionRate": 8.0
    }
  },
  "allItemsDelivered": true,
  "message": "sample string 2"
}