← All posts
Linnworks + AI 2 December 2026 7 min read

Linnworks API documentation: how to read a reference page and make the call

The Linnworks API documentation lives on the Linnworks Developer Hub at apidocs.linnworks.net: setup guides under Docs, one page per endpoint under API Reference, and a single llms.txt file for AI tools. Each reference page gives you the method, the path, the request and response schemas, the permission needed and a per-minute rate limit. What it doesn't make obvious is that the host comes from your session, the token goes in the Authorization header on its own, and the request body format is worth testing per endpoint.

This guide walks through one reference page, turns it into a real request, and finishes with a worked example: from a SKU to that item's stock level in every location.

Where is the Linnworks API documentation?

What does a Linnworks API reference page tell you?

Take the GetStockLevel page. Every reference page follows the same pattern:

How do you turn a reference page into a request?

1. Use your session's Server, not the one on the page

Every definition lists https://eu-ext.linnworks.net as its server. Treat that as an example. AuthorizeByApplication returns a Server field, and the setup guide says to use it as the base URL for every later request. Linnworks API regions explains why hard-coding a host breaks for accounts in other regions.

2. Put the session token in the Authorization header, on its own

The security scheme on each page is an API key in a header named Authorization. The value is the session token itself. The open code of the hosted server sends exactly that, with no "Bearer" prefix:

Authorization: 6f1c...your-session-token...

3. Check the method

Most endpoints are POST, including many that only read data. Some are GET with query parameters: GetStockLevel takes stockItemId in the query string, and so do a few order lookups covered in getting an order by number, reference or ID.

4. Choose the body format deliberately

The definitions describe each request body as a JSON schema. For the classic Orders, Stock and ProcessedOrders controllers, the hosted server's open code sends form-encoded bodies instead, built by one rule:

So a schema of { "pkOrderIds": ["..."] } becomes one field, pkOrderIds, whose value is the JSON text of the array. A few newer Inventory endpoints are the exception: the same code sends ArchiveInventoryItems a JSON body with the payload nested under a parameters key, and its comments note that those endpoints reject form encoding. Whichever format you pick, test each endpoint against a real account before you build on it.

5. Read the response schema before you write the parser

Some calls return a single object, some an array, and some a paged wrapper. GetStockLevel returns an array with one entry per location. GetOrdersById returns an array even when you ask for one order. The response schema on the page tells you which, and getting it wrong is an easy first bug to write.

A worked example: from a SKU to stock levels

Step 1: find the stock item's ID

Stock calls work on the item's GUID, not its SKU. GetStockItemsFull searches the catalogue; its schema lists keyword, searchTypes, dataRequirements, entriesPerPage (maximum 200) and pageNumber. Before URL-encoding, the form fields look like this:

POST {Server}/api/Stock/GetStockItemsFull
Authorization: your-session-token
Content-Type: application/x-www-form-urlencoded

keyword=ABC-123
searchTypes=["SKU"]
dataRequirements=["StockLevels"]
entriesPerPage=50
pageNumber=1

Each StockItemFull in the reply carries StockItemId (the GUID) and ItemNumber (the SKU). A keyword search can match more than one item, so pick the row whose ItemNumber equals your SKU exactly. One quirk from the hosted server's code: when nothing matches, Linnworks answers HTTP 400 with "No items found with given filter." rather than an empty list, so treat that message as zero results, not a failure. If you have a list of SKUs, GetStockItemIdsBySKU takes a request object holding a SKUS array and returns pairs of StockItemId and SKU.

Step 2: read the stock level

GetStockLevel is documented as GET with the GUID in the query string:

GET {Server}/api/Stock/GetStockLevel?stockItemId=3f2b...-...-...
Authorization: your-session-token

The reply is an array of StockItemLevel, one per location. The fields to know, as the reference describes them: Location (with its StockLocationId and LocationName), StockLevel, InOrders (currently in open orders), Available (StockLevel minus InOrders), Due (due in on purchase orders) and MinimumLevel. Stock levels by location explains what those numbers mean on the warehouse floor.

pkStockItemId, StockItemId or ItemId: which is which?

They are the same GUID under different names, which is easy to trip over:

One more naming trap: on a stock item, ItemNumber is the SKU, but on an order line ItemNumber is the item number as the channel sent it, and the SKU is in a separate SKU field. Store GUIDs as your keys and treat SKUs as the human-readable label you look up.

What the documentation leaves to you

Or skip building it

If the reason you're reading the reference is to let an AI assistant answer questions from live Linnworks data, that plumbing already exists. The Linnworks MCP source code is the TypeScript Cloudflare Workers source we run in production, for developers comfortable with the command line: you deploy it to your own Cloudflare account and change what you like. The Hosted MCP Server for Linnworks is the no-deploy option: read-only, one URL to paste into Claude, with the session, region and body-format handling done for you.

MCP-G is part of Green & Home Limited and is not affiliated with, endorsed by or sponsored by Linnworks or Anthropic.

Want the code instead of the reference? Buy the self-host source (C$940 + tax where applicable, one-off, with 12 months of free updates), or use the hosted server: Starter is C$26.79 a month + tax where applicable after a 14-day free trial.

Frequently asked questions

Where is the Linnworks API documentation?

On the Linnworks Developer Hub at apidocs.linnworks.net. It has setup guides such as Quick Start and System Integration Setup, an API Reference with one page per endpoint, and a Markdown index of the whole reference at apidocs.linnworks.net/llms.txt.

Which base URL do I use for Linnworks API calls?

The Server value returned by AuthorizeByApplication for that session. The reference pages list https://eu-ext.linnworks.net as the server, but Linnworks’ setup guide says to use the Server field as the base URL for subsequent requests, and accounts in other regions use other hosts.

Does the Linnworks API use a Bearer token?

No. The reference pages describe an API key in a header named Authorization, and the value is the session token on its own. The open code of the Hosted MCP Server for Linnworks sends the token with no Bearer prefix.

Are Linnworks API requests JSON or form-encoded?

The reference pages describe JSON request bodies. The open code of the hosted server calls the classic Orders, Stock and ProcessedOrders endpoints with form-encoded bodies, sending object and array values as JSON strings, and uses JSON bodies for newer Inventory endpoints that require them. Test each endpoint you use against a real account.

What is the difference between pkStockItemId and StockItemId?

Nothing: they name the same stock item GUID. Stock records and stock calls call it StockItemId, pk marks it as the primary key in descriptions and older code, and order lines call it ItemId. StockItemIntId is a different, integer ID.

How do I get the stock level for a SKU with the Linnworks API?

Find the stock item GUID first, with GetStockItemsFull searching by SKU or GetStockItemIdsBySKU, then call GetStockLevel with that stockItemId. It returns one entry per location with StockLevel, InOrders, Available, Due and MinimumLevel.

Ask Claude about your Linnworks account

The Hosted MCP Server for Linnworks connects Claude to your own Linnworks account, read-only. 14-day free trial, then C$26.79 a month + tax where applicable.

See the hosted server

Want to run it yourself today? Buy the Linnworks MCP source code and deploy it to your own Cloudflare account. C$940 + tax where applicable, one-off.