chatmated
EN
Try it
Square

Square connection: how much came in through Square yesterday across all points of sale

You can create the Square connection yourself in the Chatmated app on the Connections page: for now it reads the total in euros and the number of yesterday's completed payments across all active locations. A comparison of locations and a list of individual payments are something we build to order. You need the Square Production Access token, which has full access and cannot be limited to reading.

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

What the connection reads

  • The list of locations and the status of each location
  • Payments by time period and location: status, total amount and currency
  • With each payment, the amount that has been refunded

What it does when you confirm

  • The ready-made connection shows yesterday's total in euros and the number of completed payments in the morning view, on the row Paid yesterday (Square)
  • Can be built to order so that each location is on a separate row in the morning view

What it does not do

  • Does not take payments or make refunds
  • Does not change locations, products or prices
  • Does not see card numbers

What we need from you. The Square Production Access token. You find it in the developer console at developer.squareup.com/apps: your application, Credentials, the Production view. A Sandbox token will not do.

How much came in through Square yesterday?How many payments were made yesterday across all points of sale in total?Is the Square token still valid?

Several points of sale, one number

In Square every shop, counter or point of sale is a location of its own, and payments belong to a location. If you have two cafes, or a shop and a market stall, this means that the day's income is split between several places in Square. In the morning you mostly want to know one thing: how much came in altogether.

The ready-made connection adds the row "Paid yesterday (Square)" to the morning view. The row has the total in euros of yesterday's completed payments and their number, all active locations added together. The start and end of yesterday are taken by Estonian time.

The app does not read locations that Square has marked as inactive. If there are more than five active locations, the first five of them reach the row. In that case it is worth ordering a solution where every point of sale is on its own row and none is left out.

How to get the Production Access token

  1. Sign in to the Square Developer Console at developer.squareup.com/apps. Open your application or create a new one named Chatmated.
  2. Open Credentials on the left and choose Production at the top of the page.
  3. Click Show in the Production Access token box and copy the token.
  4. Paste the token into the Square form on Chatmated's Connections page.

The form has one field, named Production Access token. On saving, the app asks Square for the list of locations straight away. If Square does not recognise the token, the form says that you need to copy the Production Access token, not the Sandbox one, and that it is on the Credentials page of your application. So before copying, check which view is selected at the top of the page. If Square does not respond at all, for example because of a momentary fault, the form does not blame the token but asks you to try again in a couple of minutes.

What goes into the total

Step What the app asks Square for
Locations All locations; those whose status is INACTIVE are set aside
How many locations Up to the first five active ones
Payments Yesterday's payments of each location, a hundred at a time, up to five pages per location
Counted Only a payment with the status COMPLETED
Euro total The payment's total amount minus the refunded amount

So up to five hundred payments a day are read per location. A payment that is still in progress or that failed is not counted, because its status is not COMPLETED. If money has been partly or fully returned for a completed payment, the refunded amount is deducted from the payment.

The time limits go to Square as moments precise to the time of day. That way Estonian midnight stays in place even if some location is recorded in Square with another time zone. Payments are requested for each location separately and are added together only in the app.

A payment made in another currency is included in the number of payments, but it is not added to the euro total. If the number and the total do not match up, this is usually the reason.

The app does not ask Square again on every view. The result is remembered for fifteen minutes, and during that time the same number is shown.

The token has full access

This has to be said plainly: a Square personal token cannot be limited to reading only. Whoever holds the token can do everything on your Square account that the API allows. Chatmated uses it for two requests, reading locations and yesterday's payments, and makes no payments or refunds. The token is stored encrypted.

If you want to replace the token, you can create a new one on Square's Credentials page and put it in place of the old one on the Connections page. In the developer console you can also create a separate application for Chatmated, so that its token is apart from the others.

Viewing the status and pausing

After connecting, the Square row has a "Manage" button. The window that opens has three things to look at: the status of the connection, the time of the last check and a description of what is read. And four things to do: check again straight away, replace the token, pause reading or start it again, and remove the connection. Removing requires a separate confirmation. Pausing does not delete the token, but no request at all is made to Square while the connection is paused.

Once a day the app tries the token itself. If Square rejects it twice in a row, the connection is marked as broken and an email is sent to the account owner. If Square fails to respond, this is treated as a temporary disruption and the status of the connection does not change.

The same works through Chat. On request, the app's agent checks whether Square responds and tells you the result. If you wish to pause or remove the connection, it shows a confirmation button and acts after the click. It does not ask you for the token in Chat, but gives a link that opens the Square row on the Connections page.

What the Square connection does not do yet

A comparison of locations, a list of individual payments and sales by product do not belong to the self-connect part; we build those to order. If part of your payments come from the web, see the page Stripe connection, and if you use another terminal, the page SumUp connection. The morning of a place to eat as a whole is covered on the page restaurant and cafe.

The Square connection is built on the basis of Square's public documentation, and it has not yet been tried with a real account.

Questions

I have several points of sale. Does each one need its own connection?

No. One token sees the locations of the whole account. The app reads the payments of up to five active locations and adds them into one row. Locations as separate rows are something we build to order.

Will a Sandbox token do for trying it out?

No. Sandbox is Square's test environment, and the app requests data from the live environment. Choose Production at the top of the Credentials page and copy the token there.

Can the token be limited to reading only?

It cannot. A Square personal token has full access. Chatmated uses it only to read locations and payments and does not initiate a single payment or refund.

Sources

  1. Square Developer: Access tokens · read 17 November 2026
  2. Square Developer: Payments API, List payments · read 17 November 2026
  3. Square Developer: Handling errors · read 17 November 2026

Same group: online shop and till