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

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": "2021-11-25T11:33:34.7130632+00:00",
  "DateTo": "2021-11-25T11:33:34.7130632+00:00",
  "Status": 0,
  "SearchValue": "sample string 1",
  "SearchType": 0,
  "EntriesPerPage": 2,
  "PageNumber": 3,
  "Location": [
    "ae6aa8d4-ee49-4438-8c25-5662c3e5a508"
  ],
  "Supplier": [
    "823e764b-5276-4e44-afdb-602e79b90abb"
  ]
}

Response

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

{
  "Result": [
    {
      "pkPurchaseID": "9c9a9d3f-ff4e-4bfe-8000-e94a7c11afa1",
      "fkSupplierId": "0291103a-929c-4ab3-998a-5bfbaf31c72d",
      "fkLocationId": "3270af06-a6c3-44a4-800f-f45724963312",
      "ExternalInvoiceNumber": "sample string 4",
      "Status": 0,
      "Currency": "sample string 5",
      "SupplierReferenceNumber": "sample string 6",
      "Locked": true,
      "LineCount": 8,
      "DeliveredLinesCount": 9,
      "UnitAmountTaxIncludedType": 10,
      "DateOfPurchase": "2021-11-25T11:33:38.0744058Z",
      "DateOfDelivery": "2021-11-25T11:33:38.0744058Z",
      "QuotedDeliveryDate": "2021-11-25T11:33:38.0744058Z",
      "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
}