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

GET | 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-09-05T15:10:00.8440386+03:00",
  "DateTo": "2022-09-05T15:10:00.8440386+03:00",
  "Status": 0,
  "ReferenceLike": "sample string 1",
  "EntriesPerPage": 2,
  "PageNumber": 3,
  "Location": [
    "ca925fdd-5c42-4227-bc1d-1f20a0ed55f6"
  ],
  "Supplier": [
    "578ecaf2-87ea-4da8-b6b4-451ccb4b2361"
  ]
}

Response

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

{
  "Result": [
    {
      "pkPurchaseID": "55e9bf4e-ecf1-4eac-9a98-96816249937c",
      "fkSupplierId": "a80f2d1d-5ed5-4786-b683-e9f396fe1c84",
      "fkLocationId": "80b08a44-5528-4c17-b4fa-139b6049efa1",
      "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.8897405Z",
      "DateOfDelivery": "2022-09-05T15:10:03.8897405Z",
      "QuotedDeliveryDate": "2022-09-05T15:10:03.8897405Z",
      "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
}