PHP Point of Sale MCP by usefulapi

v1.24.1
io.usefulapi/php-point-of-sale Checked 1 day ago Published 8 hours ago

Read 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.

ParameterTypeDescription
limitintegerRows per page, 1-100 (default 20).
offsetintegerRows to skip (default 0). Pass the previous reply's next_offset (paging.next_offset for a report).
searchstringFree-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.

ParameterTypeDescription
category_idintegerOnly items in this category id - see phppos_list_categories.
limitintegerRows per page, 1-1000 (default 20).
offsetintegerRows to skip (default 0). Pass the previous reply's next_offset (paging.next_offset for a report).
searchstringFree-text search.
search_fieldstringLimit the search to one field.
sort_colstringColumn to sort by (a field name of the rows).
sort_dirstringSort 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}.

ParameterTypeDescription
item_id *integerPHP 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.

ParameterTypeDescription
limitintegerRows per page, 1-100 (default 20).
offsetintegerRows to skip (default 0). Pass the previous reply's next_offset (paging.next_offset for a report).
searchstringFree-text search.

phppos_list_item_kits List item kits

List item kits (bundles of items sold together) with their prices. GET /item_kits.

ParameterTypeDescription
category_idintegerOnly kits in this category id.
limitintegerRows per page, 1-100 (default 20).
offsetintegerRows to skip (default 0). Pass the previous reply's next_offset (paging.next_offset for a report).
searchstringFree-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.

ParameterTypeDescription
customer_idintegerOnly this customer's sales.
email_addressstringLook the customer up by email address and return their sales.
end_datestringOnly sales on or before this date or date-time.
limitintegerRows per page, 1-1000 (default 10).
location_idintegerOnly sales at this location id - see phppos_list_locations.
offsetintegerRows to skip (default 0). Pass the previous reply's next_offset (paging.next_offset for a report).
start_datestringOnly sales on or after this date or date-time (yyyy-mm-dd or yyyy-mm-dd hh:mm:ss).
suspended_typestringFetch suspended sales instead of completed ones: a comma-separated list of layaway, estimate or a sale type name.
verbositystringminimal, 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}.

ParameterTypeDescription
sale_id *integerPHP Point of Sale sale id (the number on the receipt; find it with phppos_list_sales).
verbositystringminimal, 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.

ParameterTypeDescription
end_datestringOnly receivings on or before this date or date-time.
limitintegerRows per page, 1-1000 (default 10).
offsetintegerRows to skip (default 0). Pass the previous reply's next_offset (paging.next_offset for a report).
start_datestringOnly 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}.

ParameterTypeDescription
receiving_id *integerReceiving 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.

ParameterTypeDescription
limitintegerRows per page, 1-100 (default 20).
location_idintegerOnly customers at this location id.
offsetintegerRows to skip (default 0). Pass the previous reply's next_offset (paging.next_offset for a report).
searchstringFree-text search.
search_fieldstringLimit the search to one field.
sort_colstringColumn to sort by (a field name of the rows).
sort_dirstringSort 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}.

ParameterTypeDescription
person_id *integerCustomer 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.

ParameterTypeDescription
limitintegerRows per page, 1-100 (default 20).
offsetintegerRows to skip (default 0). Pass the previous reply's next_offset (paging.next_offset for a report).
searchstringFree-text search.
search_fieldstringLimit the search to one field.
sort_colstringColumn to sort by (a field name of the rows).
sort_dirstringSort direction.

phppos_get_supplier Get supplier

One supplier by person id. GET /suppliers/{person_id}.

ParameterTypeDescription
person_id *integerSupplier 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.

ParameterTypeDescription
limitintegerRows per page, 1-100 (default 20).
location_idintegerOnly employees at this location id.
offsetintegerRows to skip (default 0). Pass the previous reply's next_offset (paging.next_offset for a report).
searchstringFree-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.

ParameterTypeDescription
type *stringcustomer = invoices to customers; supplier = invoices from suppliers.
limitintegerRows per page, 1-100 (default 20).
offsetintegerRows to skip (default 0). Pass the previous reply's next_offset (paging.next_offset for a report).
searchstringFree-text search.
sort_colstringColumn to sort by (a field name of the rows).
sort_dirstringSort direction.

phppos_list_expenses List expenses

List recorded expenses with type, description, date, amount, tax, payment type, category and location. GET /expenses.

ParameterTypeDescription
limitintegerRows per page, 1-100 (default 20).
location_idintegerOnly expenses at this location id.
offsetintegerRows to skip (default 0). Pass the previous reply's next_offset (paging.next_offset for a report).
searchstringFree-text search.
sort_colstringColumn to sort by (a field name of the rows).
sort_dirstringSort direction.

phppos_list_gift_cards List gift cards

List gift cards with number, description, remaining value, customer and whether inactive. GET /giftcards.

