chatmated
EN
Try it
Zettle

Zettle connection: how much was sold through the Zettle till yesterday and how many purchases were made

You set up the Zettle connection yourself in the Chatmated app on the Connections page: at present it reads the total of yesterday's purchases in euros and the number of purchases, with refunds subtracted from the total. Sales by product and the split by payment method are something we build to order. You need a Zettle API key that has only the READ:PURCHASE scope, and the Client ID that is created along with the key.

Connect it yourself

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 ZettleThe account takes a minute. Three days are free and no card is asked for.

What the connection reads

  • The list of purchases in the chosen period: amount in cents and currency
  • A marker of whether the row is a purchase or a refund
  • A cursor with which a long list of purchases is read through in parts

What it does when you confirm

  • The ready-made connection shows, in the Zettle sales yesterday row of the morning view, yesterday's total in euros and the number of purchases
  • To order, it can be built so that sales are visible by product or by till

What it does not do

  • Does not make or cancel purchases
  • Does not change products or prices
  • Does not ask Zettle for any scope other than reading purchases

What we need from you. A Zettle API key and Client ID. You create them as the account owner at my.zettle.com: Integrations, Integration tools, API Keys. Choose only READ:PURCHASE as the scope.

How much was sold through the Zettle till yesterday?How many purchases were made at the till yesterday?Have refunds been taken off yesterday's total?

The till day as one row

Zettle is the till on the counter and every purchase rung through stays in Zettle's purchase history. At the end of the day the state of the till is known to whoever was on shift at the time. An owner who did not stand behind the counter hears the number when they ask or when they open the Zettle report.

The ready-made connection turns this into the morning view row "Zettle sales yesterday". The row has the total of the purchases of yesterday's Estonian calendar day in euros and, below it, the number of purchases. The total includes VAT, because Zettle gives out the purchase amount with tax.

Creating the API key in Zettle

To create the key, sign in as the account owner.

  1. Sign in as the account owner at my.zettle.com and open Integrations, Integration tools, API Keys.
  2. Click Create API Key, name it Chatmated and choose only the READ:PURCHASE scope.
  3. Click Create key, confirm with your password and click Copy key. A Client ID is created along with the key.
  4. Paste the API key and the Client ID into the Zettle form on Chatmated's Connections page.

The guide on the Connections page has a button that takes you straight to the Zettle API keys page, so you do not have to look for the right place in the menus. The form has two fields: Client ID and API key. After saving, the app tries to exchange them in Zettle for a temporary token. If Zettle rejects the pair, the form says what to look over: whether the API key and the Client ID are from the same key and whether the key has the READ:PURCHASE scope. If Zettle does not answer at all, the form suggests trying again in a few minutes and does not look for a fault in the key.

What is read from the purchases

Row in Zettle's purchase list In the number of purchases In the total
Purchase in euros Yes Added
Refund in euros No Subtracted, because a refund is a negative row
Purchase in another currency Yes Not added

The app asks Zettle for the purchases that fall between the start and end moment of yesterday. One request returns up to a thousand rows and up to three requests are made, so up to three thousand rows fit into one day. For an ordinary day of a café or a shop that leaves room to spare.

In Zettle a refund is not a correction of the earlier purchase but a row of its own with a negative amount. That is why a refund does not increase the number of purchases but takes its share off the total. If ten coffees were sold yesterday and one of them was refunded, the number is still ten and the total is smaller by one coffee.

The number stays the same for a quarter of an hour. If you look at the morning view twice in a row, no second request goes to Zettle.

A purchase in another currency is included in the number of purchases but does not change the euro total. If your till works only in euros, you will not meet this exception. The app calculates the boundaries of the period by Estonian midnight and gives them to Zettle to the minute.

Why only one scope

When a key is created, Zettle lets you choose what the key may do. The READ:PURCHASE scope only allows reading purchases. This is more convenient than with those providers where a key inevitably gets the rights of the whole account: here you do not have to rely only on the app behaving politely, because the key itself is good for nothing else. Chatmated makes only read requests to Zettle and keeps the API key and the Client ID encrypted.

The API key does not expire with time. It is valid until you revoke it in Zettle. Before every read the app uses the key to get a new token that is valid for two hours.

State, pausing and replacing the key

On the Connections page the Zettle row has a "Manage" button. From there you see the status of the connection, the time of the last check and what is read. With the buttons you can have the connection checked straight away, enter a new key, pause reading and start it again, or remove the connection. Before removal you have to confirm. If the café is closed for staff holidays, pausing is enough: the key stays in place, nothing is simply asked of Zettle until you press the resume button.

Every night the app goes through all the connections once. If Zettle says twice in a row that the key does not fit, the connection is broken and the account owner gets an e-mail about it. If Zettle is simply unreachable, nothing is concluded from that.

In the chat you can ask the agent whether the Zettle connection is in order. It checks and answers. It can pause, resume or remove only once you have pressed the confirmation button that it puts in front of you. To replace the key it gives a link to the right row on the Connections page; the key is not asked for in the chat.

What the Zettle connection does not do yet

Sales by product, the split by payment method and the comparison of several tills are not in the self-connect part. We build these to order. If you have another terminal instead of or alongside Zettle, read the page SumUp connection. How the till number fits together with an eating place's morning is written on the page restaurant and café, and adding up several sales channels is described in how much was sold yesterday.

The Zettle connection has so far not been tried out with any real account; it is made from Zettle's public developer documentation.

Questions

Why does the form ask for two things when I created one key?

Zettle gives two values when a key is created: the API key and the Client ID. The app exchanges them together for a short-lived token, so both must be from the same key.

Is the total with or without VAT?

With VAT. Zettle gives the purchase amount in cents including VAT and the app adds them up as they come.

How long is a Zettle key valid?

Until you yourself revoke it in Zettle. For every read the app uses the key to get a new temporary token; the key itself does not change in the process.

Sources

  1. Zettle Developer: Create an API key · read 17 November 2026
  2. Zettle Developer: Set up authorisation assertion grant · read 17 November 2026
  3. Zettle Developer: Fetch a list of purchases · read 17 November 2026

Same group: online shop and till