Smaregi MCP by usefulapi

v1.18.1
io.usefulapi/smaregi Checked 2 days ago Published 1 day ago

Read Smaregi stores, products, customers, stock and transactions; manage customers, products, stock.

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

smaregi_list_stores List stores

List the stores (shops) of the Smaregi contract: id, code, name, address, phone. Use the ids to filter stock and transactions. GET /stores.

ParameterTypeDescription
fieldsstringComma-separated top-level field names to return (e.g. productId,productName); fewer fields = smaller replies.
limitintegerResults per page, 1-500 (default 50).
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
sortstringSort order: comma-separated field names, ':desc' for descending (e.g. updDateTime:desc).

smaregi_get_store Get store

One store by id. GET /stores/{store_id}.

ParameterTypeDescription
store_id *Numeric Smaregi id (string or number).
fieldsstringComma-separated top-level field names to return (e.g. productId,productName); fewer fields = smaller replies.

smaregi_list_staffs List staff

List staff members: id, code, name, role, e-mail. Passwords are never returned. GET /staffs.

ParameterTypeDescription
fieldsstringComma-separated top-level field names to return (e.g. productId,productName); fewer fields = smaller replies.
limitintegerResults per page, 1-500 (default 50).
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
sortstringSort order: comma-separated field names, ':desc' for descending (e.g. updDateTime:desc).

smaregi_get_staff Get staff member

One staff member by id. GET /staffs/{staff_id}.

ParameterTypeDescription
staff_id *Numeric Smaregi id (string or number).
fieldsstringComma-separated top-level field names to return (e.g. productId,productName); fewer fields = smaller replies.

smaregi_list_categories List categories

List product categories (departments): id, code, name, parent, level. Use the ids when creating or filtering products. GET /categories.

ParameterTypeDescription
fieldsstringComma-separated top-level field names to return (e.g. productId,productName); fewer fields = smaller replies.
limitintegerResults per page, 1-500 (default 50).
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
sortstringSort order: comma-separated field names, ':desc' for descending (e.g. updDateTime:desc).

smaregi_get_category Get category

One product category by id. GET /categories/{category_id}.

ParameterTypeDescription
category_id *Numeric Smaregi id (string or number).
fieldsstringComma-separated top-level field names to return (e.g. productId,productName); fewer fields = smaller replies.

smaregi_list_products List products

List products with id, category, code, name, price, cost and update time. Filter by category, code, group code, display flag or update time (a 31-day maximum range). GET /products.

ParameterTypeDescription
category_idOnly products of this category id.
display_flagstring1 = shown on the register, 0 = hidden.
fieldsstringComma-separated top-level field names to return (e.g. productId,productName); fewer fields = smaller replies.
group_codestringOnly products with this group code.
limitintegerResults per page, 1-500 (default 50).
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
product_codestringOnly the product with this exact product code.
sortstringSort order: comma-separated field names, ':desc' for descending (e.g. updDateTime:desc).
supplier_product_nostringOnly products with this supplier product number.
updated_fromstringOnly products changed at or after this date-time (ISO 8601 with timezone).
updated_tostringOnly products changed at or before this date-time (the range may span 31 days at most).

smaregi_get_product Get product

One product by id, optionally with store prices, bundled items, store assignments, reserved stock, attribute items and order settings. GET /products/{product_id}.

ParameterTypeDescription
product_id *Numeric Smaregi id (string or number).
with_attribute_itemsbooleanAdd the attribute items.
with_inventory_reservationsbooleanAdd the inventory reservations.
with_order_settingbooleanAdd the ordering settings.
with_pricesbooleanAdd the store/period-specific prices.
with_reserve_itemsbooleanAdd the free-form reserve items.
with_storesbooleanAdd the store assignments.

smaregi_list_customers List customers

List customers (members): id, code, number, name, phone, e-mail, address. Smaregi cannot search by name, phone or e-mail: filter by customer code, member number, id range or update time, or page through. Contains shoppers' personal data. GET /customers.

ParameterTypeDescription
customer_codestringOnly the customer with this exact customer code.
customer_id_fromOnly customers with an id at or above this.
customer_id_toOnly customers with an id at or below this.
customer_nostringOnly the customer with this member number.
fieldsstringComma-separated top-level field names to return (e.g. productId,productName); fewer fields = smaller replies.
limitintegerResults per page, 1-500 (default 50).
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
sortstringSort order: comma-separated field names, ':desc' for descending (e.g. updDateTime:desc).
updated_fromstringOnly customers changed at or after this date-time (ISO 8601 with timezone).
updated_tostringOnly customers changed at or before this date-time (31 days at most).

smaregi_get_customer Get customer

