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.DeliverPurchaseOrderNode

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=51a9b019-0194-4d76-a1f4-39f2fb8dedda

Response

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

{
  "poHeaderAndItems": {
    "PurchaseOrderItems": [
      {
        "pkPurchaseItemId": "c8d2ba11-f967-4030-9418-6d4eedca1395",
        "fkStockItemId": "ed41d8c7-a997-44ba-8776-22e26ac20d7b",
        "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,
        "SortOrder": 14,
        "DimHeight": 15.0,
        "DimWidth": 16.0,
        "DimDepth": 17.0,
        "BoundToOpenOrdersItems": 18,
        "BinRack": "sample string 19",
        "QuantityBoundToOpenOrdersItems": 20,
        "SupplierCode": "sample string 22"
      },
      {
        "pkPurchaseItemId": "c8d2ba11-f967-4030-9418-6d4eedca1395",
        "fkStockItemId": "ed41d8c7-a997-44ba-8776-22e26ac20d7b",
        "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,
        "SortOrder": 14,
        "DimHeight": 15.0,
        "DimWidth": 16.0,
        "DimDepth": 17.0,
        "BoundToOpenOrdersItems": 18,
        "BinRack": "sample string 19",
        "QuantityBoundToOpenOrdersItems": 20,
        "SupplierCode": "sample string 22"
      }
    ],
    "PurchaseOrderHeader": {
      "pkPurchaseID": "f3a94784-0de0-44ed-a7ff-c38d0c31b7a8",
      "fkSupplierId": "bf3f3f35-3479-491d-91a4-dadeb3b38c59",
      "fkLocationId": "6618cf2f-5e6e-473d-9259-e834042c52d2",
      "ExternalInvoiceNumber": "sample string 4",
      "Status": 0,
      "Currency": "sample string 5",
      "SupplierReferenceNumber": "sample string 6",
      "Locked": true,
      "LineCount": 8,
      "DeliveredLinesCount": 9,
      "UnitAmountTaxIncludedType": 10,
      "DateOfPurchase": "2019-06-12T09:27:52.1266989Z",
      "DateOfDelivery": "2019-06-12T09:27:52.1266989Z",
      "QuotedDeliveryDate": "2019-06-12T09:27:52.1266989Z",
      "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"
}