ParameterTypeDescription
limitintegerRows per page, 1-100 (default 20).
offsetintegerRows to skip (default 0). Pass the previous reply's next_offset (paging.next_offset for a report).
searchstringFree-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}.

ParameterTypeDescription
giftcard_number *stringGift 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.

ParameterTypeDescription
end_timestringOnly appointments ending on or before this date or date-time.
limitintegerRows per page, 1-100 (default 20).
offsetintegerRows to skip (default 0). Pass the previous reply's next_offset (paging.next_offset for a report).
searchstringFree-text search.
start_timestringOnly 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.

ParameterTypeDescription
limitintegerMatching reports per page with search, 1-100 (default 10; each one carries its inputs). Ignored without search.
offsetintegerRows to skip (default 0). Pass the previous reply's next_offset (paging.next_offset for a report).
searchstringOnly 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}.

ParameterTypeDescription
report_key *stringReport key from phppos_list_reports (for example summary_sales or inventory_low).
limitintegerRows per page, 1-500 (default 25).
offsetintegerRows to skip (default 0). Pass the previous reply's next_offset (paging.next_offset for a report).
paramsobjectThe 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.

ParameterTypeDescription
first_name *stringFirst name (required by PHP Point of Sale).
account_numberstringCustomer account number.
address_1stringAddress line 1.
address_2stringAddress line 2.
citystringCity.
commentsstringComments.
company_namestringCompany name.
countrystringCountry.
emailstringEmail address.
internal_notesstringInternal notes (not shown to the customer).
last_namestringLast name.
phone_numberstringPhone number.
statestringState or region.
taxablebooleanWhether sales to this customer are taxed.
zipstringPostal 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}.

ParameterTypeDescription
person_id *integerCustomer person id (find it with phppos_list_customers).
account_numberstringCustomer account number.
address_1stringAddress line 1.
address_2stringAddress line 2.
citystringCity.
commentsstringComments.
company_namestringCompany name.
countrystringCountry.
emailstringEmail address.
first_namestringFirst name.
internal_notesstringInternal notes (not shown to the customer).
last_namestringLast name.
phone_numberstringPhone number.
statestringState or region.
taxablebooleanWhether sales to this customer are taxed.
zipstringPostal 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.

ParameterTypeDescription
name *stringItem name.
category_idintegerCategory id - see phppos_list_categories.
cost_pricenumberCost price.
descriptionstringShort description.
is_servicebooleanTrue for a service (no stock tracking).
item_inactivebooleanTrue to deactivate the item (it can no longer be sold).
item_numberstringBarcode / item number (UPC).
product_idstringProduct id / SKU.
promo_pricenumberPromotional price.
reorder_levelnumberStock level at which the item shows as low.
sizestringSize.
supplier_idintegerSupplier person id - see phppos_list_suppliers.
tagsarrayTag names.
unit_pricenumberSelling 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}.

ParameterTypeDescription
item_id *integerItem id (find it with phppos_list_items).
category_idintegerCategory id - see phppos_list_categories.
cost_pricenumberCost price.
descriptionstringShort description.
is_servicebooleanTrue for a service (no stock tracking).
item_inactivebooleanTrue to deactivate the item (it can no longer be sold).
item_numberstringBarcode / item number (UPC).
namestringItem name.
product_idstringProduct id / SKU.
promo_pricenumberPromotional price.
reorder_levelnumberStock level at which the item shows as low.
sizestringSize.
supplier_idintegerSupplier person id - see phppos_list_suppliers.
tagsarrayTag names.
unit_pricenumberSelling 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.

ParameterTypeDescription
expense_amount *numberAmount, in the store's currency, before tax.
expense_description *stringWhat the expense was for.
category_idintegerExpense category id.
expense_datestringWhen it was incurred (yyyy-mm-dd or yyyy-mm-dd hh:mm:ss); defaults to now in the store.
expense_notestringNote.
expense_payment_typestringPayment type, for example Cash.
expense_reasonstringReason.
expense_taxnumberTax amount.
expense_typestringExpense type, for example Utilities.
location_idintegerLocation 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.

ParameterTypeDescription
end_time *stringEnd, as yyyy-mm-dd hh:mm:ss in the store's time zone; must be later than start_time.
first_name *stringCustomer first name (required by the vendor's appointment schema).
start_time *stringStart, as yyyy-mm-dd hh:mm:ss in the store's time zone.
appointments_type_idintegerAppointment type id, as set up in the store.
customer_idintegerCustomer person id - see phppos_list_customers.
employee_idintegerEmployee id - see phppos_list_employees.
location_idintegerLocation id - see phppos_list_locations.
notesstringNotes 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).

ParameterTypeDescription
item_id *integerItem id (find it with phppos_list_items).
filesarrayPictures the user attached in ChatGPT (filled in by ChatGPT).
imagesarrayPictures by URL.
main_imagestringMake the first or the last new picture the main picture (default none).