The purpose of this article is to help you fix errors that prevent you from establishing a successful sync between Pabau and Xero.

The errors you may encounter, as well as instructions to fix them, are given below:

Error code: 500 / Error: unauthorized_client : Unknown client or client not enabled

This error indicates that you have entered wrong Client ID information in our Pabau CRM form:

To verify the correct ClientID in your Xero App:

  1. Go to your Xero account and visit My Apps on Xero;

  2. Continue to login with your credentials;

  3. You will then see your Xero app listed, which you should have created by following the instructions on Xero Integration first setup article.

4. Select your Xero application PabauCRM2.0 to open the App details page:

5. Copy the Client ID from this page;

6. Open Pabau, and go to Setup > Integrations > Xero;

7. Click on the Connect button;

8. Copy Client ID to the integration form in our system, and click on Generate sync link to continue.

Error code: 400 / The requested URL returned error: 400

This error indicates that you have provided the wrong Client secret key, if you did not save the previously generated secret key, you will have to create a new one by visiting the details page of your Xero App, as shown in the previous case for Error Code 500 above.

  1. You can either ignore, or delete the previous secret key

  2. Continue to create a new secret key by clicking on Generate another secret button.

  3. Copy and paste immediately that key somewhere where you can visit again;

  4. Open Pabau, and go to Setup > Integrations > Xero;

  5. Click on the Connect button;

  6. Copy Client Secret key to the integration form in our system, and click on Generate sync link to continue.

Error code: 500 / Error: unauthorized_client : Invalid redirect_uri

This error indicates that you did not setup the correct OAuth2.0 redirect URI for your Xero application. You have to revisit the details page of your application as shown in the first case of "Error code: 500 / Error: unauthorized_client : Unknown client or client not enabled" .

  1. Find the field for OAuth 2.0 redirect URI and check for any spelling errors;

  2. Make that in the OAuth 2.0 redirect URI the correct URL is present, like the one below: https://crm.pabau.com/index.php?p=xero_integration *

    *If your URL isn't crm.pabau.com, replace it with your URL. For example, if your URL is clinic.pabau.me, then the URL you should use is
    https://clinic.pabau.me/index.php?p=xero_integration

  3. Click on the Save button, to update the details of your application;

  4. Retry the integration procedure as demonstrated in Xero Integration first setup article.

Did this answer your question?