How to connect Smaregi to AI agents
checked by the operator
TL;DR
| Verdict | Business or paid only There is an official route, but it needs a business contract, a specific paid plan, a seller or similar role, or a review |
|---|---|
| Who can use it | Smaregi subscribers (store businesses). For your own contract's data only, the My Page setup can be used, but it requires the Premium plan or above and administrator rights. Serving other companies or multiple contracts presupposes a Developers registration and app registration, and publishing on the app market requires review. |
| Method | Official API (REST) |
| Pricing | No extra API charge is advertised, but the My Page setup for your own contract requires the Premium plan or above. Eligible plans differ per API, and each specification states its plan range. |
| Risk | A platform API token reaches stores, transactions, stock and member data across the contract. Managing the client secret is critical; on a suspected leak, reissue it (the old secret is invalidated immediately). The legacy API's fixed token has no expiry, so a leak can be abused indefinitely. |
Smaregi offers two official APIs. The current Smaregi Platform API (OAuth 2.0) can read and write transactions, items, stock and members, and provides Webhook notifications. Your own contract can be configured from My Page, but the Premium plan or above is required. The legacy Smaregi API (fixed token) is slated for discontinuation. There is no official MCP server.
| Authentication | OAuth 2.0 (app access tokens via client credentials / user access tokens via authorization code + OIDC) / fixed access token (legacy Smaregi API) |
|---|---|
| Checked by the operator | 2026.12.05 |
| How the operator checked | Checked against official documentation |
Official MCP and AI guides
- Official MCP serverNo
No official MCP server was found as of 2026-12-05. To operate via MCP you would use an unofficial MCP, or implement calls to the official API yourself.
- Official guide for AI agentsNo
No official AI/agent guide such as llms.txt was found. Developer materials are the references on Smaregi Developers (developers.smaregi.dev).
Connectors
Official connectors from AI services
Not supported: Claude, ChatGPT, Gemini, Microsoft Copilot
Third-party integration services
A Smaregi app exists, with triggers such as "when item information is registered/changed/deleted (Webhook)" and actions including fetching daily closing information and updating items and stock. Yoom's Mini plan or above is required.
Not supported: Zapier, Make, n8n, Power Automate, IFTTT, Pipedream, Composio
Unofficial MCP servers
Published by someone other than the provider. The provider does not guarantee how they work or how safe they are.
An unofficial MCP that exposes generic GET/POST/PUT/PATCH/DELETE tools against the Smaregi API. Listed on Glama. Whether it targets the legacy Smaregi API or the Platform API could not be determined from the listing alone.
Security assessment
For each available connection method: who provides it, the permissions it requires, how the terms treat it, and the data path. Items we could not confirm are marked Unverified.
- Third-party integrationYoomOfficial from the integration service
Permissions required Read and write Operates within the scope authorized through Yoom's My App integration. Can fetch and update item information, update stock, and fetch daily closing information.
Terms of service No issues Integration using the official API. On the Smaregi side, an eligible plan and app authorization are prerequisites.
Source: relevant section of the terms
Data path Calls the Smaregi Platform API through Yoom's servers. Sales and item data transit Yoom. - Unofficial MCPsmaregi-mcp(fujioka0729)Third party (unofficial)
Permissions required Read and write Calls the API with your own Smaregi credentials. Because the tools are generic HTTP tools, update operations can be executed as-is, not just reads.
Terms of service Unverified An unofficial generic tool; use is at your own responsibility. Because it is built on the official API, the API's own conditions (eligible plans, scopes, rate limits) follow the official terms.
Source: relevant section of the terms
Data path Unverified
Data you can fetch within the terms of service
With the Platform API you can reference and update Smaregi POS transactions, items, stock, stores and members, plus Waiter and Time Card data, within the contract. The covered scope depends on each API's eligible plans and scopes.
- ScrapingNot stated in terms
Conditions follow the specifications on Smaregi Developers and the terms at app registration. Rate limits are per contract: reads are 50/second in production and 10/second in the sandbox; updates are 20/second in production and 4/second in the sandbox (common specification). Token issuance and errored requests also count. Exceeding the limit returns 429 with Retry-After. Within the public documentation such as the FAQ and common specification, no provision naming scraping was found.
- Fetching with the agent's own browser
There is an official API or MCP server, so we do not recommend having an agent sign in and operate the site in a browser on your behalf.
Usage
How to connect
- Subscribe to Smaregi. For integrations covering only your own data, the Premium plan or above is required.
- For your own contract only, issue client credentials from "設定 > プラットフォームAPI設定" (Platform API settings) in the admin My Page (administrator rights required; no Developers registration needed).
- POST to https://id.smaregi.jp/app/{contractId}/token with the client ID and secret in Basic authentication, sending grant_type=client_credentials and scopes in form format, to obtain an app access token (the development environment uses id.smaregi.dev).
- Send the token in the Authorization: Bearer header and call the transaction, item and stock APIs under https://api.smaregi.jp/{contractId}/pos/.
- To serve other companies or multiple contracts, register an app on Smaregi Developers; publishing on the app market requires review.
Setup examples
Paste these as they are. Replace the API key, domain and similar values with your own.
curl -X POST "https://id.smaregi.jp/app/{契約ID}/token" -u "{クライアントID}:{クライアントシークレット}" -H "Content-Type: application/x-www-form-urlencoded" --data-urlencode "grant_type=client_credentials" --data-urlencode "scope=pos.transactions:read"Example of obtaining an app access token (production). The development environment uses id.smaregi.dev. Send the body in form format, not JSON. Validity is expires_in (3600 seconds in the example); issuance itself counts toward the rate limit, so reuse the token.
Official page checked: https://developers.smaregi.dev/apidoc/common/
Limiting the features
pos.transactions:read / pos.stock:read など、リソースごとの :read(参照)と更新系スコープを分けて指定するWhen obtaining a token, request only the scopes you need from those enabled in the app's API settings. For read-only integrations, narrow to the :read scopes. Scopes that are not enabled are ignored; including a nonexistent scope returns an error.
Official page checked: https://developers.smaregi.dev/apidoc/common/
Daily import of transaction data
Import yesterday's sales from Smaregi and total them
Use the Platform API's transaction list endpoint, keyed by update time, to differentially fetch the last 24 hours without details at up to 1,000 records per call, and store them in your own database keyed by transactionHeadId. Combine with Webhooks to avoid missing data.
Pitfalls and tips
Pitfalls
- Fetching the transaction list requires a period, and From-To is at most 31 days. With details attached, the per-call limit drops to 100 records (1,000 without details).
- Webhooks are not retried, and duplicates, out-of-order delivery, delays and loss are possible. You must respond 200 with an empty body within 3 seconds. Do not rely on notifications alone; run differential fetching by update time alongside.
- The Webhook body contains only the event name, action and transaction IDs, not amounts or details. Fetch the contents via the API.
- The legacy Smaregi API is slated for discontinuation and receives no new features. Some operations, such as registering/updating staff and customer counts in daily closing data, are still not possible on the Platform API.
- Endpoints and client credentials differ between the development (.dev) and production (.jp) environments. Mixing them up returns 401 (invalid_client).
- The client secret is shown only at app creation or reissuance. Reissuing invalidates the old secret immediately.
- The stock list does not include items whose stock count has never changed. A mismatch with the item master count is not a malfunction.
Tips
- For new integrations, choose the Platform API. Building on the legacy API presupposes a migration.
- For sales totals only, the admin screen's CSV export or ready-made integration apps on the app market are often sufficient, without building API code.
- Development can be tried in the sandbox (prepared automatically when you register a Developers account) with fictitious store data.
Test environment and change history
| How it was checked | Checked against official documentation |
|---|---|
| Clients tried | Not yet tried with a real client |
The relationship between the two APIs and the start of My Page setup were confirmed in the official reference (developers.smaregi.dev). Details of authentication, scopes and limits, and the Premium plan condition, were supplemented by a third-party walkthrough based on the official reference. No live connection was made.
Change history
- First edition
Sources
Official and primary sources
Pages published by the service provider, the integration provider or the MCP author about their own product.
- Differences between the Smaregi API and the Smaregi Platform API | Smaregi Platform API ReferenceBasis for the relationship between the two APIs, the legacy API's planned discontinuation, and the start of My Page setup (2024-10-29)., checked 2026.12.05
- Smaregi Platform API common specificationBasis for the common specification of authentication (token retrieval and scopes), rate limits, Webhooks and login (OIDC)., checked 2026.12.05
- When item information is registered in Smaregi, summarize and update its description | YoomBasis for Yoom's Smaregi integration template., checked 2026.12.05
References (third-party write-ups)
Third-party blogs and roundups. We use them only to supplement facts confirmed in official sources.
- How to use the Smaregi API: token retrieval, transactions and stock in Python, and Webhook handling (issoh.co.jp)Basis for details of authentication, scopes and rate limits, Webhook behavior, and the Premium-plan condition for My Page setup, based on the official reference., checked 2026.12.05
- smaregi-mcp - GlamaBasis for the tool structure of the unofficial MCP (smaregi-mcp)., checked 2026.12.05
