Heartland Retail MCP by usefulapi
v1.6.1Read 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.
| Parameter | Type | Description |
|---|---|---|
filter | string | Optional JSON object filter, for example {"active":true}. Sent as the _filter parameter. |
page | integer | Page number (default 1). |
per_page | integer | Records per page. |
query | string | Full-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}.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
group | array | Group by these fields, for example ["item_id", "location_id"]. |
item_id | Record id, as returned by the list tools. | |
page | integer | Page number (default 1). |
per_page | integer | Records per page. |
heartlandretail_list_locations List locations
List the store's locations (stores, warehouses) with their ids. Heartland Retail: GET /api/locations.
| Parameter | Type | Description |
|---|---|---|
filter | string | Optional JSON object filter, for example {"active":true}. Sent as the _filter parameter. |
page | integer | Page number (default 1). |
per_page | integer | Records per page. |
query | string | Full-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.
| Parameter | Type | Description |
|---|---|---|
filter | string | Optional JSON object filter, for example {"active":true}. Sent as the _filter parameter. |
page | integer | Page number (default 1). |
per_page | integer | Records per page. |
query | string | Full-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}.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
email | string | |
first_name | string | |
last_name | string |
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}.
| Parameter | Type | Description |
|---|---|---|
customer_id * | Record id, as returned by the list tools. | |
email | string | |
first_name | string | |
last_name | string |
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.
| Parameter | Type | Description |
|---|---|---|
filter | string | Optional JSON object filter, for example {"active":true}. Sent as the _filter parameter. |
page | integer | Page number (default 1). |
per_page | integer | Records per page. |
query | string | Full-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}.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
order_id * | Record id, as returned by the list tools. | |
page | integer | Page number (default 1). |
per_page | integer | Records per page. |
heartlandretail_list_sales_invoices List sales invoices
Search sales invoices by text or JSON filter. Heartland Retail: GET /api/sales/invoices.
| Parameter | Type | Description |
|---|---|---|
filter | string | Optional JSON object filter, for example {"active":true}. Sent as the _filter parameter. |
page | integer | Page number (default 1). |
per_page | integer | Records per page. |
query | string | Full-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.
| Parameter | Type | Description |
|---|---|---|
filter | string | Optional JSON object filter, for example {"active":true}. Sent as the _filter parameter. |
page | integer | Page number (default 1). |
per_page | integer | Records per page. |
query | string | Full-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.
| Parameter | Type | Description |
|---|---|---|
filter | string | Optional JSON object filter, for example {"active":true}. Sent as the _filter parameter. |
page | integer | Page number (default 1). |
per_page | integer | Records per page. |
query | string | Full-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}.
| Parameter | Type | Description |
|---|---|---|
gift_card_number * | string | The gift card number. |