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": "2023-01-10T13:49:45.5622158+00:00",
  "DateTo": "2023-01-10T13:49:45.5622158+00:00",
  "Status": 0,
  "ReferenceLike": "sample string 1",
  "EntriesPerPage": 2,
  "PageNumber": 3,
  "Location": [
    "7e53d112-19b4-4eeb-8036-fff9b8b4f8e7"
  ],
  "Supplier": [
    "a7578946-0157-4d36-bbd7-2c148937fc87"
  ]
}

Response

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

{
  "Result": [
    {
      "pkPurchaseID": "00c4b433-30a9-45bc-82f4-6296f109047f",
      "fkSupplierId": "d70a97f4-5553-433c-922c-45b6bdd39eb2",
      "fkLocationId": "65593702-f8ac-41a6-a91f-a55639d26c64",
      "ExternalInvoiceNumber": "sample string 4",
      "Status": 0,
      "Currency": "sample string 5",
      "SupplierReferenceNumber": "sample string 6",
      "Locked": true,
      "LineCount": 8,
      "DeliveredLinesCount": 9,
      "UnitAmountTaxIncludedType": 10,
      "DateOfPurchase": "2023-01-10T13:49:49.8909837Z",
      "DateOfDelivery": "2023-01-10T13:49:49.8909837Z",
      "QuotedDeliveryDate": "2023-01-10T13:49:49.8909837Z",
      "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
}