Skip to main content

Connect Zuora to Tesorio

Create an API user or OAuth client in Zuora, connect it in Data Sources, and start the first import.

Tesorio signs in to Zuora with a dedicated API user, or with an OAuth client created under that user. This article covers what to set up in Zuora, 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.

  • A Zuora administrator, for the steps in Zuora. They can be the same person.

  • Decide how Tesorio signs in. The OAuth client is recommended: it is more secure, and some features, such as attachments, need it.

  • If your Zuora tenant is outside the default US data center, have its API address ready, for example https://rest.eu.zuora.com.

  • If your company also uses NetSuite, contact Tesorio support before you click Start onboarding: some settings must be in place before the first import.

In Zuora

  1. Create a dedicated API user for Tesorio, not a person's own login. See Zuora's guide Create an API User.

  2. Give the user's role the permissions shown below. If Invoice Settlement is on in your tenant, the role also needs access to credit memos: that is how Tesorio finds out Invoice Settlement is on.

  3. To use an OAuth client, open Settings > Administration > Manage Users, check that the API user is Active, and click its username.

  4. At the bottom of the user's page, create an OAuth client with a clear name, such as "Tesorio Integration", and click Create.

  5. Copy the Client ID and Client Secret right away. Zuora shows the secret only once. If you lose it, create a new client.

An OAuth client has the permissions of the user it is created under. Each Zuora tenant needs its own client, so a sandbox and a production tenant need separate ones.

The permissions the API user's role needs:

In Tesorio

  1. Open Administration > Data Sources. New customers also see a Zuora card in Time to Connect, but it opens an older form; these steps use Data Sources.

  2. Click Add app, then Zuora.

  3. In Connect Zuora, with an OAuth client, turn on Use OAuth client flow at the bottom of the form; the first two fields change to Client ID and Client secret. Enter them. With the API user only, leave it off and enter the Username and Password.

  4. Fill in Custom API URL only if your tenant is outside the default US data center. You can't change it after the first import.

  5. Click Connect. Tesorio checks the details with Zuora before saving.

  6. On the Zuora row, click Set up fields. In Which Zuora fields do you use?, search for the fields your team uses, add each one and click OK.

  7. Click Start onboarding. Choose How much history should we import? and click Start onboarding. You can't change the history length later. Tesorio first tests that it can read accounts, contacts, invoices, invoice items and payments, then starts the first import.

If Tesorio can't connect, it shows one of these:

  • Invalid credentials: check the username and password, or the client ID and secret, and that Use OAuth client flow matches what you entered.

  • Could not reach Zuora at that address. or Must be an https URL on a .zuora.com host.: check the Custom API URL, or leave it blank for the default US data center.

Check the first import

  • The row shows Onboarding while the first import runs and Connected when it's done. Open invoices and balances come in first, then the history you chose.

  • 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. Give the API user that permission in Zuora and click Start onboarding again.

  • When it's done, open a few customers and invoices in Tesorio and compare them with Zuora.

From then on, Tesorio syncs on your company's sync schedule. See Set a Sync Schedule.

If the connection stops working

Tesorio signs in to Zuora with an API user or an OAuth client your team set up. When that sign-in stops working, Tesorio stops syncing with Zuora 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 Zuora credentials are invalid, with an Update Credentials button.

  • On Administration > Data Sources, the Zuora status is Credentials invalid.

Who fixes it

You need two people, who can be the same person:

  • A Tesorio admin: a user whose permission group includes the Administration module.

  • Your Zuora administrator, because most fixes start in Zuora.

💡 Tip: Use a dedicated API user for Tesorio, not a person's own login. When that person leaves and their user is turned off, the connection stops.

What usually causes it

  • The API user's password was changed or has expired.

  • The API user was turned off.

  • The OAuth client was deleted or its secret was replaced.

Reconnect

  1. In Zuora, check that the API user is active. If you use an OAuth client, check that it still exists under that user (Settings > Administration > Manage Users). If you create a new one, copy the client secret right away: Zuora shows it only once.

  2. On the Zuora row, click Update.

  3. With Use OAuth client flow on, enter the Client ID and Client secret. With it off, enter the Username and Password. Click Save. Tesorio checks the details with Zuora 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 asks for every setting again.

When it works

The status in Data Sources goes back to Connected. Tesorio emails your sync failure list Tesorio Sync - Credentials Updated for Zuora and starts a sync right away.

If you see an error

  • Invalid credentials: check the username and password, or the client ID and secret.

  • Could not reach Zuora at that address. or Must be an https URL on a .zuora.com host.: check the Custom API URL. Leave it blank unless your Zuora tenant is outside the default US data center.

  • Data has already been imported from this account, so it can't be switched to another one.: the Custom API URL can't change once Tesorio has imported data. To move to another Zuora tenant, contact Tesorio support.

If you still can't reconnect, contact Tesorio support and include the error message.

Related articles

Did this answer your question?