Inventory API for AI agents and automation
Inventory API for AI agents and automation
Read live stock, parties and reports, and record stock adjustments from your own agent or server.
Overview
The Stock Register Inventory API is a REST API for your AI agent, automation tool or server to read live stock, items, batches, parties, expenses and reports, and to record stock adjustments, items, party prices and job work orders. Business owners on an active Advance Pro or Manufacturing Pro plan, or in the 7-day free trial, create credentials themselves in Settings → Inventory API.
| Base URL | https://inventory-api.stockregister.in (the Inventory API's server; every path starts with /inventory) |
|---|---|
| Authorization | Client ID and secret exchanged for a short-lived Bearer token |
| Scopes | api:read, api:write |
| Coverage | All stores in the business |
| Eligibility | Active Advance Pro or Manufacturing Pro, or the 7-day free trial |
| OpenAPI 3.0 | https://inventory-api.stockregister.in/inventory/v1/public/openapi3.json |
| Swagger 2.0 | https://inventory-api.stockregister.in/inventory/v1/public/openapi.json |
What AI agents can do with the Inventory API
Read stock, parties, expenses and reports, and record stock adjustments, items and job work, inside the same access control as the app. Bills and payments are made in ChatGPT or Claude through the MCP server.
- Stock and inventorySync live stock levels per store and godown to your website, marketplace or sheet, and post stock IN/OUT adjustments from scanners or other systems.
- Sales and partiesPull party balances and party-wise prices into your CRM or reminder tool. Bills are made in ChatGPT or Claude through the MCP server.
- Purchase and accountsRead expenses, opening balances and balance adjustments, and use the reorder list to plan what to buy.
- ReportsPull P&L, item-wise and party-wise profit, reorder and batch expiry reports on a schedule into Sheets, email or a dashboard.
- ManufacturingCreate and close job work orders, manage process templates, and read BOM and production summaries.
- Staff access controlEach integration has its own scopes and secret, shows in Settings → Inventory API, and can be rotated or revoked.
Set up Inventory API access on Pro
The business owner creates the credential in a few minutes. No request or review.
- 1
Owner creates the integration
In Settings → Inventory API the business owner verifies with an OTP or Google and creates an integration for you.
- 2
Pick the scopes
The api:read scope covers stores, items, batches, parties, expenses and reports. Add api:write only if your agent records stock adjustments or other changes.
- 3
Exchange for a token
POST the client ID and secret to /inventory/v1/oauth/token and send the Bearer token. Keep the secret in a secret manager.
- 4
Make a first read
List the stores, then read one item's stock and check it against the dashboard before you turn on writes.
- 1Verify as the owner
Open Settings → Inventory API. In India, verify the registered business mobile with an OTP by SMS or WhatsApp. International owners verify with the Google account linked to the business.
- 2Create an integration
Name it and start with Read only. Choose Read and modify only if the integration needs the permitted write operations. Save the business ID, base URL, client ID and the one-time client secret.
- 3Store the secret safely
Put it in your AI platform's secret manager or your connector's server environment. Keep it out of prompts and chat history.
- 4Configure the HTTP tools
Use the published OpenAPI 3.0 schema for tool definitions; Swagger 2.0 remains available alongside it. Add a token exchange action and send the token as Authorization: Bearer <token>. Exchange again before expires_in runs out.
- 5Verify with a read
Ask the agent to list your stores and check one known item. Compare with the dashboard, and check it asks which item you mean when names match more than one.
Prefer a step-by-step guide inside the app? Open the Inventory API quickstart.
Scopes and tokens
| Scope | Grants |
|---|---|
| api:read | Read stores, items, batches and live quantities, plus parties, expenses, reports, job work and manufacturing data in the business. |
| api:write | Record changes: stock adjustments (IN / OUT), items and categories, party prices, balance adjustments, job work orders and process templates. Bills and payments are made through the MCP server in ChatGPT or Claude, not the API. Request it with api:read. |
Exchange the client ID and secret for a token, then send it as Authorization: Bearer <token>. Exchange again before expires_in runs out.
curl -X POST https://inventory-api.stockregister.in/inventory/v1/oauth/token \
-H "Content-Type: application/json" \
-d '{"client_id":"…","client_secret":"…","scopes":["api:read"]}'Inventory API endpoints by area
Paths are relative to https://inventory-api.stockregister.in. Reads need api:read. Creates, updates and cancels need api:write; stock adjustments also need a clientRequestId. The API records stock adjustments, not bills: bills, orders and payments are made through the MCP server. The routes a key can use depend on its credential; the authenticated catalog at /inventory/v1/openapi.json lists yours, and the public schema lists every field.
| Method | Path | Does | Scope |
|---|---|---|---|
| Stock | |||
| GET | /inventory/api/v1/ItemBatch/getBatchesForItem/{stockItemId}/{storeId} | List batches for an item in its store. | api:read |
| POST | /inventory/api/v1/entry/create | Create a stock adjustment IN or OUT entry; invoice and order entry types are not supported on this API. | api:write |
| DELETE | /inventory/api/v1/entry/delete/{entityId}/{entryType} | Cancel a stock adjustment using its saved entry ID and adjustment type. | api:write |
| POST | /inventory/api/v1/itemCategory/create | Create an item category for the business. | api:write |
| DELETE | /inventory/api/v1/itemCategory/delete/{itemCategoryId} | Delete an existing item category. | api:write |
| GET | /inventory/api/v1/itemCategory/get/{business_id} | List item categories for the business. | api:read |
| POST | /inventory/api/v1/itemCategory/update | Update an existing item category. | api:write |
| GET | /inventory/api/v1/itemCategoryMap/business/{businessId}/stockItem/{stockItemId} | Read the categories assigned to an item. | api:read |
| POST | /inventory/api/v1/itemCategoryMap/update | Update category assignments for items using the existing request contract. | api:write |
| GET | /inventory/api/v1/itemPriceUnit/{business_id} | List item price units configured for the business. | api:read |
| GET | /inventory/api/v1/stockItem/getAllHeaders/{storeId} | Read the configured item columns for a store. | api:read |
| GET | /inventory/api/v1/stockItem/getItemPriceStackBreakUp/{stockItemId} | Read an item's valuation stack breakdown. | api:read |
| GET | /inventory/api/v1/stockItem/{stockItemId} | Read an item and its current available stock using the v1 contract. | api:read |
| GET | /inventory/api/v2/itemCategory/business/{business_id}/store/{store_id} | List item categories available in a business store. | api:read |
| POST | /inventory/api/v2/stockItem/update | Update an item using the existing v2 request contract. | api:write |
| GET | /inventory/api/v2/stockItem/{stockItemId} | Read extended item details using the v2 contract. | api:read |
| POST | /inventory/api/v3/stockItem/bulk/byIds | Read items by their IDs using the existing bulk lookup contract. | api:read |
| POST | /inventory/api/v3/stockItem/create | Create an inventory item using the published v3 request contract. | api:write |
| DELETE | /inventory/api/v3/stockItem/delete/{stockItemId}/{storeId} | Delete an item in its store using the existing item-deletion workflow. | api:write |
| GET | /inventory/api/v3/stockItem/getPaginatedItemsList/{storeId}/{offset} | Read one page of store items and their available stock. | api:read |
| PUT | /inventory/api/v3/stockItem/update | Update an item using the existing v3 request contract. | api:write |
| GET | /inventory/api/v3/store/getStore/{business_id} | List stores belonging to the authenticated business. | api:read |
| GET | /inventory/api/v4/adjustment-reason/business/{businessId} | List stock adjustment reasons for the business. | api:read |
| POST | /inventory/api/v4/adjustment-reason/create | Create a stock adjustment reason for the business. | api:write |
| PUT | /inventory/api/v4/adjustment-reason/update | Update an existing stock adjustment reason. | api:write |
| DELETE | /inventory/api/v4/adjustment-reason/{id} | Delete an existing stock adjustment reason. | api:write |
| GET | /inventory/api/v4/adjustment-reason/{id} | Read a stock adjustment reason by ID. | api:read |
| POST | /inventory/api/v6/stockItem/getPaginatedItemsList | Search and paginate inventory items across the supplied business stores. | api:read |
| Accounting | |||
| GET | /inventory/api/v1/balance-adjustment | List balance adjustments using the supplied filters. | api:read |
| POST | /inventory/api/v1/balance-adjustment | Create a balance adjustment using the existing accounting workflow. | api:write |
| DELETE | /inventory/api/v1/balance-adjustment/{entityId} | Delete an existing balance adjustment. | api:write |
| GET | /inventory/api/v1/balance-adjustment/{entityId} | Read a balance adjustment by its entry ID. | api:read |
| PUT | /inventory/api/v1/balance-adjustment/{entityId} | Update an existing balance adjustment. | api:write |
| GET | /inventory/api/v1/expense/get/{storeId}/{expenseId} | Read one expense in the specified store. | api:read |
| GET | /inventory/api/v1/expense/getAll/{storeId}/{offset} | Read a page of expenses for a store. | api:read |
| GET | /inventory/api/v1/expense/getBillNumber/{storeId} | Read expense bill-number information for a store. | api:read |
| GET | /inventory/api/v1/expense/isBillNumberPresent/{storeId}/{billNumber} | Check whether an expense bill number is already present in a store. | api:read |
| GET | /inventory/api/v1/expenseCategory/getAll/{businessId}/{offset} | Read a page of business expense categories. | api:read |
| GET | /inventory/api/v1/extraChargeType/list/{businessId} | List extra-charge types available to the business. | api:read |
| GET | /inventory/api/v1/store/getOpeningBalance/{storeId} | Read opening-balance information for a store. | api:read |
| POST | /inventory/api/v1/storeBill/getNewBillNumber | Read the bill-number preview using the existing store billing configuration. | api:read |
| POST | /inventory/api/v1/storeBill/validate | Validate a bill number using the existing billing request contract. | api:read |
| GET | /inventory/api/v3/bulkTxn/{bulkTxnId} | Read an existing entry by its bulk transaction ID. | api:read |
| Settings | |||
| GET | /inventory/api/v1/billSetting/getTermsAndConditionAndAddNote/{businessId} | Read business bill terms, conditions and notes. | api:read |
| GET | /inventory/api/v1/billTxnExtraInfoColumns/{businessId} | Read the configured extra information columns for bills. | api:read |
| GET | /inventory/api/v1/business/{businessId}/currency | Read the business currency configuration. | api:read |
| GET | /inventory/api/v1/business/{businessId}/inventory-mode | Read the business inventory mode. | api:read |
| GET | /inventory/api/v3/business/getBusinessInfo/{businessId} | Read business information for the authenticated business. | api:read |
| Reports | |||
| GET | /inventory/api/v1/entry/{bulkTxnId}/profit-breakdown | Read the historical profit breakdown for an entry, subject to profit-access permissions. | api:read |
| GET | /inventory/api/v1/report/batch-expiry-date | Read the batch expiry report using the supplied date and store filters. | api:read |
| GET | /inventory/api/v1/report/category-wise-profit | Read profit grouped by item category, subject to profit-access permissions. | api:read |
| GET | /inventory/api/v1/report/date-wise-profit | Read profit grouped by date, subject to profit-access permissions. | api:read |
| GET | /inventory/api/v1/report/item-wise-profit | Read profit grouped by item, subject to profit-access permissions. | api:read |
| GET | /inventory/api/v1/report/job-work-issue-register | Read the job-work material issue register. | api:read |
| GET | /inventory/api/v1/report/job-work-material-with-worker | Read job-work material currently held with workers. | api:read |
| GET | /inventory/api/v1/report/job-work-order-register | Read the job-work order register. | api:read |
| GET | /inventory/api/v1/report/job-work-order-summary | Read the job-work order summary using the supplied filters. | api:read |
| GET | /inventory/api/v1/report/job-work-processing-charges | Read job-work processing charges using the supplied filters. | api:read |
| GET | /inventory/api/v1/report/job-work-receipt-register | Read the job-work receipt register. | api:read |
| GET | /inventory/api/v1/report/job-work-worker-outstanding | Read outstanding job-work balances by worker. | api:read |
| GET | /inventory/api/v1/report/manufactured-entry-list | Read the manufactured-entry report using the supplied filters. | api:read |
| GET | /inventory/api/v1/report/manufactured-entry-summary | Read the manufactured-entry summary using the supplied filters. | api:read |
| GET | /inventory/api/v1/report/order-fulfillment | Read order fulfillment using live linked-entry information. | api:read |
| GET | /inventory/api/v1/report/party-wise-profit | Read profit grouped by party, subject to profit-access permissions. | api:read |
| GET | /inventory/api/v1/report/profit-loss-report | Read the profit and loss report, subject to financial-access permissions. | api:read |
| GET | /inventory/api/v1/report/recipe-bom-summary | Read the recipe and bill-of-materials summary. | api:read |
| GET | /inventory/api/v1/report/sales-bill-profit-report | Read profit by sales bill, subject to profit-access permissions. | api:read |
| GET | /inventory/api/v1/report/stock-adjustment-reason-wise | Read stock adjustments grouped by adjustment reason. | api:read |
| GET | /inventory/api/v1/report/stock-reOrder-report | Read the stock reorder report using the supplied store filters. | api:read |
| GET | /inventory/api/v2/party/globalReport/{businessId} | Read the business party summary using the v2 report contract. | api:read |
| GET | /inventory/api/v3/party/globalReport/{businessId}/{offset} | Read a page of the business party summary using the v3 contract. | api:read |
| GET | /inventory/api/v5/party/globalReport/{businessId} | Read the business party summary using the v5 report contract. | api:read |
| Manufacturing | |||
| GET | /inventory/api/v1/job-work-issues/{id} | Read a job-work material issue by ID. | api:read |
| GET | /inventory/api/v1/job-work-orders | List job-work orders using the supplied filters. | api:read |
| POST | /inventory/api/v1/job-work-orders | Create a job-work order using the existing job-work workflow. | api:write |
| DELETE | /inventory/api/v1/job-work-orders/{id} | Delete a job-work order when its current state permits deletion. | api:write |
| GET | /inventory/api/v1/job-work-orders/{id} | Read a job-work order by ID. | api:read |
| PATCH | /inventory/api/v1/job-work-orders/{id} | Update editable fields on an existing job-work order. | api:write |
| POST | /inventory/api/v1/job-work-orders/{id}/cancel | Cancel a job-work order when its current state permits cancellation. | api:write |
| POST | /inventory/api/v1/job-work-orders/{id}/close | Close a job-work order using the existing close workflow. | api:write |
| GET | /inventory/api/v1/job-work-orders/{id}/material-balance | Read the material balance for a job-work order. | api:read |
| GET | /inventory/api/v1/job-work-orders/{orderId}/issues | List material issues linked to a job-work order. | api:read |
| GET | /inventory/api/v1/job-work-orders/{orderId}/receipts | List receipts linked to a job-work order. | api:read |
| GET | /inventory/api/v1/job-work-receipts/{id} | Read a job-work receipt by ID. | api:read |
| GET | /inventory/api/v1/job-work-settings/{storeId} | Read job-work settings for a store. | api:read |
| GET | /inventory/api/v1/manufacturing-processes | List manufacturing process templates; this does not record production. | api:read |
| POST | /inventory/api/v1/manufacturing-processes | Create a manufacturing process template, not a stock or production entry. | api:write |
| DELETE | /inventory/api/v1/manufacturing-processes/{id} | Delete a manufacturing process template when its dependencies permit deletion. | api:write |
| GET | /inventory/api/v1/manufacturing-processes/{id} | Read a manufacturing process template by ID. | api:read |
| PUT | /inventory/api/v1/manufacturing-processes/{id} | Update a manufacturing process template while preserving its revision workflow. | api:write |
| GET | /inventory/api/v1/manufacturing-processes/{id}/versions/{version} | Read a saved manufacturing process revision. | api:read |
| Parties | |||
| GET | /inventory/api/v1/party/getParty/{businessId} | Read the business party list using the existing list filters. | api:read |
| GET | /inventory/api/v1/party/getPartyInfo/{businessId}/{partyId} | Read party information within the business. | api:read |
| GET | /inventory/api/v1/party/getPartyListPaginated/{businessId}/{offset}/{filter} | Read a filtered page of business parties. | api:read |
| GET | /inventory/api/v1/party/{partyId}/getAddresses | List the addresses associated with a party. | api:read |
| POST | /inventory/api/v1/partyPrice/createOrUpdate | Create or update a party-specific item price. | api:write |
| GET | /inventory/api/v1/partyPrice/getByBusinessId/{businessId} | List party-specific prices for the business. | api:read |
| GET | /inventory/api/v1/partyPrice/validate/{partyId}/{stockItemId}/{businessId} | Validate the party-specific price configuration for an item. | api:read |
curl https://inventory-api.stockregister.in/inventory/api/v1/stockItem/{itemId} \
-H "Authorization: Bearer $TOKEN"Writing stock safely
Stock adjustments change real stock. Build these rules into the agent's configuration.
- Map product names to exact store and item IDs before writing.
- Have the agent show store, item, quantity, direction and reference, and get the owner's confirmation before posting.
- Use the actual movement time and the agreed rate. A missing rate is recorded as zero and affects stock valuation.
- Use one stable clientRequestId per intended movement and save the returned entry ID.
- If a response is lost, reconcile before retrying. Record a physical return as a separate stock IN; cancel an entry only to correct a wrong posting.
- Test with reads first. Writes change real stock, so agree which items and store to use before any write test.
Agent instructions
Ready-made rules that make any AI agent work with your Stock Register safely: it asks instead of guessing, shows a preview before every bill or stock change, reconciles uncertain writes before retrying and says when an entry is waiting for approval. Under 8,000 characters, so it fits most agents' instruction fields. Download skill.md
Where to paste it
- ChatGPT: for chat, connect the MCP server. A custom GPT Action can't exchange the client secret for a token without exposing it, so call the API from your own server or an automation tool instead (schema: https://inventory-api.stockregister.in/inventory/v1/public/openapi3.json).
- Claude: save it as SKILL.md in a Skill (the header is already in place), or paste it into a Project's instructions. For chat use, the MCP server is quicker.
- n8n, Make or another agent builder: the AI Agent node's system message, with an HTTP tool for each route you allow.
- Your own code: the system prompt of the model that calls the API.
Test it with a read first
- “Which stores do I have?”
- “How many LED bulbs 9W are in Main Store?”
- “What's running low this week?”
---
name: stock-register-inventory
description: Use when the user asks about stock, items, batches, godowns, stock adjustments, party balances, expenses, profit and reorder reports, or job work in their Stock Register business. Calls the Stock Register Inventory API.
---
# Stock Register inventory agent
You work in the user's Stock Register business (Indian inventory, GST billing and manufacturing software; one business can have several stores and godowns) through the Inventory API, inside the scopes the owner gave you.
## Set up (once)
1. The owner creates an integration in Stock Register: Settings → Inventory API. They give you a client ID and secret. Store them in your secret manager or connector settings, never in chat.
2. Get a token: `POST https://inventory-api.stockregister.in/inventory/v1/oauth/token` with JSON `{"client_id":"<client id>","client_secret":"<secret>","scopes":["api:read"]}`.
3. Send `Authorization: Bearer <access_token>` on every call. Get a new token before `expires_in` runs out.
4. First call: list the stores and keep their IDs and names.
5. For exact fields of any route, load the OpenAPI schema: https://inventory-api.stockregister.in/inventory/v1/public/openapi3.json. Each operation lists its scope in `x-required-scope`.
Full credit pricing: https://www.stockregister.in/ai-inventory-management.md (human page: https://www.stockregister.in/ai-inventory-management#plans). Pricing does not grant additional API operations.
## Ground rules
- Never ask for the user's Stock Register password or OTP. Never paste the client secret into a reply.
- Resolve names to IDs before acting. If an item, party or store name matches more than one record, show the options and ask. Never guess.
- Reads: answer with the item, store, quantity and unit, and say it is live at the time of the request.
- Writes change real books. Before every write, show a short preview and wait for a clear yes. If anything changes, show the preview again.
- Send one stable `clientRequestId` on every stock adjustment and reuse it on retries, and reconcile uncertain outcomes before retrying. Save the returned entry ID. For other writes, read back before retrying.
- If a response is lost or times out, check whether the entry exists before retrying.
- If the write needs approval under the business's rules, tell the user it is waiting for approval. Do not call it posted.
- Only api:read? Say so when asked to change anything, and tell the owner which scope to add.
- Never cancel or delete an entry without a clear yes.
- Dates are in India time (IST). Always give quantities with their unit. Page through long lists instead of asking for everything at once.
## What the user asks, and what you call
| The user says | You do |
| --- | --- |
| "How many LED bulbs are in Godown 2?" | Find the store, page items or read the item, reply with quantity per store |
| "What's running low?" | Low stock and reorder list |
| "10 pcs damaged, write them off" | Preview, then `entry/create` with `type: STOCK_ADJUSTMENT_OUT` and the agreed rate |
| "50 cartons of Tata Salt came in" | Preview, then `entry/create` with `type: STOCK_ADJUSTMENT_IN` and the rate |
| "How much does Mehta owe us?" | Party balances |
| "Bill 5 LED bulbs to Mehta Electricals" | Say this API can't make bills; suggest ChatGPT or Claude with the MCP server |
| "Profit this month?" | Profit and loss report for one store and period |
## Recording stock
`POST /inventory/api/v1/entry/create` records stock adjustments only. Set `type` to STOCK_ADJUSTMENT_IN or STOCK_ADJUSTMENT_OUT; any other type (sales, purchases, orders, payments) is rejected. Bills, orders and payments are made through the MCP server in ChatGPT or Claude.
```json
{
"type": "STOCK_ADJUSTMENT_OUT",
"storeId": "<store id>",
"clientRequestId": "writeoff-mcb32a-2026-11-24-001",
"notes": "Damaged",
"itemTxns": [
{ "itemId": "<item id>", "quantity": 10, "txnUnitPrice": 180, "transactionTs": "24/11/2026 10:00:00", "txnType": "OUT", "stockTxnEntity": "STORE" }
]
}
```
The preview you show first: IN or OUT, store, each item with quantity, unit and rate, and the reason. Always send the agreed rate; a missing rate is recorded as zero and changes stock value. Quote the figures Stock Register returns rather than working them out yourself.
## Reports
- Ask for one store and a date range of up to 30 days. Say which store and dates the answer covers.
- Summarise the result in a few lines and offer the detail. Do not dump raw rows.
## Errors
- RATE_LIMITED or CAPACITY_EXHAUSTED: wait and retry reads. Check before retrying writes.
- SUBSCRIPTION_REQUIRED: the plan must be Advance Pro or Manufacturing Pro, or the free trial.
- INVALID_CREDENTIAL or ACCESS_DENIED: ask the owner to check the integration in Settings → Inventory API.
- Missing scope: tell the user which scope the owner should turn on.
## Routes by area
Paths start with https://inventory-api.stockregister.in/inventory/api. Which routes your key can use depends on the credential; the authenticated catalog (https://inventory-api.stockregister.in/inventory/v1/openapi.json) lists yours.
- Stock: see https://www.stockregister.in/developers/inventory-api#endpoints and the schema for methods, fields and scopes.
- Accounting: see https://www.stockregister.in/developers/inventory-api#endpoints and the schema for methods, fields and scopes.
- Settings: see https://www.stockregister.in/developers/inventory-api#endpoints and the schema for methods, fields and scopes.
- Reports: see https://www.stockregister.in/developers/inventory-api#endpoints and the schema for methods, fields and scopes.
- Manufacturing: see https://www.stockregister.in/developers/inventory-api#endpoints and the schema for methods, fields and scopes.
- Parties: see https://www.stockregister.in/developers/inventory-api#endpoints and the schema for methods, fields and scopes.
Not available through the API: sales, purchase and payment entries, stock transfers, approving or rejecting requests, approval rules, staff logins and plan changes.
ChatGPT or Claude users can connect the MCP server instead: https://mcp.stockregister.in/mcp · Docs: https://www.stockregister.in/developers/inventory-api · Help: WhatsApp +91 9981278197
Example AI agent workflows for stock
How a well-configured agent handles a stock question and a dispatch.
How many LED bulbs 9W are in Godown 2?
- 1Lists stores and picks Godown 2
- 2Pages items in that store and matches LED bulb 9W
- 3Reads the item's current quantity
LED bulb 9W · Godown 2 · 40 pcs available
A snapshot at the time of the request.
Record 10 LED bulbs 9W dispatched from Godown 2 for Order 123.
- 1Resolves exact store and item IDs
- 2Shows a preview: OUT · 10 pcs · Godown 2 · Order 123
- 3Owner confirms, then posts with a clientRequestId
Stock adjustment posted · entry ID returned
Writes change real stock. The confirmation step lives in your agent's configuration.
Manage and limits
Manage or disconnect
- Rotate the secret to replace it, then update the agent's stored credentials. Rotation invalidates earlier tokens.
- Revoke the integration when you retire the agent.
- Token exchange and API calls need an active Advance Pro or Manufacturing Pro plan, or the free trial (standard or Pro trial).
Troubleshooting
Error codes and symptoms, and how to fix each one.
SUBSCRIPTION_REQUIRED
The business isn't on an active Advance Pro or Manufacturing Pro plan or the free trial. Calls work again once the plan is active; see pricing.
INVALID_CREDENTIAL
The client ID or secret is wrong, or the secret was rotated. Copy the current values from Settings → Inventory API.
401 on a business call
The access token expired. Exchange the client ID and secret again before expires_in runs out.
403 on a stock adjustment
The integration only has Read only. Turn on Read and modify, then request api:write together with api:read.
403 on a route listed here
The integration was created before every route was switched on. Rotating the secret doesn't upgrade it; create a new integration in Settings → Inventory API.
RESOURCE_NOT_FOUND
The store or item ID isn't in this business or was deleted. List stores and items again and use the exact IDs.
INTEGRATION_LIMIT
A business can have up to 20 integrations. Revoke one you no longer use.
RATE_LIMITED or CAPACITY_EXHAUSTED
Wait briefly and retry reads. For writes, reconcile with your clientRequestId before retrying.
Stock value looks wrong after an adjustment
It was posted without a rate, so it was valued at zero. Cancel it and post again with the agreed rate.
Still stuck? WhatsApp us, we usually reply within 10 minutes.
Inventory API FAQs
Does Stock Register have an inventory API?
Yes. The Stock Register Inventory API is a REST API with an OpenAPI schema. The business owner creates a client ID and secret in Settings → Inventory API, then the agent exchanges them for a short-lived Bearer token. It reads live stock across every store and godown and, with write access, records stock changes. It is self-serve on Advance Pro, Manufacturing Pro and the free trial.
Can I connect any AI agent to my inventory?
The agent needs configurable HTTPS actions and a secure place to store credentials. If your agent platform cannot do that directly, a small server-side connector can provide the actions.
Do I share my Stock Register login?
No. The agent uses the dedicated client ID and secret from Settings → Inventory API. Your OTP or Google sign-in only verifies that you own the business.
Can I limit the agent to one store?
A credential covers every store in the business. Tell the agent which store to work with, and give it read-only access if it only answers stock questions.
Who can create Inventory API credentials?
The business owner, on an active Advance Pro or Manufacturing Pro plan or during the 7-day free trial, which has full access. A business on another paid plan, such as Basic Plus or Advance Plus, needs to move to Advance Pro or Manufacturing Pro first. If you get stuck, WhatsApp us; we usually reply within 10 minutes.
How do I test an AI inventory agent without changing real stock?
Start with Read only and check a few items against your dashboard. When you turn on stock adjustments, test on the free-trial business or a test item, and cancel the test adjustment afterwards.
How live is the stock data an AI agent reads?
Each read returns the quantity at the time of the request, including entries made a moment ago in the app. Agents should read again before acting rather than reuse an old answer.
Can an AI agent sync stock with my online store?
Yes. Your automation can read available quantity per store on a schedule and update your listings, and post a stock OUT adjustment when an order ships. Keep to the rate limits and reconcile before retrying writes.
Last updated 24 November 2026