Read Lightspeed X-Series products, stock, sales, customers, stock orders; one-call sales reports.
Maintain this server? Claim it
Call this server's tools from your browser. Nothing to install.
Requests go through mcptry because browsers can't call most MCP servers directly. Header values are sent to the server for that request only and are never stored or logged.
Tool list from our last check. Connect live to refresh it.
WRITE: create a new customer. Give at least a first name, last name or company name. Check search_customers first so you do not create a duplicate. POST /customers.
Last name.
First name.
Unique customer code (generated when omitted on create).
Customer group id (see list_customer_groups).
Country code such as US, CA, AU.
This tool isn't marked read-only, so it may change something on the server or in an account you connected.
WRITE: create a new customer. Give at least a first name, last name or company name. Check search_customers first so you do not create a duplicate. POST /customers.
| Argument | Type | Description |
|---|---|---|
| note | string | |
| string | ||
| phone | string | |
| mobile | string | |
| last_name | string | Last name. |
| first_name | string | First name. |
| company_name | string | |
| do_not_email | boolean | |
| customer_code | string | Unique customer code (generated when omitted on create). |
| date_of_birth | string | |
| physical_city | string | |
| enable_loyalty | boolean | |
| physical_state | string | |
| physical_suburb | string | |
| customer_group_id | string | Customer group id (see list_customer_groups). |
| physical_postcode | string | |
| physical_address_1 | string | |
| physical_address_2 | string | |
| physical_country_id | string | Country code such as US, CA, AU. |
| enable_promotional_sms | boolean |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"note": {
"type": "string",
"maxLength": 2000
},
"email": {
"type": "string",
"format": "email",
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
"maxLength": 255
},
"phone": {
"type": "string",
"maxLength": 60
},
"mobile": {
"type": "string",
"maxLength": 60
},
"last_name": {
"type": "string",
"maxLength": 255,
"description": "Last name."
},
"first_name": {
"type": "string",
"maxLength": 255,
"description": "First name."
},
"company_name": {
"type": "string",
"maxLength": 255
},
"do_not_email": {
"type": "boolean"
},
"customer_code": {
"type": "string",
"maxLength": 100,
"description": "Unique customer code (generated when omitted on create)."
},
"date_of_birth": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}"
},
"physical_city": {
"type": "string",
"maxLength": 255
},
"enable_loyalty": {
"type": "boolean"
},
"physical_state": {
"type": "string",
"maxLength": 255
},
"physical_suburb": {
"type": "string",
"maxLength": 255
},
"customer_group_id": {
"type": "string",
"maxLength": 64,
"description": "Customer group id (see list_customer_groups)."
},
"physical_postcode": {
"type": "string",
"maxLength": 30
},
"physical_address_1": {
"type": "string",
"maxLength": 255
},
"physical_address_2": {
"type": "string",
"maxLength": 255
},
"physical_country_id": {
"type": "string",
"maxLength": 10,
"description": "Country code such as US, CA, AU."
},
"enable_promotional_sms": {
"type": "boolean"
}
}
}One consignment (stock order, transfer, stocktake or return) by id. GET /consignments/{consignment_id}.
| Argument | Type | Description |
|---|---|---|
| consignment_id* | string | Consignment id (from list_consignments). |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"consignment_id"
],
"properties": {
"consignment_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,64}$",
"description": "Consignment id (from list_consignments)."
}
}
}One customer by id: contact details, addresses, customer group, balance, loyalty balance, year-to-date spend. GET /customers/{customer_id}.
| Argument | Type | Description |
|---|---|---|
| customer_id* | string | Customer id (from search_customers or list_customers). |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"customer_id"
],
"properties": {
"customer_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,64}$",
"description": "Customer id (from search_customers or list_customers)."
}
}
}Stock on hand per product per outlet: product_id, location_id (= outlet id), current_inventory_level, reorder threshold/amount, quantity_to_procure, average cost, total cost, supplier. Filter by outlet_ids, product_ids (or root_product_ids for variant families), supplier_ids; to_be_procured_only keeps products with a positive quantity_to_procure (the vendor's re-order suggestion, which accounts for open orders); for a plain below-reorder-point list, compare current_inventory_level with reorder_threshold yourself. Offset paging: pass next_offset to continue (null = last page). Read-only even though the vendor takes the filter as a POST body. POST /inventory_levels.
| Argument | Type | Description |
|---|---|---|
| size | integer | Records per page (default 100, max 500 here). |
| offset | integer | Offset for the next page: pass next_offset from the previous call (default 0). |
| sort_type | string | |
| outlet_ids | array | Only these outlets (the vendor calls them location_ids). |
| product_ids | array | Only these products. Not together with root_product_ids. |
| supplier_ids | array | |
| group_variants | boolean |
One outlet by id. GET /outlets/{outlet_id}.
| Argument | Type | Description |
|---|---|---|
| outlet_id* | string | Outlet id (from list_outlets). |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"outlet_id"
],
"properties": {
"outlet_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,64}$",
"description": "Outlet id (from list_outlets)."
}
}
}One product (variant) by id, with its prices, codes, suppliers and outlet taxes. GET /products/{product_id}.
| Argument | Type | Description |
|---|---|---|
| includes | array | Related records to include. 'families' is required together with brands, categories, suppliers, tags, variant_attributes or customizations. |
| product_id* | string | Product id (from list_products). |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"product_id"
],
"properties": {
"includes": {
"type": "array",
"items": {
"enum": [
"families",
"brands",
"categories",
"suppliers",
"tags",
"variant_attributes",
"customizations",
"composite_components"
],
"type": "string"
},
"maxItems": 8,
"description": "Related records to include. 'families' is required together with brands, categories, suppliers, tags, variant_attributes or customizations."
},
"product_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,64}$",
"description": "Product id (from list_products)."
}
}
}Payment totals by payment type for one register since it was opened (the end-of-day / cash-up view). GET /registers/{register_id}/payments_summary.
| Argument | Type | Description |
|---|---|---|
| register_id* | string | Register id (from list_registers). |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"register_id"
],
"properties": {
"register_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,64}$",
"description": "Register id (from list_registers)."
}
}
}The connected store: id, name, domain prefix, store URL, country, currency, time zone, tax-exclusive setting, loyalty and gift-card settings. Good first call (use the time zone to turn a local day into UTC for sales searches). GET /retailer.
No arguments.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {}
}One sale by id with its line items, payments, taxes and totals. GET /sales/{sale_id}.
| Argument | Type | Description |
|---|---|---|
| sale_id* | string | Sale id (from list_sales or search_sales). |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"sale_id"
],
"properties": {
"sale_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,64}$",
"description": "Sale id (from list_sales or search_sales)."
}
}
}Sales totals for one staff user, as the vendor computes them (no date filter; use sales_summary for a period). GET /users/{user_id}/sale_totals.
| Argument | Type | Description |
|---|---|---|
| user_id* | string | User id (from list_users). |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"user_id"
],
"properties": {
"user_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,64}$",
"description": "User id (from list_users)."
}
}
}List product brands (id, name). Paginate with next_after. GET /brands.
| Argument | Type | Description |
|---|---|---|
| after | integer | Cursor: only records with a version number greater than this. Omit for the first page; then pass next_after from the previous call. Stop when data is empty. |
| before | integer | Only records with a version number up to this (rarely needed). |
| deleted | boolean | true = include deleted records (default: active only). |
| page_size | integer | Records per page (the vendor default applies when omitted; 50-100 keeps replies short). |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"after": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Cursor: only records with a version number greater than this. Omit for the first page; then pass next_after from the previous call. Stop when data is empty."
},
"before": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Only records with a version number up to this (rarely needed)."
},
"deleted": {
"type": "boolean",
"description": "true = include deleted records (default: active only)."
},
"page_size": {
"type": "integer",
"maximum": 1000,
"minimum": 1,
"description": "Records per page (the vendor default applies when omitted; 50-100 keeps replies short)."
}
}
}The product lines of one consignment: product_id, SKU, ordered count, received quantity, cost. Paginate with next_after (stop when data is empty). GET /consignments/{consignment_id}/products.
| Argument | Type | Description |
|---|---|---|
| after | integer | Cursor: only records with a version number greater than this. Omit for the first page; then pass next_after from the previous call. Stop when data is empty. |
| before | integer | Only records with a version number up to this (rarely needed). |
| page_size | integer | Records per page (the vendor default applies when omitted; 50-100 keeps replies short). |
| consignment_id* | string | Consignment id. |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"consignment_id"
],
"properties": {
"after": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Cursor: only records with a version number greater than this. Omit for the first page; then pass next_after from the previous call. Stop when data is empty."
},
"before": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Only records with a version number up to this (rarely needed)."
},
"page_size": {
"type": "integer",
"maximum": 1000,
"minimum": 1,
"description": "Records per page (the vendor default applies when omitted; 50-100 keeps replies short)."
},
"consignment_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,64}$",
"description": "Consignment id."
}
}
}List consignments: supplier stock orders (type SUPPLIER), transfers between outlets (OUTLET), stocktakes (STOCKTAKE) and returns (RETURN), with status (OPEN, SENT, DISPATCHED, RECEIVED, STOCKTAKE_*, CLOSED, CANCELLED), outlet, supplier, due and received dates, totals. Paginate with next_after. GET /consignments.
| Argument | Type | Description |
|---|---|---|
| type | string | SUPPLIER = purchase / stock orders. |
| after | integer | Cursor: only records with a version number greater than this. Omit for the first page; then pass next_after from the previous call. Stop when data is empty. |
| before | integer | Only records with a version number up to this (rarely needed). |
| status | string | |
| outlet_id | string | Only consignments of this outlet. |
| page_size | integer | Records per page (the vendor default applies when omitted; 50-100 keeps replies short). |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"type": {
"enum": [
"SUPPLIER",
"OUTLET",
"STOCKTAKE",
"RETURN"
],
"type": "string",
"description": "SUPPLIER = purchase / stock orders."
},
"after": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Cursor: only records with a version number greater than this. Omit for the first page; then pass next_after from the previous call. Stop when data is empty."
},
"before": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Only records with a version number up to this (rarely needed)."
},
"status": {
"enum": [
"OPEN",
"SENT",
"DISPATCHED",
"RECEIVED",
"STOCKTAKE_IN_PROGRESS",
"STOCKTAKE_SCHEDULED",
"STOCKTAKE_IN_PROGRESS_PROCESSED",
"STOCKTAKE_COMPLETE",
"CLOSED",
"CANCELLED"
],
"type": "string"
},
"outlet_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,64}$",
"description": "Only consignments of this outlet."
},
"page_size": {
"type": "integer",
"maximum": 1000,
"minimum": 1,
"description": "Records per page (the vendor default applies when omitted; 50-100 keeps replies short)."
}
}
}List customer groups (id, name). Use the id as customer_group_id when creating or updating a customer. Paginate with next_after. GET /customer_groups.
| Argument | Type | Description |
|---|---|---|
| after | integer | Cursor: only records with a version number greater than this. Omit for the first page; then pass next_after from the previous call. Stop when data is empty. |
| before | integer | Only records with a version number up to this (rarely needed). |
| deleted | boolean | true = include deleted records (default: active only). |
| page_size | integer | Records per page (the vendor default applies when omitted; 50-100 keeps replies short). |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"after": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Cursor: only records with a version number greater than this. Omit for the first page; then pass next_after from the previous call. Stop when data is empty."
},
"before": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Only records with a version number up to this (rarely needed)."
},
"deleted": {
"type": "boolean",
"description": "true = include deleted records (default: active only)."
},
"page_size": {
"type": "integer",
"maximum": 1000,
"minimum": 1,
"description": "Records per page (the vendor default applies when omitted; 50-100 keeps replies short)."
}
}
}List customers in version order: id, customer_code, name, email, phone, balance, loyalty_balance, year_to_date, customer group. To find one by name or email use search_customers. Paginate with next_after (stop when data is empty). GET /customers.
| Argument | Type | Description |
|---|---|---|
| after | integer | Cursor: only records with a version number greater than this. Omit for the first page; then pass next_after from the previous call. Stop when data is empty. |
| before | integer | Only records with a version number up to this (rarely needed). |
| deleted | boolean | true = include deleted records (default: active only). |
| page_size | integer | Records per page (the vendor default applies when omitted; 50-100 keeps replies short). |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"after": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Cursor: only records with a version number greater than this. Omit for the first page; then pass next_after from the previous call. Stop when data is empty."
},
"before": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Only records with a version number up to this (rarely needed)."
},
"deleted": {
"type": "boolean",
"description": "true = include deleted records (default: active only)."
},
"page_size": {
"type": "integer",
"maximum": 1000,
"minimum": 1,
"description": "Records per page (the vendor default applies when omitted; 50-100 keeps replies short)."
}
}
}List the store's outlets (locations): id, name, address, currency, time zone, default tax. Use the outlet id to filter sales, stock and stock orders. Paginate with next_after. GET /outlets.
| Argument | Type | Description |
|---|---|---|
| after | integer | Cursor: only records with a version number greater than this. Omit for the first page; then pass next_after from the previous call. Stop when data is empty. |
| before | integer | Only records with a version number up to this (rarely needed). |
| deleted | boolean | true = include deleted records (default: active only). |
| page_size | integer | Records per page (the vendor default applies when omitted; 50-100 keeps replies short). |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"after": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Cursor: only records with a version number greater than this. Omit for the first page; then pass next_after from the previous call. Stop when data is empty."
},
"before": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Only records with a version number up to this (rarely needed)."
},
"deleted": {
"type": "boolean",
"description": "true = include deleted records (default: active only)."
},
"page_size": {
"type": "integer",
"maximum": 1000,
"minimum": 1,
"description": "Records per page (the vendor default applies when omitted; 50-100 keeps replies short)."
}
}
}List products (variants) in the catalog: id, family_id, sku, variant_name, prices (price_excluding_tax / price_including_tax), active flags, codes, suppliers, version. The product NAME lives on the product family: add includes=["families"] to get it. Paginate with next_after (stop when data is empty). With sku set, only that SKU is looked up and the other filters are ignored. For text/brand/supplier filters use search_products; for stock use get_inventory_levels. GET /products.
| Argument | Type | Description |
|---|---|---|
| sku | string | Exact SKU (other filters are ignored when set). |
| after | integer | Cursor: only records with a version number greater than this. Omit for the first page; then pass next_after from the previous call. Stop when data is empty. |
| includes | array | Related records to include. 'families' is required together with brands, categories, suppliers, tags, variant_attributes or customizations. |
| page_size | integer | Records per page (the vendor default applies when omitted; 50-100 keeps replies short). |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"sku": {
"type": "string",
"maxLength": 100,
"description": "Exact SKU (other filters are ignored when set)."
},
"after": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Cursor: only records with a version number greater than this. Omit for the first page; then pass next_after from the previous call. Stop when data is empty."
},
"includes": {
"type": "array",
"items": {
"enum": [
"families",
"brands",
"categories",
"suppliers",
"tags",
"variant_attributes",
"customizations",
"composite_components"
],
"type": "string"
},
"maxItems": 8,
"description": "Related records to include. 'families' is required together with brands, categories, suppliers, tags, variant_attributes or customizations."
},
"page_size": {
"type": "integer",
"maximum": 1000,
"minimum": 1,
"description": "Records per page (the vendor default applies when omitted; 50-100 keeps replies short)."
}
}
}List registers (tills): id, name, outlet_id, is_open, open/close times and invoice numbering. Paginate with next_after. GET /registers.
| Argument | Type | Description |
|---|---|---|
| after | integer | Cursor: only records with a version number greater than this. Omit for the first page; then pass next_after from the previous call. Stop when data is empty. |
| before | integer | Only records with a version number up to this (rarely needed). |
| deleted | boolean | true = include deleted records (default: active only). |
| page_size | integer | Records per page (the vendor default applies when omitted; 50-100 keeps replies short). |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"after": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Cursor: only records with a version number greater than this. Omit for the first page; then pass next_after from the previous call. Stop when data is empty."
},
"before": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Only records with a version number up to this (rarely needed)."
},
"deleted": {
"type": "boolean",
"description": "true = include deleted records (default: active only)."
},
"page_size": {
"type": "integer",
"maximum": 1000,
"minimum": 1,
"description": "Records per page (the vendor default applies when omitted; 50-100 keeps replies short)."
}
}
}Sales in version order, oldest changes first: the way to sync everything that changed. It has NO date filter: for a period use search_sales or sales_summary. Each sale: id, date, invoice_number, state, customer_id, source (outlet, register, user), payments, line_items, totals. Paginate with next_after (stop when data is empty). GET /sales.
| Argument | Type | Description |
|---|---|---|
| after | integer | Cursor: only records with a version number greater than this. Omit for the first page; then pass next_after from the previous call. Stop when data is empty. |
| before | integer | Only records with a version number up to this (rarely needed). |
| page_size | integer | Records per page (the vendor default applies when omitted; 50-100 keeps replies short). |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"after": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Cursor: only records with a version number greater than this. Omit for the first page; then pass next_after from the previous call. Stop when data is empty."
},
"before": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Only records with a version number up to this (rarely needed)."
},
"page_size": {
"type": "integer",
"maximum": 1000,
"minimum": 1,
"description": "Records per page (the vendor default applies when omitted; 50-100 keeps replies short)."
}
}
}List suppliers: id, name, default markup and contact details. Paginate with next_after. GET /suppliers.
| Argument | Type | Description |
|---|---|---|
| after | integer | Cursor: only records with a version number greater than this. Omit for the first page; then pass next_after from the previous call. Stop when data is empty. |
| before | integer | Only records with a version number up to this (rarely needed). |
| deleted | boolean | true = include deleted records (default: active only). |
| page_size | integer | Records per page (the vendor default applies when omitted; 50-100 keeps replies short). |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"after": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Cursor: only records with a version number greater than this. Omit for the first page; then pass next_after from the previous call. Stop when data is empty."
},
"before": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Only records with a version number up to this (rarely needed)."
},
"deleted": {
"type": "boolean",
"description": "true = include deleted records (default: active only)."
},
"page_size": {
"type": "integer",
"maximum": 1000,
"minimum": 1,
"description": "Records per page (the vendor default applies when omitted; 50-100 keeps replies short)."
}
}
}List product tags (id, name). Paginate with next_after. GET /tags.
| Argument | Type | Description |
|---|---|---|
| after | integer | Cursor: only records with a version number greater than this. Omit for the first page; then pass next_after from the previous call. Stop when data is empty. |
| before | integer | Only records with a version number up to this (rarely needed). |
| deleted | boolean | true = include deleted records (default: active only). |
| page_size | integer | Records per page (the vendor default applies when omitted; 50-100 keeps replies short). |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"after": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Cursor: only records with a version number greater than this. Omit for the first page; then pass next_after from the previous call. Stop when data is empty."
},
"before": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Only records with a version number up to this (rarely needed)."
},
"deleted": {
"type": "boolean",
"description": "true = include deleted records (default: active only)."
},
"page_size": {
"type": "integer",
"maximum": 1000,
"minimum": 1,
"description": "Records per page (the vendor default applies when omitted; 50-100 keeps replies short)."
}
}
}List tax groups and their rates (id, name, is_default, rates). The vendor returns the whole list in one reply (no cursor). GET /taxes.
No arguments.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {}
}List the store's users (staff): id, username, display name, email, account type (cashier, manager, admin), enabled flag, restricted outlets. Paginate with next_after. GET /users.
| Argument | Type | Description |
|---|---|---|
| after | integer | Cursor: only records with a version number greater than this. Omit for the first page; then pass next_after from the previous call. Stop when data is empty. |
| before | integer | Only records with a version number up to this (rarely needed). |
| page_size | integer | Records per page (the vendor default applies when omitted; 50-100 keeps replies short). |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"after": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Cursor: only records with a version number greater than this. Omit for the first page; then pass next_after from the previous call. Stop when data is empty."
},
"before": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Only records with a version number up to this (rarely needed)."
},
"page_size": {
"type": "integer",
"maximum": 1000,
"minimum": 1,
"description": "Records per page (the vendor default applies when omitted; 50-100 keeps replies short)."
}
}
}Totals for a period computed here from up to max_pages x page_size sales, so a report needs ONE tool call instead of dozens: sale count and net / tax / gross (tax-inclusive) totals, plus breakdowns by state, UTC day, outlet and payment type name, and the top products by quantity. By default only closed sales are counted (states containing 'closed'); set counted_states to change that. Dates are UTC (convert local days with the retailer's time zone). If the reply says truncated, call again with offset = next_offset and add the figures up. Uses GET /search?type=sales.
| Argument | Type | Description |
|---|---|---|
| state | string | Sale state. On-account and layby sales are state closed (they differ by attributes). |
| offset | integer | Offset for the next page: pass next_offset from the previous call (default 0). |
| date_to | string | Sales up to this UTC time. YYYY-MM-DD means the END of that UTC day (23:59:59Z). |
| user_id | string | Only sales by this staff user. |
| date_from | string | Sales from this UTC time. YYYY-MM-DD means the start of that UTC day; or 2026-10-01T00:00:00Z. Convert local days to UTC with the retailer's time zone. |
| max_pages | integer | Pages of page_size sales to read (default 5, max 20). |
Find customers by email, first name, last name, company name, phone, mobile or customer code. Uses offset paging: pass next_offset to continue (null = last page). GET /search?type=customers.
| Argument | Type | Description |
|---|---|---|
| string | ||
| phone | string | |
| mobile | string | |
| offset | integer | Offset for the next page: pass next_offset from the previous call (default 0). |
| deleted | boolean | true = include deleted records (default: active only). |
| last_name | string | |
| page_size | integer | Records per page (max 1000). |
| first_name | string | |
| company_name | string | |
| customer_code | string |
Filter products by SKU, brand, supplier, tag, product type or variant parent. Uses offset paging: pass next_offset to continue (null = last page). GET /search?type=products.
| Argument | Type | Description |
|---|---|---|
| sku | string | SKU filter (sent in lowercase, as the vendor search requires). |
| offset | integer | Offset for the next page: pass next_offset from the previous call (default 0). |
| tag_id | string | Tag id. |
| deleted | boolean | true = include deleted records (default: active only). |
| brand_id | string | Brand id. |
| page_size | integer | Records per page (max 1000). |
| supplier_id | string | Supplier id. |
| product_type_id | string | Product type id. |
| variant_parent_id | string | Only the variants of this parent product. |
Find sales by date range (UTC), state, outlet, register, user, customer, payment type, product or invoice number. Uses offset paging: pass next_offset to continue (null = last page). Replies can be large: for totals over a period use sales_summary instead of paging through this. GET /search?type=sales.
| Argument | Type | Description |
|---|---|---|
| state | string | Sale state. On-account and layby sales are state closed (they differ by attributes). |
| offset | integer | Offset for the next page: pass next_offset from the previous call (default 0). |
| date_to | string | Sales up to this UTC time. YYYY-MM-DD means the END of that UTC day (23:59:59Z). |
| user_id | string | Only sales by this staff user. |
| date_from | string | Sales from this UTC time. YYYY-MM-DD means the start of that UTC day; or 2026-10-01T00:00:00Z. Convert local days to UTC with the retailer's time zone. |
| outlet_id | string | Only sales at this outlet. |
| page_size | integer | Records per page (max 1000). |
| product_id |
WRITE: set the stock on hand (current_amount) and/or the reorder point and reorder amount of ONE product at ONE outlet. current_amount is the NEW TOTAL on hand, not a change: it overwrites the count, so sales made since you last read it are lost from the count. Read get_inventory_levels first and confirm the number with the user. Other outlets and all other product fields stay as they are. PATCH /products/{product_id} (outlet_inventories).
| Argument | Type | Description |
|---|---|---|
| outlet_id* | string | Outlet id (from list_outlets). |
| product_id* | string | Product id (from list_products). |
| reorder_point | number | Re-order when stock falls to this level. |
| current_amount | number | New stock on hand at this outlet (the total, not a delta). |
| reorder_amount | number | How many to re-order. |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"product_id",
"outlet_id"
],
"properties": {
"outlet_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,64}$",
"description": "Outlet id (from list_outlets)."
},
"product_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,64}$",
"description": "Product id (from list_products)."
},
"reorder_point": {
"type": "number",
"maximum": 1000000,
"minimum": 0,
"description": "Re-order when stock falls to this level."
},
"current_amount": {
"type": "number",
"maximum": 1000000,
"minimum": 0,
"description": "New stock on hand at this outlet (the total, not a delta)."
},
"reorder_amount": {
"type": "number",
"maximum": 1000000,
"minimum": 0,
"description": "How many to re-order."
}
}
}WRITE: change fields of an existing customer. Only the fields you pass change: the tool first reads the customer and sends the vendor its full record with your changes applied (the vendor's update is a full PUT). Cannot delete a customer or change balances. Lightspeed offers no partial update for customers, so a change made by someone else in the moments between the tool's read and its write can be overwritten. PUT /customers/{customer_id}.
| Argument | Type | Description |
|---|---|---|
| note | string | |
| string | ||
| phone | string | |
| mobile | string | |
| last_name | string | Last name. |
| first_name | string | First name. |
| customer_id* | string | Customer id. |
| company_name | string | |
| do_not_email | boolean |
WRITE: set the selling price of one product (variant). Pass price_excluding_tax or price_including_tax as a decimal string such as "24.99" (set one; the store's tax setting decides which the till uses). Nothing else on the product changes. Read the product first and confirm the new price with the user. PATCH /products/{product_id}.
| Argument | Type | Description |
|---|---|---|
| product_id* | string | Product id (from list_products). |
| loyalty_amount | string | New loyalty amount. |
| price_excluding_tax | string | New price before tax, e.g. "24.99". |
| price_including_tax | string | New price including tax, e.g. "29.99". |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"product_id"
],
"properties": {
"product_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,64}$",
"description": "Product id (from list_products)."
},
"loyalty_amount": {
"type": "string",
"pattern": "^\\d{1,12}(\\.\\d{1,4})?$",
"description": "New loyalty amount."
},
"price_excluding_tax": {
"type": "string",
"pattern": "^\\d{1,12}(\\.\\d{1,4})?$",
"description": "New price before tax, e.g. \"24.99\"."
},
"price_including_tax": {
"type": "string",
"pattern": "^\\d{1,12}(\\.\\d{1,4})?$",
"description": "New price including tax, e.g. \"29.99\"."
}
}
}| Aggregate variant families when filtering by root_product_ids. |
| sort_direction | string |
| include_inactive | boolean | true = include inactive products. |
| root_product_ids | array | Only these variant families (use with group_variants). Not together with product_ids. |
| include_composites | boolean |
| to_be_procured_only | boolean | true = only products with a positive quantity_to_procure (not the same as below the reorder point). |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"size": {
"type": "integer",
"maximum": 500,
"minimum": 1,
"description": "Records per page (default 100, max 500 here)."
},
"offset": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Offset for the next page: pass next_offset from the previous call (default 0)."
},
"sort_type": {
"enum": [
"total_count",
"total_cost",
"average_cost",
"reorder_point",
"reorder_amount",
"product_name",
"created_at"
],
"type": "string"
},
"outlet_ids": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,64}$",
"description": "Outlet id."
},
"maxItems": 100,
"description": "Only these outlets (the vendor calls them location_ids)."
},
"product_ids": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,64}$",
"description": "Product id."
},
"maxItems": 100,
"description": "Only these products. Not together with root_product_ids."
},
"supplier_ids": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,64}$",
"description": "Supplier id."
},
"maxItems": 100
},
"group_variants": {
"type": "boolean",
"description": "Aggregate variant families when filtering by root_product_ids."
},
"sort_direction": {
"enum": [
"asc",
"desc"
],
"type": "string"
},
"include_inactive": {
"type": "boolean",
"description": "true = include inactive products."
},
"root_product_ids": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,64}$",
"description": "Root product id."
},
"maxItems": 100,
"description": "Only these variant families (use with group_variants). Not together with product_ids."
},
"include_composites": {
"type": "boolean"
},
"to_be_procured_only": {
"type": "boolean",
"description": "true = only products with a positive quantity_to_procure (not the same as below the reorder point)."
}
}
}| outlet_id |
| string |
| Only sales at this outlet. |
| page_size | integer | Sales per page (default 1000). |
| product_id | string | Only sales containing this product. |
| customer_id | string | Only sales to this customer. |
| register_id | string | Only sales on this register. |
| counted_states | array | Sale states that count towards the totals (exact, case-insensitive). Default: every state containing 'closed'. |
| invoice_number | string |
| payment_type_id | string | Only sales with this payment type (the payment type's config_id, shown as payments[].type.config_id in a sale). |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"state": {
"enum": [
"parked",
"pending",
"voided",
"closed"
],
"type": "string",
"description": "Sale state. On-account and layby sales are state closed (they differ by attributes)."
},
"offset": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Offset for the next page: pass next_offset from the previous call (default 0)."
},
"date_to": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}:\\d{2}Z)?$",
"description": "Sales up to this UTC time. YYYY-MM-DD means the END of that UTC day (23:59:59Z)."
},
"user_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,64}$",
"description": "Only sales by this staff user."
},
"date_from": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}:\\d{2}Z)?$",
"description": "Sales from this UTC time. YYYY-MM-DD means the start of that UTC day; or 2026-10-01T00:00:00Z. Convert local days to UTC with the retailer's time zone."
},
"max_pages": {
"type": "integer",
"maximum": 20,
"minimum": 1,
"description": "Pages of page_size sales to read (default 5, max 20)."
},
"outlet_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,64}$",
"description": "Only sales at this outlet."
},
"page_size": {
"type": "integer",
"maximum": 1000,
"minimum": 100,
"description": "Sales per page (default 1000)."
},
"product_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,64}$",
"description": "Only sales containing this product."
},
"customer_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,64}$",
"description": "Only sales to this customer."
},
"register_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,64}$",
"description": "Only sales on this register."
},
"counted_states": {
"type": "array",
"items": {
"type": "string",
"maxLength": 40
},
"maxItems": 10,
"description": "Sale states that count towards the totals (exact, case-insensitive). Default: every state containing 'closed'."
},
"invoice_number": {
"type": "string",
"maxLength": 60
},
"payment_type_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,64}$",
"description": "Only sales with this payment type (the payment type's config_id, shown as payments[].type.config_id in a sale)."
}
}
}{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"email": {
"type": "string",
"maxLength": 255
},
"phone": {
"type": "string",
"maxLength": 60
},
"mobile": {
"type": "string",
"maxLength": 60
},
"offset": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Offset for the next page: pass next_offset from the previous call (default 0)."
},
"deleted": {
"type": "boolean",
"description": "true = include deleted records (default: active only)."
},
"last_name": {
"type": "string",
"maxLength": 255
},
"page_size": {
"type": "integer",
"maximum": 1000,
"minimum": 1,
"description": "Records per page (max 1000)."
},
"first_name": {
"type": "string",
"maxLength": 255
},
"company_name": {
"type": "string",
"maxLength": 255
},
"customer_code": {
"type": "string",
"maxLength": 100
}
}
}{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"sku": {
"type": "string",
"maxLength": 100,
"description": "SKU filter (sent in lowercase, as the vendor search requires)."
},
"offset": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Offset for the next page: pass next_offset from the previous call (default 0)."
},
"tag_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,64}$",
"description": "Tag id."
},
"deleted": {
"type": "boolean",
"description": "true = include deleted records (default: active only)."
},
"brand_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,64}$",
"description": "Brand id."
},
"page_size": {
"type": "integer",
"maximum": 1000,
"minimum": 1,
"description": "Records per page (max 1000)."
},
"supplier_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,64}$",
"description": "Supplier id."
},
"product_type_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,64}$",
"description": "Product type id."
},
"variant_parent_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,64}$",
"description": "Only the variants of this parent product."
}
}
}| string |
| Only sales containing this product. |
| customer_id | string | Only sales to this customer. |
| register_id | string | Only sales on this register. |
| invoice_number | string |
| payment_type_id | string | Only sales with this payment type (the payment type's config_id, shown as payments[].type.config_id in a sale). |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"state": {
"enum": [
"parked",
"pending",
"voided",
"closed"
],
"type": "string",
"description": "Sale state. On-account and layby sales are state closed (they differ by attributes)."
},
"offset": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Offset for the next page: pass next_offset from the previous call (default 0)."
},
"date_to": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}:\\d{2}Z)?$",
"description": "Sales up to this UTC time. YYYY-MM-DD means the END of that UTC day (23:59:59Z)."
},
"user_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,64}$",
"description": "Only sales by this staff user."
},
"date_from": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}:\\d{2}Z)?$",
"description": "Sales from this UTC time. YYYY-MM-DD means the start of that UTC day; or 2026-10-01T00:00:00Z. Convert local days to UTC with the retailer's time zone."
},
"outlet_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,64}$",
"description": "Only sales at this outlet."
},
"page_size": {
"type": "integer",
"maximum": 1000,
"minimum": 1,
"description": "Records per page (max 1000)."
},
"product_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,64}$",
"description": "Only sales containing this product."
},
"customer_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,64}$",
"description": "Only sales to this customer."
},
"register_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,64}$",
"description": "Only sales on this register."
},
"invoice_number": {
"type": "string",
"maxLength": 60
},
"payment_type_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,64}$",
"description": "Only sales with this payment type (the payment type's config_id, shown as payments[].type.config_id in a sale)."
}
}
}| customer_code | string | Unique customer code (generated when omitted on create). |
| date_of_birth | string |
| physical_city | string |
| enable_loyalty | boolean |
| physical_state | string |
| physical_suburb | string |
| customer_group_id | string | Customer group id (see list_customer_groups). |
| physical_postcode | string |
| physical_address_1 | string |
| physical_address_2 | string |
| physical_country_id | string | Country code such as US, CA, AU. |
| enable_promotional_sms | boolean |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"customer_id"
],
"properties": {
"note": {
"type": "string",
"maxLength": 2000
},
"email": {
"type": "string",
"format": "email",
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
"maxLength": 255
},
"phone": {
"type": "string",
"maxLength": 60
},
"mobile": {
"type": "string",
"maxLength": 60
},
"last_name": {
"type": "string",
"maxLength": 255,
"description": "Last name."
},
"first_name": {
"type": "string",
"maxLength": 255,
"description": "First name."
},
"customer_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,64}$",
"description": "Customer id."
},
"company_name": {
"type": "string",
"maxLength": 255
},
"do_not_email": {
"type": "boolean"
},
"customer_code": {
"type": "string",
"maxLength": 100,
"description": "Unique customer code (generated when omitted on create)."
},
"date_of_birth": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}"
},
"physical_city": {
"type": "string",
"maxLength": 255
},
"enable_loyalty": {
"type": "boolean"
},
"physical_state": {
"type": "string",
"maxLength": 255
},
"physical_suburb": {
"type": "string",
"maxLength": 255
},
"customer_group_id": {
"type": "string",
"maxLength": 64,
"description": "Customer group id (see list_customer_groups)."
},
"physical_postcode": {
"type": "string",
"maxLength": 30
},
"physical_address_1": {
"type": "string",
"maxLength": 255
},
"physical_address_2": {
"type": "string",
"maxLength": 255
},
"physical_country_id": {
"type": "string",
"maxLength": 10,
"description": "Country code such as US, CA, AU."
},
"enable_promotional_sms": {
"type": "boolean"
}
}
}