chatmated
EN
Try it
Stripe

Stripe connection: how much came in by card yesterday

You can set up the Stripe connection yourself in the Chatmated app on the Connections page: for now it reads the total and number of yesterday's successful card payments. Reading payouts, disputes and subscriptions is something we build to order. The connection accepts only a restricted key that has two read permissions.

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

What the connection reads

  • Payments (charges): amount, currency, status and the refunded part
  • The account balance
  • Payouts and disputes, if the key is also given read permission for them

What it does when you confirm

  • The ready-made connection shows yesterday's takings and the number of payments in the morning view
  • Can be built so that failed payments and disputes come into the morning view as separate rows

What it does not do

  • Does not make payments, refunds or payouts
  • Does not accept a secret key with full access (sk_)
  • Does not see card numbers

What we need from you. A Stripe restricted key (starts with rk_live_) that has the Balance and Charges permission set to Read and everything else to None. You create it on the API keys page of the Stripe dashboard with the Create restricted key button.

How much came in by card yesterday?How many payments came in yesterday?Were yesterday's takings bigger than the day before?

What you see in the morning

If you sell with card payments, the first question of the morning is how much came in yesterday. The Stripe dashboard has that number, but you have to sign in there separately and pick the dates by hand.

The ready-made connection brings one row into the morning view: the total in euros of the successful card payments of yesterday's calendar day, and their number. The day is counted by Estonian time from midnight to midnight, not by the last 24 hours. Failed and unfinished payments are not counted. The refunded part is deducted from the total.

How the restricted key is created

Stripe distinguishes two kinds of keys. A secret key (starts with sk_) allows everything. A restricted key (starts with rk_) allows only what you tick yourself. The connection needs a restricted key with two read permissions.

  1. Open the API keys page in the Stripe dashboard (dashboard.stripe.com/apikeys).
  2. Click Create restricted key and name it Chatmated.
  3. Leave every permission on None. Set only Balance and Charges to Read.
  4. Click Create key and copy the key right away. Stripe shows it only once.

Paste the key under the Stripe row on Chatmated's Connections page. The app tries both permissions straight away: it asks for the balance and one payment. If one permission was left unticked, the app says so at once, not the next morning with an empty row.

What this key can and cannot do

Action Possible with this key
Viewing the balance Yes
Reading the list of payments Yes
Making a refund No
A payout to a bank account No
Changing a customer or a price No

This is the reason the app requires a restricted key. Even if the key should somehow fall into the wrong hands, money cannot be moved with it. You can delete the key on the same Stripe page at any time, and the connection stops working at once.

If the number does not match the dashboard

Three reasons why the total in the morning view may differ from the one in the Stripe dashboard.

  • The dashboard may show the gross amount before refunds; the app shows the amount after refunds.
  • The dashboard's time zone may be set differently from Estonian time, so the boundary of the day is in a different place.
  • Payments in other currencies are included in the dashboard, but not in the app's total.

Stripe's fee is not deducted from the total: the row shows what customers paid, not what reaches the bank account.

If the connection stops working

A restricted key does not expire by itself. The connection breaks when someone deletes the key in the Stripe dashboard or changes its permissions. Chatmated checks every connection once a day in the early morning. If Stripe says on two consecutive attempts that the key is not valid, the connection is marked as broken and the account owner gets an email with a link to the Connections page. If Stripe simply does not respond, this is not counted as a broken key and it is tried again the next day.

To fix it, create a new restricted key in Stripe with the same two permissions and paste it in place of the old one on the Connections page. If you changed only the permissions, it is enough to set Balance and Charges back to Read and click the try-again button on the Connections page.

What the Stripe connection does not do yet

The payout schedule, disputes, the state of subscriptions and linking a payment to a particular order in the shop are not in the self-connect part. We build those to order. How card payments fit together with shop orders and accounting, read on the page online shop. If you use Montonio for bank links, there is a separate page about it, Montonio connection.

We have tried the Stripe connection with our own Stripe account: the key check and the reading of yesterday's payments worked. Nobody has connected it with a customer's account yet.

Questions

Why does the app not accept my sk_ key?

With a secret key anything can be done on a Stripe account, including paying money out. It is not needed for reading and should not be given to anyone. The app checks the start of the key and asks you to create a restricted key, which starts with rk_.

Which currency is the total in?

The ready-made connection adds up payments made in euros. Payments in other currencies are left out of the total, because adding different currencies together would give a wrong number.

Are refunds taken into account?

Yes. The part that has been refunded is deducted from the amount of each payment, so the row shows what was really left.

Sources

  1. Stripe Docs: API keys · read 16 November 2026
  2. Stripe API: List all charges · read 16 November 2026
  3. Stripe API: Retrieve balance · read 16 November 2026

Same group: payments