One customer by id, optionally with the contract's custom fields. Contains personal data. GET /customers/{customer_id}.

ParameterTypeDescription
customer_id *Numeric Smaregi id (string or number).
fieldsstringComma-separated top-level field names to return (e.g. productId,productName); fewer fields = smaller replies.
with_custom_fieldsbooleanAdd the custom field values.

smaregi_list_stock List stock levels

List stock levels per store and product (stockAmount, reserved amount). Filter by store or product. Smaregi only lists a product once its quantity has changed at least once. An update-time filter needs both bounds (31 days at most). GET /stock.

ParameterTypeDescription
fieldsstringComma-separated top-level field names to return (e.g. productId,productName); fewer fields = smaller replies.
limitintegerResults per page, 1-500 (default 50).
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
product_idOnly this product id.
sortstringSort order: comma-separated field names, ':desc' for descending (e.g. updDateTime:desc).
store_idOnly this store id.
updated_fromstringOnly stock changed at or after this date-time (give updated_to as well).
updated_tostringOnly stock changed at or before this date-time (give updated_from as well).

smaregi_list_stock_changes List stock history

The stock change history of one product in one store: date, amount, division (sale, purchase, transfer, adjustment...). GET /stock/changes/{product_id}/{store_id}.

ParameterTypeDescription
product_id *Numeric Smaregi id (string or number).
store_id *Numeric Smaregi id (string or number).
fieldsstringComma-separated top-level field names to return (e.g. productId,productName); fewer fields = smaller replies.
limitintegerResults per page, 1-500 (default 50).
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
sortstringSort order: comma-separated field names, ':desc' for descending (e.g. updDateTime:desc).
stock_divisionstringOnly changes of this stock division code.
target_datestringOnly changes of this target date, as Smaregi formats it (yyyy-mm-dd).

smaregi_list_transactions List transactions

List sales transactions (receipts) in a time window of at most 31 days: id, date-time, division (1 = normal sale, 2 = deposit, 3 = withdrawal...), store, terminal, customer, totals. Optionally with the line items (limit 100 then). Contains shoppers' personal data. GET /transactions.

ParameterTypeDescription
from *stringStart of the window: transaction date-time (when Smaregi received it), ISO 8601 with timezone.
to *stringEnd of the window (at most 31 days after from).
customer_codestringOnly this customer code.
fieldsstringComma-separated top-level field names to return (e.g. productId,productName); fewer fields = smaller replies.
limitintegerResults per page, 1-500 (default 50).
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
sortstringSort order: comma-separated field names, ':desc' for descending (e.g. updDateTime:desc).
store_idOnly this store id.
transaction_head_divisionstringTransaction division: 1 normal sale, 2 deposit, 3 withdrawal, 4 advance payment, 5 advance refund, 6 points added, 7 points deducted, 8 points expired, 9 coupon ticket, 11 tip, 13 miles added, 14 mile…
transaction_uuidstringOnly the transaction with this receipt number.
with_detailsstringAdd the line items: none (default), summary or all. Any other value than none caps limit at 100.

smaregi_get_transaction Get transaction

One transaction (receipt) by its transaction id (transactionHeadId), optionally with line items, discounts and payments. Contains personal data. GET /transactions/{transaction_id}.

ParameterTypeDescription
transaction_id *The transactionHeadId.
with_detailsbooleanAdd the line items.
with_discountsbooleanAdd the discounts.
with_paymentsbooleanAdd the payments.

smaregi_create_customer Create customer

WRITE: create a customer (member). customerCode, firstName and lastName are required; the contract's own required-column settings may demand more. Not idempotent: calling twice with a different code creates two customers. POST /customers.

ParameterTypeDescription
customerCode *Customer code (unique per contract).
firstName *First name.
lastName *Last name.
addressAddress.
birthDateBirth date, yyyy-mm-dd.
companyNameCompany name.
customerNoCustomer / member number.
departmentNameDepartment name.
entryDateEnrollment (membership start) date, yyyy-mm-dd; some contracts require it when creating a customer.
faxNumberFax number.
firstKanaFirst name, kana.
lastKanaLast name, kana.
mailAddressE-mail address.
mailReceiveFlagWhether the customer accepts guidance mail: 0 = refuse, 1 = allow (default).
mobileNumberMobile number.
noteNote.
note2Second note.
phoneNumberPhone number.
pointExpireDatePoint expiry date, yyyy-mm-dd; some contracts require it when creating a customer.
postCodePostal code.
rankMember rank.
sexSex: 0 = unknown, 1 = male, 2 = female.
statusMember status: 0 = active, 1 = suspended, 2 = card lost, 3 = withdrawn, 4 = merged.
storeIdStore id the customer belongs to.

