---
title: "GetPurchaseOrdersWithStockItems"
method: POST
path: "/api/PurchaseOrder/GetPurchaseOrdersWithStockItems"
tags: ["PurchaseOrder"]
---

# GetPurchaseOrdersWithStockItems

`POST /api/PurchaseOrder/GetPurchaseOrdersWithStockItems`

## Request

- Base URL: `https://eu-ext.linnworks.net`
- URL: `https://eu-ext.linnworks.net/api/PurchaseOrder/GetPurchaseOrdersWithStockItems`
- Auth: API key in header `Authorization`

Gets a list of Purchase Order Ids that contain undelivered stock items
<b>Permissions Required: </b> GlobalPermissions.Inventory.PurchaseOrder.SearchPurchaseOrderNode
<b>Rate limit: </b><span style="background-color:#0272d9;color:white;padding:4px 8px;text-align:center;border-radius:5px; font-size: small;"><b>150</b></span> / minute

## Request body

- PurchaseOrderGetPurchaseOrdersWithStockItemsRequest
  - `purchaseOrder` PurchaseOrderWithStockItem: List of Purchase Order Ids return using the Stock Item and Location Id parameters
    - `StockItemId` string, uuid: The Id of the Stock Item
    - `LocationIds` string[]: List of Location Ids to determine whether to return Purchase Order Ids based on stock location as well as Stock Item Id

## Response `200`

OK

- string[]

---

[API](https://skmtc.dev/linnworks/apis/purchase-orders-api.md) - [All operations](https://skmtc.dev/linnworks/apis/purchase-orders-api/llms.txt) - [OpenAPI document](https://skmtc.dev/linnworks/apis/purchase-orders-api/revisions/d1598054b894?raw)
