BoxHero MCP by usefulapi

v1.2.1
io.usefulapi/boxhero Checked 1 day ago Published 10 hours ago

Read stock and orders, create or update items, and record stock moves in BoxHero.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

boxhero_get_team Get team

The BoxHero team this API token belongs to: id, name, currency (code, symbol, price decimals), memo and mode. The API needs the team in LOCATION mode (mode 2) for items, locations, transactions and orders. GET /teams/linked.

boxhero_list_members List team members

List the active team members (id, name, role admin/member/viewer). Use the ids to filter orders by creator. GET /members.

boxhero_list_items List items

List inventory items with SKU, barcode, cost, price, custom attributes, total quantity and the per-location stock breakdown. Pass location_ids to limit the quantities (and the list) to items with stock at those locations; item_ids to fetch specific items. Cursor-paged by id; pass next_cursor to continue. Low-stock checks: compare quantity with the item's 'Minimum Stock' style attribute. GET /items.

ParameterTypeDescription
cursorintegerCursor from the previous reply's next_cursor. Omit on the first call.
item_idsarrayOnly these item ids.
limitintegerPage size, 1-100 (default 25; pass a larger value for bigger pages).
location_idsarrayScope quantities to these locations and list only items with nonzero stock there.

boxhero_get_item Get item

One item by id, with its attributes, total quantity and stock per location. GET /items/{item_id}.

ParameterTypeDescription
item_id *integerBoxHero item id.

boxhero_get_item_by_sku Get item by SKU

Look up one item by its SKU (case-insensitive) and return the same payload as boxhero_get_item. No item with that SKU returns { found: false } (not an error). GET /items/by-sku/{sku}.

ParameterTypeDescription
sku *stringThe item's SKU.

boxhero_list_item_attributes List item attributes

List the custom attribute specs defined for items (id, attr_name, attr_type text/date/number/barcode, rank). The ids are used when creating or updating items. File-type attributes are not included. GET /item-attrs.

boxhero_create_item Create item

WRITE: create a new inventory item. Optionally seed initial stock with quantity (and location_id when the team has more than one active location; with one location it is used automatically). Without quantity the item starts at zero everywhere. The SKU must be unique in the team (a random one is generated when omitted). Initial stock is applied in a second step, so on a partial failure the item may exist without stock. POST /items.

ParameterTypeDescription
name *stringItem name.
attrsarrayCustom attribute values: [{ id, value }].
barcodestringPrimary barcode.
coststringDecimal string with up to 3 decimal places, e.g. "12.50".
location_idintegerLocation to seed the initial quantity at.
photo_urlstringPublic URL of a photo.
pricestringDecimal string with up to 3 decimal places, e.g. "12.50".
quantitynumberInitial on-hand quantity to seed (non-zero).
skustringSKU, unique in the team. Omit to let BoxHero generate one.

boxhero_update_item Update item

WRITE: change an item's name, SKU, barcode, photo, cost, price or custom attributes. Only the fields you pass change (an attribute with value null is removed; photo_url '' clears the photo). Stock levels are NOT changed here: use boxhero_record_stock_transaction. PUT /items/{item_id}.

ParameterTypeDescription
item_id *integerBoxHero item id.
attrsarrayAttribute values to patch: [{ id, value }].
barcodestring
coststringDecimal string with up to 3 decimal places, e.g. "12.50".
namestring
photo_urlstringNew photo URL; '' clears it.
pricestringDecimal string with up to 3 decimal places, e.g. "12.50".
skustringNew SKU (unique in the team); an empty value is ignored.

boxhero_list_locations List locations

List the active storage locations (warehouses, stores...) with id, name, memo and total quantity stored. Location ids are needed for stock transactions. GET /locations.

boxhero_get_location Get location

One location by id. GET /locations/{location_id}.

ParameterTypeDescription
location_id *integerBoxHero location id.

boxhero_create_location Create location

WRITE: create a storage location. The name must be unique in the team; the plan's location limit applies (HTTP 402 when over it). POST /locations.

ParameterTypeDescription
name *stringLocation name, unique in the team.
memostringFree-text memo.

boxhero_update_location Update location

WRITE: rename a location or change its memo (memo '' clears it). Only the fields you pass change. PUT /locations/{location_id}.

ParameterTypeDescription
location_id *integerBoxHero location id.
memostringNew memo; '' clears it.
namestringNew name, unique in the team.

boxhero_list_partners List partners

List business partners: suppliers (type 0, used on Stock In) and customers (type 1, used on Stock Out) with contact details. Cursor-paged by id. GET /partners.

ParameterTypeDescription
cursorintegerCursor from the previous reply's next_cursor. Omit on the first call.
limitintegerPage size, 1-100 (default 100).
type0 = suppliers only, 1 = customers only. Omit for both.

boxhero_get_partner Get partner

One partner (supplier or customer) by id. GET /partners/{partner_id}.

ParameterTypeDescription
partner_id *integerBoxHero partner id.

boxhero_create_partner Create partner

