I'm using your API to import data to Sage. It has been working fine but today I'm getting an error message that I don't understand when calling the GetAllLedgerAccounts and GetBankAccounts functions.
"$message": "jwt audience invalid. expected: api.sbc-accounting.sage.com",
Yesterday we reset our Sage Business Cloud application to clear out the data and I’ve just been trying to get it up and running again, I did have it working briefly but now it’s stopped working again.
Do you know what this error means?
Can you please send your full access token to our developer support at
Already sent it before posting this, no response yet, but the issue seems to have gone now.
thanks, I've received your email. It looks like you try to make an API request with the refresh token. Please use the refresh token to get a new access token as described in "Renew an Access Token" at https://developer.sage.com/api/accounting/guides/authentication/
You may decode the JWT by yourself to see the different audiences of the access token and the refresh token, if you like.
Hope that solves the issue for you
Great, thanks for that.