Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

PurchaseOrder /Search_PurchaseOrders

Allows 250 calls per minute

Response: Search_PurchaseOrdersResult



Searches purchase order by a number of parameters, such as Date of Purchase, status, reference number.
Returns paged result of purchase order header.

Parameters

NameTypeDescription
searchParameterSearch_PurchaseOrderParameterSearch Parameter class

Permissions

GlobalPermissions.Inventory.PurchaseOrder.SearchPurchaseOrderNode

Example Request

The following request format is required for this method.

Endpoint URL

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

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.

searchParameter={
  "DateFrom": "2022-03-09T13:04:02.3302613+00:00",
  "DateTo": "2022-03-09T13:04:02.3302613+00:00",
  "Status": 0,
  "ReferenceLike": "sample string 1",
  "EntriesPerPage": 2,
  "PageNumber": 3,
  "Location": [
    "898a1478-bd87-4326-a453-9d00bf6b4c36"
  ],
  "Supplier": [
    "e55a0fac-a67a-4c21-a6ed-21956b88c48c"
  ]
}

Response

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

{
  "Result": [
    {
      "pkPurchaseID": "0ea8c479-c4e1-4276-9b4a-2c62f5ee51d6",
      "fkSupplierId": "e6fbd428-16ce-4738-893d-ebe76b6a6f22",
      "fkLocationId": "e2df3df0-94be-4d9f-8fb7-9e598d16ce54",
      "ExternalInvoiceNumber": "sample string 4",
      "Status": 0,
      "Currency": "sample string 5",
      "SupplierReferenceNumber": "sample string 6",
      "Locked": true,
      "LineCount": 8,
      "DeliveredLinesCount": 9,
      "UnitAmountTaxIncludedType": 10,
      "DateOfPurchase": "2022-03-09T13:04:12.0712018Z",
      "DateOfDelivery": "2022-03-09T13:04:12.0712018Z",
      "QuotedDeliveryDate": "2022-03-09T13:04:12.0712018Z",
      "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
    }
  ],
  "TotalPages": 1,
  "CurrentPageNumber": 2,
  "EntriesPerPage": 3,
  "TotalNumberOfRecords": 4
}