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.

Endpoint URL

GET | 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": "99c5e399-612b-419c-ae05-d5184c518826",
  "pkPurchaseId": "bd721611-c995-4a4b-99a5-4e5d602f7248",
  "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": "086f7cf3-e918-4690-b95a-d7e065f7ba1e",
    "fkStockItemId": "1ed01e03-6a0d-4a8e-a6ee-c77f0bdca980",
    "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": "ffd75ae2-3e46-456f-bd4c-7078b10f69c5",
    "fkSupplierId": "59384107-2853-414b-918f-a522959923dc",
    "fkLocationId": "95c0b84d-5f98-4eff-86d9-5056b21e2ead",
    "ExternalInvoiceNumber": "sample string 4",
    "Status": 0,
    "Currency": "sample string 5",
    "SupplierReferenceNumber": "sample string 6",
    "Locked": true,
    "LineCount": 8,
    "DeliveredLinesCount": 9,
    "UnitAmountTaxIncludedType": 10,
    "DateOfPurchase": "2022-09-05T15:10:03.9297702Z",
    "DateOfDelivery": "2022-09-05T15:10:03.9297702Z",
    "QuotedDeliveryDate": "2022-09-05T15:10:03.9297702Z",
    "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
}