Get purchase order header and items in one call
Name | Type | Description |
---|---|---|
pkPurchaseId | Guid | Purchase Order unique identifier |
The following request format is required for this method.
POST https://eu-ext.linnworks.net/api/PurchaseOrder/Get_PurchaseOrder
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.
pkPurchaseId=a9d84eee-b41f-4734-b5a1-22533f53f12d
This is an example of the response JSON. Results will vary depending on your data.
{
"PurchaseOrderHeader": {
"pkPurchaseID": "868ae2f5-37d5-4fc3-ad5d-4dacc5c775da",
"fkSupplierId": "c399cffd-6c14-48f2-99d6-63d91b27fc54",
"fkLocationId": "49eb3af7-7036-4747-ba22-0fd8cbf1d411",
"ExternalInvoiceNumber": "sample string 4",
"Status": 0,
"Currency": "sample string 5",
"SupplierReferenceNumber": "sample string 6",
"Locked": true,
"LineCount": 8,
"DeliveredLinesCount": 9,
"UnitAmountTaxIncludedType": 10,
"DateOfPurchase": "2022-03-09T13:04:12.0961684Z",
"DateOfDelivery": "2022-03-09T13:04:12.0961684Z",
"QuotedDeliveryDate": "2022-03-09T13:04:12.0961684Z",
"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
},
"PurchaseOrderItem": [
{
"pkPurchaseItemId": "d7ff379e-25c3-474d-ab73-976fdaab9fa8",
"fkStockItemId": "cc75dbdb-99e0-46a4-bef6-0d581ed9e6ae",
"StockItemIntId": 3,
"Quantity": 4,
"Cost": 5.0,
"Delivered": 6,
"TaxRate": 7.0,
"Tax": 8.0,
"PackQuantity": 9,
"PackSize": 10,
"SKU": "sample string 11",
"ItemTitle": "sample string 12",
"InventoryTrackingType": 13,
"IsDeleted": true,
"SortOrder": 15,
"DimHeight": 16.0,
"DimWidth": 17.0,
"BarcodeNumber": "sample string 18",
"DimDepth": 19.0,
"BoundToOpenOrdersItems": 20,
"BinRack": "sample string 21",
"QuantityBoundToOpenOrdersItems": 22,
"SupplierCode": "sample string 24",
"SupplierBarcode": "sample string 25",
"SkuGroupIds": [
1
]
}
],
"AdditionalCosts": [
{
"PurchaseAdditionalCostItemId": 1,
"AdditionalCostTypeId": 2,
"Reference": "sample string 3",
"SubTotalLineCost": 4.0,
"TaxRate": 5.0,
"Tax": 6.0,
"Currency": "sample string 7",
"ConversionRate": 8.0,
"TotalLineCost": 9.0,
"CostAllocation": [
{
"CostAllocationId": 1,
"PurchaseAdditionalCostItemId": 2,
"PurchaseItemId": "34a31cb3-f6da-4abe-a785-f77fbc4a1340",
"AllocationPercentage": 4.0
}
],
"AllocationLocked": true,
"AdditionalCostTypeName": "sample string 11",
"AdditionalCostTypeIsShippingType": true,
"AdditionalCostTypeIsPartialAllocation": true,
"Print": true,
"AllocationMethod": 0
}
],
"NoteCount": 1,
"PaymentStatements": [
{
"PurchasePaymentStatementId": 1,
"LineCost": 2.0,
"ConversionRate": 3.0,
"Currency": "sample string 4",
"Reference": "sample string 5",
"CreationDate": "2022-03-09T13:04:12.0971668+00:00",
"PaymentDate": "2022-03-09T13:04:12.0971668+00:00",
"fkPurchaseAdditionalCostItemId": 1
}
],
"DeliveredRecords": [
{
"pkDeliveryRecordId": 1,
"fkPurchaseItemId": "ef3cbde5-6c82-461f-8a65-40964310bd6f",
"fkStockLocationId": "01cd3b9f-85b3-4333-9f84-80e258b105a0",
"UnitCost": 4.0,
"DeliveredQuantity": 5,
"CreatedDateTime": "2022-03-09T13:04:12.0961684+00:00",
"ModifiedDateTime": "2022-03-09T13:04:12.0961684+00:00",
"fkBatchInventoryId": 1
}
]
}