Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

PurchaseOrder /Search_PurchaseOrders2

Allows 150 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
requestSearch_PurchaseOrder2RequestSearch Parameters

Permissions

GlobalPermissions.Inventory.PurchaseOrder.SearchPurchaseOrderNode

Example Request

The following request format is required for this method.

Endpoint URL

GET | POST https://eu-ext.linnworks.net/api/PurchaseOrder/Search_PurchaseOrders2

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.

request={
  "DateFrom": "2022-09-05T15:10:00.8420383+03:00",
  "DateTo": "2022-09-05T15:10:00.8420383+03:00",
  "Status": 0,
  "SearchValue": "sample string 1",
  "SearchType": 0,
  "EntriesPerPage": 2,
  "PageNumber": 3,
  "Location": [
    "8cf49832-0786-42e6-9ec4-8d512254185d"
  ],
  "Supplier": [
    "60620209-a1e4-4e12-99cc-ce6756eb264d"
  ]
}

Response

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

{
  "Result": [
    {
      "pkPurchaseID": "75b42701-d546-4f03-be31-9bca9fec51bf",
      "fkSupplierId": "56b25d1c-7b19-4463-a5c6-0dffe2ebd7f5",
      "fkLocationId": "470c3834-3a53-4f5b-b67f-4d83172dc3a6",
      "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.8787315Z",
      "DateOfDelivery": "2022-09-05T15:10:03.8787315Z",
      "QuotedDeliveryDate": "2022-09-05T15:10:03.8787315Z",
      "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
}