Back

Search

Search

Methods

Inventory

Orders

PurchaseOrder /Get_PurchaseOrder

Response: Get_PurchaseOrderResponse



Get purchase order header and items in one call

Parameters

NameTypeDescription
pkPurchaseIdGuidPurchase Order unique identifier

HTTP Endpoint

Server /PurchaseOrder / Get_PurchaseOrder

Permissions

GlobalPermissions.PurchaseOrder.ViewPurchaseOrder.ViewPurchaseOrderNode

Example Code

Example Request

The following request format is required for this method.

POST https://eu-ext.linnworks.net//api/PurchaseOrder/Get_PurchaseOrder HTTP/1.1
Host: eu-ext.linnworks.net
Connection: keep-alive
Accept: application/json, text/javascript, */*; q=0.01
Origin: https://www.linnworks.net
Accept-Language: en
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Referer: https://www.linnworks.net/
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE

pkPurchaseId=5b247d99-22ad-4bad-8c00-2c8ad5a486c7

Response

This is an example response. Results may vary depending on your data.

{
  "PurchaseOrderHeader": {
    "pkPurchaseID": "95351c1f-1959-4f00-a452-f5cb20cf6bc0",
    "fkSupplierId": "f2bc584e-d871-4137-868b-1d27afdb1705",
    "fkLocationId": "da4b3bc2-0158-4664-ae8a-aeb0e71a696e",
    "ExternalInvoiceNumber": "sample string 4",
    "Status": 0,
    "Currency": "sample string 5",
    "SupplierReferenceNumber": "sample string 6",
    "Locked": true,
    "LineCount": 8,
    "DeliveredLinesCount": 9,
    "DateOfPurchase": "2018-02-19T16:57:07.6975258Z",
    "DateOfDelivery": "2018-02-19T16:57:07.6975258Z",
    "QuotedDeliveryDate": "2018-02-19T16:57:07.6975258Z",
    "PostagePaid": 4.0,
    "TotalCost": 5.0,
    "taxPaid": 6.0,
    "ShippingTaxRate": 7.0,
    "ConversionRate": 8.0
  },
  "PurchaseOrderItem": [
    {
      "pkPurchaseItemId": "eebf7555-06f5-45af-8bcf-2b4b414efc1d",
      "fkStockItemId": "c2ae4a82-bee8-4422-9d73-784e33f0df63",
      "Quantity": 3,
      "Cost": 4.0,
      "Delivered": 5,
      "TaxRate": 6.0,
      "Tax": 7.0,
      "PackQuantity": 8,
      "PackSize": 9,
      "SKU": "sample string 10",
      "ItemTitle": "sample string 11",
      "InventoryTrackingType": 12,
      "IsDeleted": true
    },
    {
      "pkPurchaseItemId": "eebf7555-06f5-45af-8bcf-2b4b414efc1d",
      "fkStockItemId": "c2ae4a82-bee8-4422-9d73-784e33f0df63",
      "Quantity": 3,
      "Cost": 4.0,
      "Delivered": 5,
      "TaxRate": 6.0,
      "Tax": 7.0,
      "PackQuantity": 8,
      "PackSize": 9,
      "SKU": "sample string 10",
      "ItemTitle": "sample string 11",
      "InventoryTrackingType": 12,
      "IsDeleted": true
    }
  ],
  "NoteCount": 1
}