You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SDK you're using (please complete the following information):
Version [5.0.0]
Describe the bug
CreateInvoicesAsync throws a 403 error for Token / Tenant with accounting.transactions scope that works for other calls.
To Reproduce
Steps to reproduce the behavior:
Reset Demo Company (UK)
Get a token for Demo Company (UK) - with the scopes: offline_access openid profile email accounting.transactions.read accounting.transactions accounting.settings.read accounting.contacts
Refresh the token
Get the TenantId for Demo Company (UK)
Make some calls, such as GetAccountsAsync, GetTaxRatesAsync, GetContactsAsync, CreateContactsAsync, UpdateContactAsync - they all work fine with the Token and TenantId (all are logged in the developer console)
Now try calling CreateInvoicesAsync with the same Token and TenantId - it crashes with a 403, and makes no entry in the developer console history log.
Expected behavior
To create the invoice just as it did before updating the NuGet package to the latest version.
There is insufficient information to understand what's going wrong here. Rolling back to the previous NeGet versions is not resolving the issue.
The text was updated successfully, but these errors were encountered:
This problem is caused by the plethora of NuGet packages used by the Xero API - if any are not quite the right version (i.e. upgraded to the latest version), the API randomly starts playing up. I think I'm going to have to move anything to do with Xero to its own isolated solution / project so that I can keep all the NuGet packages for our other projects up-to-date without worrying about the Xero API falling over. It is worth noting that CreateInvoiceAsync is still throwing a 403 error in some circumstances, without giving any detail on what is wrong with the invoice causing that error to be thrown.
SDK you're using (please complete the following information):
Describe the bug
CreateInvoicesAsync throws a 403 error for Token / Tenant with accounting.transactions scope that works for other calls.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
To create the invoice just as it did before updating the NuGet package to the latest version.
There is insufficient information to understand what's going wrong here. Rolling back to the previous NeGet versions is not resolving the issue.
The text was updated successfully, but these errors were encountered: