Linnworks MCP by usefulapi

v1.29.1
io.usefulapi/linnworks Checked 2 days ago Published 1 day ago

Read 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.

ParameterTypeDescription
detailstringcompact (default) or full (every Linnworks field; large: use small pages). Default full when include asks for more than StockLevels.
includearrayExtra data to load per item (default: StockLevels).
include_composite_parentsbooleanInclude composite (bundle) parent items (default true).
include_variation_parentsbooleanInclude variation parent items (default true).
keywordstringText to search for (SKU, title or barcode). Empty = list items.
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
per_pageintegerResults 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_inarrayFields 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.

ParameterTypeDescription
stock_item_id *stringThe 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.

ParameterTypeDescription
stock_item_id *stringThe 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.

ParameterTypeDescription
stock_item_id *stringThe stock item id (StockItemId).
location_idstringLimit to one stock location (default: all locations combined).
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
per_pageintegerResults 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.

ParameterTypeDescription
detailstringcompact (default) or full (every Linnworks field, about 6-8k characters per order: use small pages).
location_idstringFulfilment location id from linnworks_list_stock_locations (default: the account's default location).
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
per_pageintegerResults 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_fromstringOnly orders received on or after this date.
received_tostringOnly orders received on or before this date.
text_filtersarrayAll 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.

ParameterTypeDescription
order_ids *arrayOrder ids (OrderId, a GUID) from linnworks_list_open_orders.
includearrayLimit 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.

ParameterTypeDescription
order_id *stringThe 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.

ParameterTypeDescription
order_number *integerThe 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.

ParameterTypeDescription
reference *stringThe 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…

ParameterTypeDescription
search_field *stringWhat to search by: nOrderId (order number), o.PostalTrackingNumber, ReferenceNum, CustomerName, o.cEmailAddress, o.cPostCode, ShippingAddress, SKU (SKU or barcode), Source, SubSource.
search_term *stringThe text to search for.
date_fromstringStart of the range (needs date_type other than ALLDATES).
date_tostringEnd of the range (at most 3 months after date_from).
date_typestringWhich date the range applies to (default ALLDATES = no range).
detailstringcompact (default) or full (every Linnworks field, about 1.5k characters per order: at most 25 per page).
exact_matchbooleanExact match (default false: partial match over the last 3 months).
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
per_pageintegerResults 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.

ParameterTypeDescription
date_from *stringStart of the range.
date_to *stringEnd 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_typestringWhich order date the range applies to (default processed).
skusarrayOnly report these SKUs (case-insensitive). All orders are still read.
sourcestringOnly orders from this channel source (e.g. EBAY, AMAZON).
sub_sourcestringOnly orders from this sub-source (store or account).
topintegerReturn 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.

ParameterTypeDescription
stock_item_ids *arrayStock 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.

ParameterTypeDescription
order_id *stringThe 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.

ParameterTypeDescription
level *integerThe new stock level (units, 0 or more).
location_id *stringThe stock location id from linnworks_list_stock_locations.
sku *stringThe 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.

ParameterTypeDescription
note *stringThe note text.
order_id *stringThe order id (OrderId / pkOrderId).
internalbooleanInternal note (default true).