Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

PurchaseOrder /Get_PurchaseOrder

Allows 250 calls per minute

Response: Get_PurchaseOrderResponse



Get purchase order header and items in one call

Parameters

NameTypeDescription
pkPurchaseIdGuidPurchase Order unique identifier

Permissions

GlobalPermissions.Inventory.PurchaseOrder.ViewPurchaseOrderNode

Example Request

The following request format is required for this method.

Endpoint URL

GET | POST https://eu-ext.linnworks.net/api/PurchaseOrder/Get_PurchaseOrder

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.

pkPurchaseId=5897f1d7-8aba-4552-9dda-bb8b710893c9

Response

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

{
  "PurchaseOrderHeader": {
    "pkPurchaseID": "e8a3fe01-bb1c-4140-b0cd-357bd2485a02",
    "fkSupplierId": "df0c552b-0e4e-4637-a5ef-63fd31a70ee6",
    "fkLocationId": "46058cfb-85ff-400f-b629-2c6049f8dc32",
    "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.940239Z",
    "DateOfDelivery": "2023-01-10T13:49:49.940239Z",
    "QuotedDeliveryDate": "2023-01-10T13:49:49.940239Z",
    "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": "caa1985b-0a5d-44e3-aec3-235fa1d55f29",
      "fkStockItemId": "0717f812-cb90-48fb-a7bd-6b27f5087b05",
      "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": "8deefdff-f760-43ec-a30a-225dac48f68a",
          "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": "2023-01-10T13:49:49.9412381+00:00",
      "PaymentDate": "2023-01-10T13:49:49.9412381+00:00",
      "fkPurchaseAdditionalCostItemId": 1
    }
  ],
  "DeliveredRecords": [
    {
      "pkDeliveryRecordId": 1,
      "fkPurchaseItemId": "6fa7e058-c1cf-4ad8-97d1-4452f8b9f363",
      "fkStockLocationId": "e7dc73d7-4782-471d-b1fa-3bd626a58319",
      "UnitCost": 4.0,
      "DeliveredQuantity": 5,
      "CreatedDateTime": "2023-01-10T13:49:49.940239+00:00",
      "ModifiedDateTime": "2023-01-10T13:49:49.940239+00:00",
      "fkBatchInventoryId": 1
    }
  ]
}