Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

ShippingService

PurchaseOrder /Update_PurchaseOrderHeader

Allows 150 calls per minute

Response: PurchaseOrderHeader



Update purchase order header, only if status is not Delivered. Returns modified/recalculated purchase order header

Parameters

NameTypeDescription
updateParameterUpdate_PurchaseOrderHeaderParameterUpdate purchase order header class

Permissions

GlobalPermissions.PurchaseOrder.EditPurchaseOrderNode

Example Request

The following request format is required for this method.

Endpoint URL

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

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.

updateParameter={
  "pkPurchaseID": "cfd06207-c586-427a-9a54-d889dfe49c9a",
  "SupplierReferenceNumber": "sample string 2",
  "fkLocationId": "33f12ece-cda3-4783-ae27-ec039595621e",
  "fkSupplierId": "45a1df69-558b-4639-8991-5e8ead72ffc7",
  "Currency": "sample string 3",
  "ExternalInvoiceNumber": "sample string 4",
  "UnitAmountTaxIncludedType": 1,
  "DateOfPurchase": "2021-07-29T09:24:12.3245707Z",
  "QuotedDeliveryDate": "2021-07-29T09:24:12.325566Z",
  "ShippingTaxRate": 1.0,
  "ConversionRate": 1.0,
  "PostagePaid": 1.0
}

Response

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

{
  "pkPurchaseID": "a3e75df7-1092-4d6d-b0fe-75cbc963cc2d",
  "fkSupplierId": "2d073074-7d15-4fcd-99fe-bb2a4b76b5de",
  "fkLocationId": "f73f7b58-b102-4aac-8b6f-bcf7824ca93f",
  "ExternalInvoiceNumber": "sample string 4",
  "Status": 0,
  "Currency": "sample string 5",
  "SupplierReferenceNumber": "sample string 6",
  "Locked": true,
  "LineCount": 8,
  "DeliveredLinesCount": 9,
  "UnitAmountTaxIncludedType": 10,
  "DateOfPurchase": "2021-07-29T09:24:43.2373104Z",
  "DateOfDelivery": "2021-07-29T09:24:43.2373104Z",
  "QuotedDeliveryDate": "2021-07-29T09:24:43.2373104Z",
  "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
}