PHP Point of Sale MCP by usefulapi
v1.24.1Read PHP Point of Sale items, sales, customers and 138 reports; manage customers, items, expenses.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
phppos_list_locations List locations
List the store's locations (shops/warehouses) with name, address, phone, email, time zone and default tax rates, plus each location's registers (id and name). Use the location ids to filter sales, expenses, customers and reports. Payment-processor credentials and device settings are never returned. GET /locations.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Rows per page, 1-100 (default 20). |
offset | integer | Rows to skip (default 0). Pass the previous reply's next_offset (paging.next_offset for a report). |
search | string | Free-text search. |
phppos_list_items List items
List or search inventory items with name, item number, category, supplier, prices and reorder level. Search by text, or by one field (name, item_number, product_id, supplier, tag_name...). GET /items.
| Parameter | Type | Description |
|---|---|---|
category_id | integer | Only items in this category id - see phppos_list_categories. |
limit | integer | Rows per page, 1-1000 (default 20). |
offset | integer | Rows to skip (default 0). Pass the previous reply's next_offset (paging.next_offset for a report). |
search | string | Free-text search. |
search_field | string | Limit the search to one field. |
sort_col | string | Column to sort by (a field name of the rows). |
sort_dir | string | Sort direction. |
phppos_get_item Get item
One inventory item by id: prices, tax settings, category, supplier, tags, attributes, variations, tier pricing and per-location settings. GET /items/{id}.
| Parameter | Type | Description |
|---|---|---|
item_id * | integer | PHP Point of Sale item id (find it with phppos_list_items). |
phppos_list_categories List categories
List item categories with their ids. Use the ids to filter items or to file a new item. GET /categories.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Rows per page, 1-100 (default 20). |
offset | integer | Rows to skip (default 0). Pass the previous reply's next_offset (paging.next_offset for a report). |
search | string | Free-text search. |
phppos_list_item_kits List item kits
List item kits (bundles of items sold together) with their prices. GET /item_kits.
| Parameter | Type | Description |
|---|---|---|
category_id | integer | Only kits in this category id. |
limit | integer | Rows per page, 1-100 (default 20). |
offset | integer | Rows to skip (default 0). Pass the previous reply's next_offset (paging.next_offset for a report). |
search | string | Free-text search. |
phppos_list_sales List sales
List or search completed sales, by date range, customer (id or email) or location. verbosity: minimal (headline fields), medium (adds customer, totals, profit, location - the default here) or full (every line item, payment and tax). Suspended sales (layaways, estimates) are fetched with suspended_type. GET /sales.
| Parameter | Type | Description |
|---|---|---|
customer_id | integer | Only this customer's sales. |
email_address | string | Look the customer up by email address and return their sales. |
end_date | string | Only sales on or before this date or date-time. |
limit | integer | Rows per page, 1-1000 (default 10). |
location_id | integer | Only sales at this location id - see phppos_list_locations. |
offset | integer | Rows to skip (default 0). Pass the previous reply's next_offset (paging.next_offset for a report). |
start_date | string | Only sales on or after this date or date-time (yyyy-mm-dd or yyyy-mm-dd hh:mm:ss). |
suspended_type | string | Fetch suspended sales instead of completed ones: a comma-separated list of layaway, estimate or a sale type name. |
verbosity | string | minimal, medium (default) or full. |
phppos_get_sale Get sale
One sale by id with line items, payments, taxes, customer and employee (verbosity full by default). GET /sales/{id}.
| Parameter | Type | Description |
|---|---|---|
sale_id * | integer | PHP Point of Sale sale id (the number on the receipt; find it with phppos_list_sales). |
verbosity | string | minimal, medium or full (default). |
phppos_list_receivings List receivings
List receivings (stock received from suppliers, purchase orders, transfers) with supplier, totals and items, by date range. GET /receivings.
| Parameter | Type | Description |
|---|---|---|
end_date | string | Only receivings on or before this date or date-time. |
limit | integer | Rows per page, 1-1000 (default 10). |
offset | integer | Rows to skip (default 0). Pass the previous reply's next_offset (paging.next_offset for a report). |
start_date | string | Only receivings on or after this date or date-time. |
phppos_get_receiving Get receiving
One receiving by id: supplier, items, quantities, costs and payments. GET /receivings/{id}.
| Parameter | Type | Description |
|---|---|---|
receiving_id * | integer | Receiving id (find it with phppos_list_receivings). |
phppos_list_customers List customers
List or search customers with contact details, tier, store-account balance, credit limit and loyalty points. Search by text or by one field (email, phone_number, first_name, last_name, account_number). GET /customers.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Rows per page, 1-100 (default 20). |
location_id | integer | Only customers at this location id. |
offset | integer | Rows to skip (default 0). Pass the previous reply's next_offset (paging.next_offset for a report). |
search | string | Free-text search. |
search_field | string | Limit the search to one field. |
sort_col | string | Column to sort by (a field name of the rows). |
sort_dir | string | Sort direction. |
phppos_get_customer Get customer
One customer by person id: contact details, tier, tax settings, balance, credit limit, points, notes and custom fields. GET /customers/{person_id}.
| Parameter | Type | Description |
|---|---|---|
person_id * | integer | Customer person id (find it with phppos_list_customers). |
phppos_list_suppliers List suppliers
List or search suppliers with contact details, company, account number and balance. GET /suppliers.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Rows per page, 1-100 (default 20). |
offset | integer | Rows to skip (default 0). Pass the previous reply's next_offset (paging.next_offset for a report). |
search | string | Free-text search. |
search_field | string | Limit the search to one field. |
sort_col | string | Column to sort by (a field name of the rows). |
sort_dir | string | Sort direction. |
phppos_get_supplier Get supplier
One supplier by person id. GET /suppliers/{person_id}.
| Parameter | Type | Description |
|---|---|---|
person_id * | integer | Supplier person id (find it with phppos_list_suppliers). |
phppos_list_employees List employees
List employees with name, contact details, username, hire date, manager, commission and pay rate settings and assigned locations. Passwords and the permission maps are never returned. GET /employees.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Rows per page, 1-100 (default 20). |
location_id | integer | Only employees at this location id. |
offset | integer | Rows to skip (default 0). Pass the previous reply's next_offset (paging.next_offset for a report). |
search | string | Free-text search. |
phppos_list_invoices List invoices
List customer invoices (money customers owe) or supplier invoices (money the store owes) with date, due date, status and amount. GET /invoices/customer or /invoices/supplier.
| Parameter | Type | Description |
|---|---|---|
type * | string | customer = invoices to customers; supplier = invoices from suppliers. |
limit | integer | Rows per page, 1-100 (default 20). |
offset | integer | Rows to skip (default 0). Pass the previous reply's next_offset (paging.next_offset for a report). |
search | string | Free-text search. |
sort_col | string | Column to sort by (a field name of the rows). |
sort_dir | string | Sort direction. |
phppos_list_expenses List expenses
List recorded expenses with type, description, date, amount, tax, payment type, category and location. GET /expenses.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Rows per page, 1-100 (default 20). |
location_id | integer | Only expenses at this location id. |
offset | integer | Rows to skip (default 0). Pass the previous reply's next_offset (paging.next_offset for a report). |
search | string | Free-text search. |
sort_col | string | Column to sort by (a field name of the rows). |
sort_dir | string | Sort direction. |
phppos_list_gift_cards List gift cards
List gift cards with number, description, remaining value, customer and whether inactive. GET /giftcards.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Rows per page, 1-100 (default 20). |
offset | integer | Rows to skip (default 0). Pass the previous reply's next_offset (paging.next_offset for a report). |
search | string | Free-text search. |
phppos_get_gift_card Get gift card
One gift card by its card number (or id): remaining value, customer and status. GET /giftcards/{giftcard_number}.
| Parameter | Type | Description |
|---|---|---|
giftcard_number * | string | Gift card number or id. |
phppos_list_appointments List appointments
List appointments (bookings) with customer, employee, service, start and end time, optionally within a time window. GET /appointments.
| Parameter | Type | Description |
|---|---|---|
end_time | string | Only appointments ending on or before this date or date-time. |
limit | integer | Rows per page, 1-100 (default 20). |
offset | integer | Rows to skip (default 0). Pass the previous reply's next_offset (paging.next_offset for a report). |
search | string | Free-text search. |
start_time | string | Only appointments starting on or after this date or date-time. |
phppos_list_reports List reports
The catalog of the store's reports (138 of them: sales summaries, top sellers, inventory low/aging/summary, profit and loss, taxes, payments, employee, customer, supplier and store-account reports) with the inputs each accepts. Without `search` only the report keys are returned; with `search` (for example 'inventory' or 'profit') the matching reports are returned with their inputs. GET /reports.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Matching reports per page with search, 1-100 (default 10; each one carries its inputs). Ignored without search. |
offset | integer | Rows to skip (default 0). Pass the previous reply's next_offset (paging.next_offset for a report). |
search | string | Only reports whose key, description or inputs contain this text. |
phppos_run_report Run report
Run one of the store's reports and return it (title, summary, detail rows); `paging.next_offset` is set when more detail rows remain. Report keys and their inputs come from phppos_list_reports (for example summary_sales, top_sellers, inventory_low, summary_profit_and_loss, summary_taxes, closeout). Typical inputs go in `params`: start_date, end_date, sale_type, location_ids (array), category_id, supplier_id, customer_id, employee_id. A scoped key needs the Reports module plus that report's view permission. GET /reports/{report_key}.
| Parameter | Type | Description |
|---|---|---|
report_key * | string | Report key from phppos_list_reports (for example summary_sales or inventory_low). |
limit | integer | Rows per page, 1-500 (default 25). |
offset | integer | Rows to skip (default 0). Pass the previous reply's next_offset (paging.next_offset for a report). |
params | object | The report's inputs as listed by phppos_list_reports, e.g. {"start_date":"2026-10-01","end_date":"2026-10-31","location_ids":[1]}. Do not put limit/offset here. |
phppos_create_customer Create customer
WRITE: create a customer in the store. Store-account balance, credit limit and loyalty points cannot be set here. Needs a Read/Write API key. Retrying creates a duplicate (check phppos_list_customers first). The store's 'new customer' webhook, if configured, fires. POST /customers.
| Parameter | Type | Description |
|---|---|---|
first_name * | string | First name (required by PHP Point of Sale). |
account_number | string | Customer account number. |
address_1 | string | Address line 1. |
address_2 | string | Address line 2. |
city | string | City. |
comments | string | Comments. |
company_name | string | Company name. |
country | string | Country. |
email | string | Email address. |
internal_notes | string | Internal notes (not shown to the customer). |
last_name | string | Last name. |
phone_number | string | Phone number. |
state | string | State or region. |
taxable | boolean | Whether sales to this customer are taxed. |
zip | string | Postal code. |
phppos_update_customer Update customer
WRITE: change fields of an existing customer; only the fields you pass are sent. Overwrites the current values. Needs a Read/Write API key. The store's 'edit customer' webhook, if configured, fires. POST /customers/{person_id}.
| Parameter | Type | Description |
|---|---|---|
person_id * | integer | Customer person id (find it with phppos_list_customers). |
account_number | string | Customer account number. |
address_1 | string | Address line 1. |
address_2 | string | Address line 2. |
city | string | City. |
comments | string | Comments. |
company_name | string | Company name. |
country | string | Country. |
email | string | Email address. |
first_name | string | First name. |
internal_notes | string | Internal notes (not shown to the customer). |
last_name | string | Last name. |
phone_number | string | Phone number. |
state | string | State or region. |
taxable | boolean | Whether sales to this customer are taxed. |
zip | string | Postal code. |
phppos_create_item Create item
WRITE: create an inventory item (name required). Stock quantities are not set here. Needs a Read/Write API key. Retrying creates a duplicate (search with phppos_list_items first). The store's item webhooks, if configured, fire. POST /items.
| Parameter | Type | Description |
|---|---|---|
name * | string | Item name. |
category_id | integer | Category id - see phppos_list_categories. |
cost_price | number | Cost price. |
description | string | Short description. |
is_service | boolean | True for a service (no stock tracking). |
item_inactive | boolean | True to deactivate the item (it can no longer be sold). |
item_number | string | Barcode / item number (UPC). |
product_id | string | Product id / SKU. |
promo_price | number | Promotional price. |
reorder_level | number | Stock level at which the item shows as low. |
size | string | Size. |
supplier_id | integer | Supplier person id - see phppos_list_suppliers. |
tags | array | Tag names. |
unit_price | number | Selling price. |
phppos_update_item Update item
WRITE: change fields of an existing item (for example its price, category or active state); only the fields you pass are sent. Overwrites the current values, and a price change applies to the next sale. Needs a Read/Write API key. The store's 'edit item' webhook, if configured, fires. POST /items/{item_id}.
| Parameter | Type | Description |
|---|---|---|
item_id * | integer | Item id (find it with phppos_list_items). |
category_id | integer | Category id - see phppos_list_categories. |
cost_price | number | Cost price. |
description | string | Short description. |
is_service | boolean | True for a service (no stock tracking). |
item_inactive | boolean | True to deactivate the item (it can no longer be sold). |
item_number | string | Barcode / item number (UPC). |
name | string | Item name. |
product_id | string | Product id / SKU. |
promo_price | number | Promotional price. |
reorder_level | number | Stock level at which the item shows as low. |
size | string | Size. |
supplier_id | integer | Supplier person id - see phppos_list_suppliers. |
tags | array | Tag names. |
unit_price | number | Selling price. |
phppos_create_expense Create expense
WRITE: record an expense in the store's books (description, amount and date). It affects expense and profit-and-loss reports. Needs a Read/Write API key. Retrying records it twice (check phppos_list_expenses first). POST /expenses.
| Parameter | Type | Description |
|---|---|---|
expense_amount * | number | Amount, in the store's currency, before tax. |
expense_description * | string | What the expense was for. |
category_id | integer | Expense category id. |
expense_date | string | When it was incurred (yyyy-mm-dd or yyyy-mm-dd hh:mm:ss); defaults to now in the store. |
expense_note | string | Note. |
expense_payment_type | string | Payment type, for example Cash. |
expense_reason | string | Reason. |
expense_tax | number | Tax amount. |
expense_type | string | Expense type, for example Utilities. |
location_id | integer | Location id - see phppos_list_locations. |
phppos_create_appointment Create appointment
WRITE: book an appointment for a customer with an employee at a location, from start_time to end_time (store time zone). The vendor's appointment schema requires first_name. Store webhooks, if configured, may fire. Needs a Read/Write API key. Retrying books it twice (check phppos_list_appointments first). POST /appointments.
| Parameter | Type | Description |
|---|---|---|
end_time * | string | End, as yyyy-mm-dd hh:mm:ss in the store's time zone; must be later than start_time. |
first_name * | string | Customer first name (required by the vendor's appointment schema). |
start_time * | string | Start, as yyyy-mm-dd hh:mm:ss in the store's time zone. |
appointments_type_id | integer | Appointment type id, as set up in the store. |
customer_id | integer | Customer person id - see phppos_list_customers. |
employee_id | integer | Employee id - see phppos_list_employees. |
location_id | integer | Location id - see phppos_list_locations. |
notes | string | Notes for the appointment. |
phppos_add_item_images Add images to an item
WRITE: add one or more JPG or PNG pictures to an existing item by item id: from image URLs, or from files the user attached in ChatGPT. Each file is checked first (JPG or PNG, at most 10 MB, up to 10 per call). main_image makes one new picture the item's main picture (this is how to replace the main picture; removing old pictures is not possible through the API, do it in PHP Point of Sale). The item is read before and after, and the result reports how many pictures it has. Needs a Read/Write API key. Retrying adds the pictures again. POST /items/{item_id} (images[] with image_url).
| Parameter | Type | Description |
|---|---|---|
item_id * | integer | Item id (find it with phppos_list_items). |
files | array | Pictures the user attached in ChatGPT (filled in by ChatGPT). |
images | array | Pictures by URL. |
main_image | string | Make the first or the last new picture the main picture (default none). |