Erply connection: what is in stock and what is in the till, without opening a report
You can set up the Erply connection yourself in the Chatmated app on the Connections page: at present it reads the total and number of yesterday's sales documents. Reading stock levels, the till and purchases we build to order on top of Erply's public API. The API provides stock levels by warehouse, sales documents, till day totals, purchase documents and customers, so stock and till questions can be answered straight from Erply's data.
You can set up this connection yourself in the Chatmated app. What the ready connection reads today is written at the top of the page. Below is everything the program's API allows: the rest we build on request.
Connect ErplyThe account takes a minute. Three days are free and no card is asked for.
What the connection reads
- Stock levels by warehouse: amount in stock, reserved amount, reorder point and restock level (getProductStock)
- Sales documents by period, warehouse and till: invoices, till receipts, quotes, orders (getSalesDocuments)
- Till day totals by payment method: cash, card, transfer (getPointOfSaleDayTotals)
- Purchase documents and their state: pending, partially arrived, arrived (getPurchaseDocuments)
- Customers and the list of customers with an unpaid balance (getCustomers, getAccountStatements)
What it does when you confirm
- The connection can be built so that goods that have fallen below the reorder point come into the morning view
- Can be built so that a draft purchase order is prepared in advance and goes to Erply only after your confirmation
What it does not do
- Does not change stock levels, prices or documents without your confirmation
- Does not see batches or shelf lives: Erply itself says that batches do not come out in reporting
- Does not know more than Erply: a sale that has not reached Erply from the till is not in the answer either
What we need from you. Erply username, password and client code (a number of up to six digits). Erply's documentation asks the account owner to create a separate user account for the connection, so the connection does not need your own password.
What the Erply interface provides from the warehouse and the till
Erply's classic API consists of named requests. For stock and till questions six of them matter.
| Request | What it returns |
|---|---|
| getProductStock | amount in stock, reserved amount, reorder point, restock level and purchase cost |
| getSalesDocuments | sales documents: invoice, till receipt, waybill, credit invoice, quote, order |
| getPointOfSaleDayTotals | one till's totals for the day by payment method and the amount that Erply thinks should be in the till |
| getPurchaseDocuments | purchase invoices, purchase orders and returns to the supplier, with their state |
| getAmountsOnOrder | amounts that are on a purchase order but have not been fulfilled yet |
| getAccountStatements | customers who have an unpaid balance |
Writing requests exist too: saveSalesDocument creates a sales document, savePurchaseDocument a purchase document, and saveInventoryRegistration takes goods into stock. This is the reason why actions, not only answers, can be built onto Erply. The difference between reading and writing is explained in the guide what is an API.
Four owner's questions and the request behind them
What is about to run out? getProductStock gives the amount in stock for every product and, if requested separately, the reorder point. Erply describes the reorder point like this: if the amount falls below it, more goods have to be ordered. So the answer is as good as the reorder points are filled in in Erply. Two details from the documentation: the amount in stock also includes goods reserved for customers, and products with a zero amount are left out of the response by default. More on the page which products are running out.
How much was sold yesterday? getSalesDocuments takes a date range and, if wanted, a warehouse or a till. This way you can ask about the whole company, one shop or one till. The same question from the accounting side is on the page how much was sold yesterday.
Does the till balance? getPointOfSaleDayTotals gives the opening and closing time of the till, the opening amount, the total of the day's transactions and the expected amount. The cash counted by the cashier can be compared against it.
What has been ordered but has not arrived? getPurchaseDocuments allows filtering by state: pending, partially arrived, arrived. getAmountsOnOrder gives the same thing by product.
Signing in: user, password and client code
Erply has no separate API key that you copy from the settings. According to the documentation three things are needed: a username, a password and a client code, which is a number of up to six digits. The connection first makes the request verifyUser and gets back a session key. All following requests go with that key. The session key is usually valid for one hour; after that the connection signs in again.
Erply asks the builder of an integration to ask the customer for the client code and to have the customer create a user account for it. For you this means that the connection does not use your own password but its own account.
The hourly quota and the frequency of requests
Erply limits requests in two ways.
Hourly quota per account. Here Erply's own pages tell different stories. The getting-started page of the developer documentation says that the API allows up to 1000 requests an hour per account. The Erply help centre article "Hourly quota" (19.12.2022) says that the default limit is 6000 requests an hour per account. Both agree on what happens next: when the quota is used up, every request is answered with error code 1002 until the start of the next hour. You can ask Erply support for the actual limit of your account. In the same place you can also apply for the limit to be raised, by writing to support@erply.com.
Frequency per IP address. According to the help centre article (4.01.2023), the server accepts up to 10 simultaneous requests and up to 150 requests in 30 seconds from one IP address. Above that comes error code 429 and a 10-second block.
A bulk request helps to keep within the quota: one request holds up to 100 commands, and according to the help centre every command in a bulk request is counted with a coefficient of 0.1.
In practice one thing counts here. The stock request is not divided into pages: getProductStock returns all rows at once, and for a large product base Erply recommends requesting the response as a CSV file. Sales and purchase documents, by contrast, come 20 at a time, or up to 100 at a time if wanted. So adding up one day's sales in a large shop is several requests, not one.
The classic API and the newer service-based interfaces
Besides the classic API, Erply has separate interfaces that the documentation calls microservices: PIM (products and assortment), Reports (reports, above all the till X and Z report), Account Admin (tills and locations), WMS (more detailed warehouse management), CDN (images and files), JSON API and CAFA. These are REST interfaces that accept and return JSON.
Three things to know about them:
- Signing in is the same. The session key is requested from the classic API and sent to the new interface together with the client code in the headers sessionKey and clientCode.
- The addresses differ by account. The right address is given by the request getServiceEndpoints, and Erply warns that the addresses may change without notice.
- Some classic requests are marked as deprecated and directed to the new interfaces. For example, for the list of warehouses Erply recommends the Account Admin API, and for the till report getReports the Reports API.
The requests for stock levels, sales documents and purchase documents are not marked as deprecated.
What cannot be got from Erply's data
Erply accounts for stock on the FIFO principle: a sale takes goods from the oldest batch. But the documentation says plainly that batches do not come out in reporting and shelf life is not tracked. So the question "what will expire next week" gets no answer from Erply's data.
The other limit is timing. The connection sees what has reached Erply. Goods that are on the shelf but whose purchase invoice has not been entered do not exist as far as Erply is concerned.
Questions
Does the connection interfere with the tills?
According to the Erply help centre, requests from Erply's own point-of-sale applications are counted separately in the hourly quota and do not reduce the quota of other integrations. So the till and the connection do not eat up each other's requests.
I have several shops. Can I ask about one shop?
Yes. Erply keeps the amount separately for each warehouse, that is location, and both the stock request and the sales documents request have a warehouse filter. Sales documents can also be limited to one till.
How do I end the connection?
The connection signs in with the name and password of the user account that you created for it, and requests a new session key every hour. If you change that account's password, the connection can no longer sign in.
Sources
- Erply API: Getting Started · read 12 November 2026
- Erply API: getProductStock · read 12 November 2026
- Erply API: getSalesDocuments · read 12 November 2026
- Erply API: getPurchaseDocuments · read 12 November 2026
- Erply API: getPointOfSaleDayTotals · read 12 November 2026
- Erply API: Reports (getAccountStatements, getAmountsOnOrder) · read 12 November 2026
- Erply API: Inventory concepts · read 12 November 2026
- Erply API: New APIs · read 12 November 2026
- Erply API: Reports API · read 12 November 2026
- Erply API: Bulk API calls · read 12 November 2026
- Erply help centre: Hourly quota · read 12 November 2026
- Erply help centre: Rate limiting (error 429) · read 12 November 2026
- Erply help centre: What is an API Limit in Erply · read 12 November 2026
