Linnworks MCP by usefulapi
v1.29.1Read Linnworks inventory, stock and orders; set stock levels and add order notes.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
linnworks_list_stock_locations List stock locations
List the stock locations (warehouses, fulfilment centres) of the Linnworks account: id, name, address, whether it is a fulfilment centre. Use the ids as location_id in other tools. GET /api/Inventory/GetStockLocations.
linnworks_search_inventory Search inventory
Search the product catalogue by SKU, title or barcode and return the items with their stock levels per location (and optionally pricing, suppliers, images, extended properties). An empty keyword lists items. Rows are compact by default (ids, SKU, title, barcode, and per location: stock level, available, in orders, due); detail "full" returns every field. POST /api/Stock/GetStockItemsFull.
| Parameter | Type | Description |
|---|---|---|
detail | string | compact (default) or full (every Linnworks field; large: use small pages). Default full when include asks for more than StockLevels. |
include | array | Extra data to load per item (default: StockLevels). |
include_composite_parents | boolean | Include composite (bundle) parent items (default true). |
include_variation_parents | boolean | Include variation parent items (default true). |
keyword | string | Text to search for (SKU, title or barcode). Empty = list items. |
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
per_page | integer | Results per page, 1-50 (default 25); with detail "full" 1-10 (default 10). A larger value is reduced to the maximum. When you continue with next_page, pass the per_page of the previous reply. |
search_in | array | Fields to search (default: SKU, Title and Barcode). |
linnworks_get_inventory_item Get inventory item
One product by its stock item id: SKU (ItemNumber), title, barcode, quantities (in stock, in orders, due, available), prices, tax rate, category, dimensions and weight. GET /api/Inventory/GetInventoryItemById.
| Parameter | Type | Description |
|---|---|---|
stock_item_id * | string | The stock item id (StockItemId) from linnworks_search_inventory. |
linnworks_get_stock_levels Get stock levels
The stock level of one product at every location: in stock, in open orders, due on purchase orders, available, minimum level, unit cost and when it last changed. GET /api/Stock/GetStockLevel.
| Parameter | Type | Description |
|---|---|---|
stock_item_id * | string | The stock item id (StockItemId) from linnworks_search_inventory. |
linnworks_get_stock_history Get stock change history
The stock-level change history of one product (date, new level, change quantity, value, note), newest data first as Linnworks returns it; optionally for a single location, otherwise combined. GET /api/Stock/GetItemChangesHistory.
| Parameter | Type | Description |
|---|---|---|
stock_item_id * | string | The stock item id (StockItemId). |
location_id | string | Limit to one stock location (default: all locations combined). |
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
per_page | integer | Results per page, 1-100 (default 25). |
linnworks_list_categories List categories
List the product categories (id and name). GET /api/Inventory/GetCategories.
linnworks_list_suppliers List suppliers
List the suppliers: id, name, contact, address, email, web page and currency. GET /api/Inventory/GetSuppliers.
linnworks_list_open_orders List open orders
Page through the open (not yet processed) orders of a fulfilment location. Rows are compact by default (order id and number, Linnworks' stock state of the order (FulfillmentState), references, source, status, dates, customer name, totals, item lines with SKU and quantity); detail "full" returns every field this list gives (shipping address, shipping, wide item lines; no billing address), or use linnworks_get_open_orders_details for chosen orders. Narrow with text filters (reference, customer, SKU ...) and a received-date range. POST /api/Orders/GetOpenOrders.
| Parameter | Type | Description |
|---|---|---|
detail | string | compact (default) or full (every Linnworks field, about 6-8k characters per order: use small pages). |
location_id | string | Fulfilment location id from linnworks_list_stock_locations (default: the account's default location). |
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
per_page | integer | Results per page, 1-50 (default 25); with detail "full" 1-10 (default 10). A larger value is reduced to the maximum. When you continue with next_page, pass the per_page of the previous reply. |
received_from | string | Only orders received on or after this date. |
received_to | string | Only orders received on or before this date. |
text_filters | array | All filters must match. |
linnworks_get_open_orders_details Get open order details
Full details of open orders by their ids (up to 50): general info, shipping, customer, totals, items, folders, notes, identifiers, extended properties and bin racks. Pass include to load only some of the optional parts. Only works for open orders. POST /api/OpenOrders/GetOpenOrdersDetails.
| Parameter | Type | Description |
|---|---|---|
order_ids * | array | Order ids (OrderId, a GUID) from linnworks_list_open_orders. |
include | array | Limit the optional parts loaded (default: all of them). |
linnworks_get_order Get order
One order, open or processed, by its order id (a GUID): general info, shipping, customer, totals, items, notes. GET /api/Orders/GetOrderById.
| Parameter | Type | Description |
|---|---|---|
order_id * | string | The order id (OrderId / pkOrderId). |
linnworks_find_order_by_number Find order by order number
Find one order, open or processed, by its Linnworks order number (the integer shown in the order book). Returns an empty order when none matches. GET /api/Orders/GetOrderDetailsByNumOrderId.
| Parameter | Type | Description |
|---|---|---|
order_number * | integer | The numeric Linnworks order number (NumOrderId). |
linnworks_find_orders_by_reference Find orders by channel reference
Find orders by their channel reference number (for example an Amazon or eBay order number) or secondary reference. Returns at most 50 orders. GET /api/Orders/GetOrderDetailsByReferenceId.
| Parameter | Type | Description |
|---|---|---|
reference * | string | The reference number or secondary reference to look for. |
linnworks_search_processed_orders Search processed orders
Search processed (despatched) orders. Search by order number, tracking number, channel reference, customer name, email, postcode, address, SKU, source or sub-source, optionally within a date range (at most 3 months; a non-exact search covers only the last 3 months). Rows are compact by default (order id and number, references, source, dates, customer name, postcode, country, totals, shipping service, tracking number, flags); detail "full" returns every field (addresses, emails, phones, billing, weights). For units sold per SKU use linnworks_get_sold_quantities. POST /api/ProcessedOrders/Search…
| Parameter | Type | Description |
|---|---|---|
search_field * | string | What to search by: nOrderId (order number), o.PostalTrackingNumber, ReferenceNum, CustomerName, o.cEmailAddress, o.cPostCode, ShippingAddress, SKU (SKU or barcode), Source, SubSource. |
search_term * | string | The text to search for. |
date_from | string | Start of the range (needs date_type other than ALLDATES). |
date_to | string | End of the range (at most 3 months after date_from). |
date_type | string | Which date the range applies to (default ALLDATES = no range). |
detail | string | compact (default) or full (every Linnworks field, about 1.5k characters per order: at most 25 per page). |
exact_match | boolean | Exact match (default false: partial match over the last 3 months). |
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
per_page | integer | Results per page, 20-40 (default 25; 20-25 with detail "full", default 20). Linnworks needs at least 20: a smaller value is raised to 20, a larger one reduced to the maximum. When you continue with ne… |
linnworks_get_sold_quantities Get sold quantities by SKU
Units sold per SKU in a date range (at most 3 months), from processed orders, in one call: no item-by-item history calls. Leaves out cancelled orders, resends and exchanges (and says how many). Counts order lines as sold (a kit counts as its own SKU, not its components; service lines are left out); returns are not subtracted. Reads at most 2,000 orders per call: when there are more, complete is false; split the range and add the results. Returns SKU totals only, no customer data. POST /api/ProcessedOrders/SearchProcessedOrders + /api/Orders/GetOrdersById.
| Parameter | Type | Description |
|---|---|---|
date_from * | string | Start of the range. |
date_to * | string | End of the range (at most 3 months after date_from). A date alone means its start (00:00 UTC): give the end time to include the whole day. |
date_type | string | Which order date the range applies to (default processed). |
skus | array | Only report these SKUs (case-insensitive). All orders are still read. |
source | string | Only orders from this channel source (e.g. EBAY, AMAZON). |
sub_source | string | Only orders from this sub-source (store or account). |
top | integer | Return at most this many SKUs, most units first (default 100, at most 200). |
linnworks_get_stock_levels_batch Get stock levels (many items)
Current stock of up to 25 products in one call, at every location: stock level, available (stock level minus open orders), in open orders, due. Takes stock item ids (StockItemId from linnworks_search_inventory, order lines or linnworks_get_sold_quantities); ids Linnworks does not return are listed in not_found. POST /api/Stock/GetStockLevel_Batch.
| Parameter | Type | Description |
|---|---|---|
stock_item_ids * | array | Stock item ids (StockItemId), 1-25. |
linnworks_get_order_notes Get order notes
The notes on an order (text, internal or external, who wrote them and when). GET /api/Orders/GetOrderNotes.
| Parameter | Type | Description |
|---|---|---|
order_id * | string | The order id (OrderId / pkOrderId). |
linnworks_list_postal_services List postal services
List the postal (shipping) services with their courier vendor, tracking and weight requirements and linked channels. GET /api/PostalServices/GetPostalServices.
linnworks_set_stock_level Set stock level
WRITE: set the stock level of one product (by SKU) at one location to an absolute quantity. This overwrites the current level and flows to the sales channels the item is listed on. Check the current level with linnworks_get_stock_levels first. POST /api/Stock/SetStockLevel.
| Parameter | Type | Description |
|---|---|---|
level * | integer | The new stock level (units, 0 or more). |
location_id * | string | The stock location id from linnworks_list_stock_locations. |
sku * | string | The product SKU (ItemNumber). |
linnworks_add_order_note Add order note
WRITE: add a note to an order (open or processed). Internal notes are visible only inside Linnworks; external notes may be passed to the sales channel. Adds a new note each call (not idempotent). POST /api/Orders/AddOrdersNote.
| Parameter | Type | Description |
|---|---|---|
note * | string | The note text. |
order_id * | string | The order id (OrderId / pkOrderId). |
internal | boolean | Internal note (default true). |