Searches purchase order by a number of parameters, such as Date of Purchase, status, reference number.
Returns paged result of purchase order header.
Name | Type | Description |
---|---|---|
searchParameter | Search_PurchaseOrderParameter | Search Parameter class |
The following request format is required for this method.
GET | POST https://eu-ext.linnworks.net/api/PurchaseOrder/Search_PurchaseOrders
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
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"
]
}
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
}