Tesorio reads Stripe Billing with a restricted API key created in the Stripe account you want to connect. This article covers the key's permissions, how to connect it in Tesorio, and how to check the first import.
Before you start
A Tesorio admin: a user whose permission group includes the Administration module.
Someone who can create restricted API keys in your Stripe account. They can be the same person.
Know whether your company uses Cash Application. If it does, the key needs two extra write permissions, listed below.
In Stripe
Sign in to the Stripe account you want to connect and open API keys.
Click + Create restricted key.
Select Providing this key to another website.
Enter a name, such as "Tesorio", and the website
https://dashboard.tesorio.com. Then tick Customize permissions for this key.Set the permissions below. Start each group at None, and leave everything not listed as it is.
Click Create key. If Stripe asks you to verify your email address, do that, then come back to the tab.
Copy the key. It starts with
rk_live_.
The permissions the key needs:
Core, Read: Balance, Balance Transaction Source, Balance Transfers, Charges and Refunds, Customers, Events, Files, Payment Intents, Payment Method Domains, Payment Methods, Shipping Rates.
Billing, Read: Credit balances, Credit grants, Credit notes, Features, Invoices, Subscriptions, Tax IDs, Tax Rates.
Connect, Read: Accounts.
Payment Records, Read.
Webhook Endpoints, Write: Tesorio uses it to add the webhook endpoint that sends it changes as they happen.
With Cash Application: Write for Invoices (under Billing) and for Payment Records. Tesorio uses them to post payments to Stripe and attach them to invoices.
In Tesorio
Open Administration > Data Sources. New customers also see a Stripe Billing card in Time to Connect, but it opens an older form; these steps use Data Sources.
Click Add app, then Stripe Billing.
In Connect Stripe Billing, paste the key in Restricted API key and click Connect. Tesorio checks the key with Stripe before saving.
Optional: click the arrow at the start of the Stripe Billing row and open the Filters tab to choose what Tesorio pulls: which invoice statuses (by default open and paid), which connected accounts, and rules that import or skip customers and invoices by a Stripe field or metadata key.
Click Set up fields. In Which Stripe Billing fields do you use?, search for the fields your team uses, add each one and click OK.
Click Start onboarding. Tesorio first tests that it can read customers, invoices, payment intents and credit notes, then starts the first import.
If Stripe rejects the key, Tesorio shows Invalid Stripe API key. Copy the whole key again from Stripe.
Check the first import
The row shows Onboarding while the first import runs and Connected when it's done. Open invoices come in first, then the last 24 months of history.
Once the open invoices are in, Tesorio adds a webhook endpoint to your Stripe account. Don't delete it: it's how changes reach Tesorio as they happen.
To see how it went, click the arrow at the start of the row and open the History tab.
If the test fails, open the Test connection tab to see what Tesorio couldn't read. Add that permission to the key in Stripe and click Start onboarding again.
When it's done, open a few customers and invoices in Tesorio and compare them with Stripe.
If the connection stops working
Tesorio reads Stripe Billing with a restricted API key your team created. When Stripe rejects that key, Tesorio stops syncing with Stripe Billing until someone updates it. Your data in Tesorio stays, but it isn't updated.
How you'll know
The people on your sync failure list get the email Tesorio Sync - No valid Credentials Alert. To choose who gets it, see Set a Sync Schedule.
Tesorio shows the banner Some integration credentials are invalid. Admins see an Update credentials link in it. Other users see Please contact your administrator.
On Administration > Integrations, the Sync card says Stripe Billing credentials are invalid, with an Update Credentials button.
On Administration > Data Sources, the Stripe Billing status is Credentials invalid.
What usually causes it
The restricted key was deleted, expired or rolled in Stripe.
If a permission was removed from the key, the status shows Last sync failed instead, and your sync failure list gets Tesorio Sync Failure Alert. Add the permission back to the key in Stripe; you don't need to update Tesorio.
Reconnect
You need a Tesorio admin (a user whose permission group includes the Administration module) and someone who can manage API keys in your Stripe account. They can be the same person.
In Stripe, create a new restricted key with the permissions listed under In Stripe above.
In Tesorio, open Administration > Data Sources.
On the Stripe Billing row, click Update.
Paste the key in Restricted API key and click Save. Tesorio checks the key with Stripe before saving.
Use Data Sources rather than the Update credentials link in the banner or Update Credentials on the Integrations page. Those open an older form that also resets your customer and invoice filters unless you enter them again.
When it works
The status in Data Sources goes back to Connected. Tesorio emails your sync failure list that the credentials were updated and starts a sync right away.
If you see an error
Invalid Stripe API key: copy the whole key again from Stripe. It starts with
rk_live_for a restricted key. Use a key from the same Stripe account you connected before.
If you still can't reconnect, contact Tesorio support and include the error message.










