Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

PurchaseOrder /Update_PurchaseOrderItem

Allows 150 calls per minute

Response: Update_PurchaseOrderItemResponse



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
updateItemParameterUpdate_PurchaseOrderItemParameterEdit purchase order item class

Permissions

GlobalPermissions.Inventory.PurchaseOrder.EditPurchaseOrderNode

Example Request

The following request format is required for this method.

Get

Endpoint URL

This is an example of the request structure. Results will vary depending on your data.

GET https://eu-ext.linnworks.net/api/PurchaseOrder/Update_PurchaseOrderItem?updateItemParameter=%7B%0D%0A%20%20%22pkPurchaseItemId%22%3A%20%22b08889ef-b336-48ba-b08b-f09c308091b8%22%2C%0D%0A%20%20%22pkPurchaseId%22%3A%20%222167fbed-54ce-4813-bccc-8ec04112c36b%22%2C%0D%0A%20%20%22Quantity%22%3A%201%2C%0D%0A%20%20%22PackQuantity%22%3A%201%2C%0D%0A%20%20%22PackSize%22%3A%201%2C%0D%0A%20%20%22Cost%22%3A%201.0%2C%0D%0A%20%20%22TaxRate%22%3A%201.0%0D%0A%7D

Headers

Connection: keep-alive
Accept: application/json
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE

Post

Endpoint URL

POST https://eu-ext.linnworks.net/api/PurchaseOrder/Update_PurchaseOrderItem

Headers

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

Request Body

This is an example of the request structure. Results will vary depending on your data.

updateItemParameter={
  "pkPurchaseItemId": "b08889ef-b336-48ba-b08b-f09c308091b8",
  "pkPurchaseId": "2167fbed-54ce-4813-bccc-8ec04112c36b",
  "Quantity": 1,
  "PackQuantity": 1,
  "PackSize": 1,
  "Cost": 1.0,
  "TaxRate": 1.0
}

Response

This is an example of the response JSON. Results will vary depending on your data.

{
  "NewPurchaseOrderItem": {
    "pkPurchaseItemId": "2427cd3e-e9af-4e45-80b3-02a9cc0a1f14",
    "fkStockItemId": "19d55e0d-2898-4333-9cfe-cc1c74287fb5",
    "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": "a572b6e6-819d-4eac-b476-5d2fcf2509d0",
    "fkSupplierId": "c5c0f528-5aae-4f0d-aed7-a057ea0578b8",
    "fkLocationId": "7b457347-8648-4df0-9573-2f23dc5d9720",
    "ExternalInvoiceNumber": "sample string 4",
    "Status": 0,
    "Currency": "sample string 5",
    "SupplierReferenceNumber": "sample string 6",
    "Locked": true,
    "LineCount": 8,
    "DeliveredLinesCount": 9,
    "UnitAmountTaxIncludedType": 10,
    "DateOfPurchase": "2022-01-13T12:45:46.3756308Z",
    "DateOfDelivery": "2022-01-13T12:45:46.3756308Z",
    "QuotedDeliveryDate": "2022-01-13T12:45:46.3756308Z",
    "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
}