WRITE: add a supplier (type 0) or customer (type 1) to BoxHero. It only stores contact details; BoxHero does not contact the partner. The plan's partner limit applies (HTTP 402). POST /partners.

ParameterTypeDescription
name *stringPartner name.
type *0 = supplier (Stock In), 1 = customer (Stock Out). Cannot be changed later.
addressstring
emailstring
memostring
phonestring

boxhero_update_partner Update partner

WRITE: change a partner's name or contact details. The name is required by BoxHero (pass the current one to keep it); the other fields change only when passed. A partner's type cannot be changed. PUT /partners/{partner_id}.

ParameterTypeDescription
name *stringPartner name (required; pass the current name to keep it).
partner_id *integerBoxHero partner id.
addressstring
emailstring
memostring
phonestring

boxhero_list_transactions List stock transactions

List stock transactions (Stock In, Stock Out, Move, Adjust), newest first, as summaries: type, locations, partner, memo, time, creator, item count, total quantity and revision. Use boxhero_get_transaction for the line items and new stock levels. Filter by type. Cursor-paged; pass next_cursor to continue. GET /transactions.

ParameterTypeDescription
cursorintegerCursor from the previous reply's next_cursor. Omit on the first call.
limitintegerPage size, 1-100 (default 100).
typestringin = Stock In, out = Stock Out, move = Move Stock, adjust = Adjust Stock.

boxhero_get_transaction Get stock transaction

One stock transaction by id with all its lines; pass revision for an earlier version of it. GET /transactions/{tx_id}.

ParameterTypeDescription
transaction_id *integerBoxHero transaction id.
revisionintegerA historical revision; omit for the latest.

boxhero_record_stock_transaction Record stock transaction

WRITE: record a stock movement that CHANGES stock levels. type 'in' adds stock at to_location_id (optional supplier partner_id), 'out' removes stock at to_location_id (optional customer partner_id; stock may go negative), 'move' transfers from from_location_id to to_location_id, 'adjust' applies a signed RELATIVE correction at to_location_id (quantity 50 adds 50, -3 removes 3; it is not a target level). For in/out/move give each line a positive quantity (the tool applies the sign); for adjust it is signed and non-zero. Each line names an item by item_id or item_sku. to_location_id may be omitt…

ParameterTypeDescription
items *array
type *stringin = Stock In, out = Stock Out, move = Move Stock, adjust = Adjust Stock.
from_location_idintegerSource location (move only).
memostringFree-text memo for the transaction.
partner_idintegerSupplier (in) or customer (out); not allowed on move or adjust.
to_location_idintegerThe location stock arrives at / leaves from / is adjusted at. Optional only with a single location.
tx_timestringEffective time, ISO 8601 with timezone, not in the future; defaults to now; not allowed on adjust.

boxhero_list_purchase_orders List purchase orders

List purchase orders (stock you ordered from suppliers), newest first: order number, status, supplier, totals, estimated date. Line items and fulfillment progress come from boxhero_get_purchase_order. Cursor-paged. GET /purchase-orders.

ParameterTypeDescription
created_by_idintegerOnly orders created by this member id (boxhero_list_members).
cursorintegerCursor from the previous reply's next_cursor. Omit on the first call.
estimated_afterstringestimated fulfillment >= this.
estimated_beforestringestimated fulfillment < this.
limitintegerPage size, 1-100 (default 100).
order_numberstringExact order number.
ordered_afterstringorder time >= this (ISO 8601 with timezone).
ordered_beforestringorder time < this (ISO 8601 with timezone).
partner_idintegerOnly orders of this partner.
statusesarrayOnly orders in these statuses.
tagsarrayOnly orders carrying ALL these tags.

boxhero_get_purchase_order Get purchase order

One purchase order by id with every line (item, price, quantity, tax, discount), additional costs, tags, custom fields and fulfillment progress. GET /purchase-orders/{order_id}.

ParameterTypeDescription
order_id *integerBoxHero purchase order id.

boxhero_list_sales_orders List sales orders

List sales orders (stock you sold to customers), newest first: order number, status, customer, totals, estimated date. Line items, returns and fulfillment progress come from boxhero_get_sales_order. Cursor-paged. GET /sales-orders.

ParameterTypeDescription
created_by_idintegerOnly orders created by this member id (boxhero_list_members).
cursorintegerCursor from the previous reply's next_cursor. Omit on the first call.
estimated_afterstringestimated fulfillment >= this.
estimated_beforestringestimated fulfillment < this.
limitintegerPage size, 1-100 (default 100).
order_numberstringExact order number.
ordered_afterstringorder time >= this (ISO 8601 with timezone).
ordered_beforestringorder time < this (ISO 8601 with timezone).
partner_idintegerOnly orders of this partner.
statusesarrayOnly orders in these statuses.
tagsarrayOnly orders carrying ALL these tags.

boxhero_get_sales_order Get sales order

One sales order by id with every line (item, price, quantity, returned quantity), additional costs, tags, custom fields and fulfillment progress. GET /sales-orders/{order_id}.

ParameterTypeDescription
order_id *integerBoxHero sales order id.