Heartland Retail MCP by usefulapi

v1.6.1
io.usefulapi/heartland-retail Checked 2 days ago Published 1 day ago

Read items, stock, customers and sales orders; create and update customers in Heartland Retail.

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

heartlandretail_whoami Show the connected user

Show the Heartland Retail user behind the API token, and confirm the token works. Use it first when a call returns 401 or 403. Heartland Retail: GET /api/system/whoami.

heartlandretail_list_items List items

Search the store's items (products) by text or JSON filter, with cost, price and vendor ids. Heartland Retail: GET /api/items.

ParameterTypeDescription
filterstringOptional JSON object filter, for example {"active":true}. Sent as the _filter parameter.
pageintegerPage number (default 1).
per_pageintegerRecords per page.
querystringFull-text search over the indexed fields, for example a name or a SKU. Partial words match from the start.

heartlandretail_get_item Get item

Get one item by id: cost, price, financial class and primary vendor. Heartland Retail: GET /api/items/{item_id}.

ParameterTypeDescription
item_id *Record id, as returned by the list tools.

heartlandretail_list_inventory_values List inventory values

Show stock quantities and values, optionally grouped (for example by item_id or location_id) and filtered to one item. Heartland Retail: GET /api/inventory/values.

ParameterTypeDescription
grouparrayGroup by these fields, for example ["item_id", "location_id"].
item_idRecord id, as returned by the list tools.
pageintegerPage number (default 1).
per_pageintegerRecords per page.

heartlandretail_list_locations List locations

List the store's locations (stores, warehouses) with their ids. Heartland Retail: GET /api/locations.

ParameterTypeDescription
filterstringOptional JSON object filter, for example {"active":true}. Sent as the _filter parameter.
pageintegerPage number (default 1).
per_pageintegerRecords per page.
querystringFull-text search over the indexed fields, for example a name or a SKU. Partial words match from the start.

heartlandretail_list_customers List customers

Search customers by name, email or a JSON filter. Heartland Retail: GET /api/customers.

ParameterTypeDescription
filterstringOptional JSON object filter, for example {"active":true}. Sent as the _filter parameter.
pageintegerPage number (default 1).
per_pageintegerRecords per page.
querystringFull-text search over the indexed fields, for example a name or a SKU. Partial words match from the start.

heartlandretail_get_customer Get customer

Get one customer by id: name, email, default address ids, custom fields and loyalty points. Heartland Retail: GET /api/customers/{customer_id}.

ParameterTypeDescription
customer_id *Record id, as returned by the list tools.

heartlandretail_create_customer Create customer

Create a customer. Give a first name or a last name (or both). Returns the new customer id. Heartland Retail: POST /api/customers.

ParameterTypeDescription
emailstring
first_namestring
last_namestring

heartlandretail_update_customer Update customer

Change the name or email of one customer. Only the fields you give change. Heartland Retail: PUT /api/customers/{customer_id}.

ParameterTypeDescription
customer_id *Record id, as returned by the list tools.
emailstring
first_namestring
last_namestring

heartlandretail_list_sales_orders List sales orders

Search sales orders by text or JSON filter (for example a status). Shows customer, status, shipping and totals. Heartland Retail: GET /api/sales/orders.

ParameterTypeDescription
filterstringOptional JSON object filter, for example {"active":true}. Sent as the _filter parameter.
pageintegerPage number (default 1).
per_pageintegerRecords per page.
querystringFull-text search over the indexed fields, for example a name or a SKU. Partial words match from the start.

heartlandretail_get_sales_order Get sales order

Get one sales order by id. Heartland Retail: GET /api/sales/orders/{order_id}.

ParameterTypeDescription
order_id *Record id, as returned by the list tools.

heartlandretail_list_sales_order_lines List sales order lines

List the lines (items, quantities, prices) of one sales order. Heartland Retail: GET /api/sales/orders/{order_id}/lines.

ParameterTypeDescription
order_id *Record id, as returned by the list tools.
pageintegerPage number (default 1).
per_pageintegerRecords per page.

heartlandretail_list_sales_invoices List sales invoices

Search sales invoices by text or JSON filter. Heartland Retail: GET /api/sales/invoices.

ParameterTypeDescription
filterstringOptional JSON object filter, for example {"active":true}. Sent as the _filter parameter.
pageintegerPage number (default 1).
per_pageintegerRecords per page.
querystringFull-text search over the indexed fields, for example a name or a SKU. Partial words match from the start.

heartlandretail_list_sales_tickets List POS tickets

Search point-of-sale tickets (till sales) by text or JSON filter. Heartland Retail: GET /api/sales/tickets.

ParameterTypeDescription
filterstringOptional JSON object filter, for example {"active":true}. Sent as the _filter parameter.
pageintegerPage number (default 1).
per_pageintegerRecords per page.
querystringFull-text search over the indexed fields, for example a name or a SKU. Partial words match from the start.

heartlandretail_list_vendors List vendors

Search purchasing vendors (suppliers) by text or JSON filter. Heartland Retail: GET /api/purchasing/vendors.

ParameterTypeDescription
filterstringOptional JSON object filter, for example {"active":true}. Sent as the _filter parameter.
pageintegerPage number (default 1).
per_pageintegerRecords per page.
querystringFull-text search over the indexed fields, for example a name or a SKU. Partial words match from the start.

heartlandretail_get_gift_card Get gift card

Get one gift card by its card number: value and status. Heartland Retail: GET /api/gift_cards/{gift_card_number}.

ParameterTypeDescription
gift_card_number *stringThe gift card number.