smaregi_update_customer Update customer

WRITE: change fields of one customer (only the fields you pass are changed). Overwrites the old values. PATCH /customers/{customer_id}.

ParameterTypeDescription
customer_id *Numeric Smaregi id (string or number).
addressAddress.
birthDateBirth date, yyyy-mm-dd.
companyNameCompany name.
customerCodeCustomer code (unique per contract).
customerNoCustomer / member number.
departmentNameDepartment name.
entryDateEnrollment (membership start) date, yyyy-mm-dd; some contracts require it when creating a customer.
faxNumberFax number.
firstKanaFirst name, kana.
firstNameFirst name.
lastKanaLast name, kana.
lastNameLast name.
mailAddressE-mail address.
mailReceiveFlagWhether the customer accepts guidance mail: 0 = refuse, 1 = allow (default).
mobileNumberMobile number.
noteNote.
note2Second note.
phoneNumberPhone number.
pointExpireDatePoint expiry date, yyyy-mm-dd; some contracts require it when creating a customer.
postCodePostal code.
rankMember rank.
sexSex: 0 = unknown, 1 = male, 2 = female.
statusMember status: 0 = active, 1 = suspended, 2 = card lost, 3 = withdrawn, 4 = merged.
storeIdStore id the customer belongs to.

smaregi_create_product Create product

WRITE: create a product. categoryId, productName and price are required. Not idempotent. POST /products.

ParameterTypeDescription
categoryId *Category id (smaregi_list_categories).
price *Selling price.
productName *Product name.
catchCopyCatch copy.
colorColor.
costUnit cost.
customerPriceMember price.
descriptionDescription.
displayFlagShow on the register (0 = hidden, 1 = shown).
divisionProduct division: 0 = normal (default), 1 = prepaid multi-use ticket (only contracts with that feature), 2 = option product.
groupCodeGroup code.
productCodeProduct code (unique per contract).
productKanaProduct name, kana.
productPriceDivisionPrice division: 1 = standard price (default), 2 = open price.
salesDivisionSales accounting: 0 = counted in sales (default), 1 = excluded from sales totals. Does not control whether the product can be sold; use displayFlag to hide it from the register.
sizeSize.
stockControlDivisionStock control: 0 = stock is managed (default), 1 = stock is not managed.
supplierProductNoSupplier's product number.
tagTag.
taxDivisionTax division code (0 = tax included, 1 = tax excluded, 2 = tax free).
urlProduct URL.

smaregi_update_product Update product

WRITE: change fields of one product (only the fields you pass are changed), for example its price or name. Overwrites the old values. PATCH /products/{product_id}.

ParameterTypeDescription
product_id *Numeric Smaregi id (string or number).
catchCopyCatch copy.
categoryIdCategory (department) id, see smaregi_list_categories.
colorColor.
costUnit cost.
customerPriceMember price.
descriptionDescription.
displayFlagShow on the register (0 = hidden, 1 = shown).
divisionProduct division: 0 = normal (default), 1 = prepaid multi-use ticket (only contracts with that feature), 2 = option product.
groupCodeGroup code.
priceSelling price.
productCodeProduct code (unique per contract).
productKanaProduct name, kana.
productNameProduct name.
productPriceDivisionPrice division: 1 = standard price (default), 2 = open price.
salesDivisionSales accounting: 0 = counted in sales (default), 1 = excluded from sales totals. Does not control whether the product can be sold; use displayFlag to hide it from the register.
sizeSize.
stockControlDivisionStock control: 0 = stock is managed (default), 1 = stock is not managed.
supplierProductNoSupplier's product number.
tagTag.
taxDivisionTax division code (0 = tax included, 1 = tax excluded, 2 = tax free).
urlProduct URL.

smaregi_set_stock Set stock level

WRITE: set the absolute stock quantity of one product in one store, replacing the current quantity. Use smaregi_adjust_stock for a relative change. PATCH /stock/{product_id}.

ParameterTypeDescription
product_id *Numeric Smaregi id (string or number).
stock_amount *integerThe new quantity.
store_id *Numeric Smaregi id (string or number).
memostringNote stored in the stock history.

smaregi_adjust_stock Adjust stock level

WRITE: add (positive) or subtract (negative) a quantity to the stock of one product in one store. Not idempotent: a repeat applies the change again. POST /stock/{product_id}/add.

ParameterTypeDescription
product_id *Numeric Smaregi id (string or number).
stock_amount *integerThe change: +5 adds five, -3 removes three.
store_id *Numeric Smaregi id (string or number).
memostringNote stored in the stock history.