Jump to content

"No Active Subscription (MSE)" message from live environment - Sage Accounting UK.


 Share

Recommended Posts

In my test environment (pointing to an app connected to a test subscription of Accounting) I'm able to do what I want - create, list and edit invoices, for example.  When I point to the live environment (after changing the client id etc to make sure that it is only that one app connected to the subscription) I get access tokens back and can refresh my tokens but as soon as I try to list invoices I get an unauthorised response: [{"$severity":"error","$dataCode":"AuthorizationFailure","$message":"No active subscription. (MSE)","$source":""}]

The app has been authorised and connected to a live, active subscription and I can't see why I'd be getting that. Any thoughts or obvious gotchas?

 

Link to comment
Share on other sites

Hi @Paul Dunscombe

"after changing the client id etc to make sure that it is only that one app connected to the subscription" - The client_id registered for a 3rd party app has no relationship to a subscription.

It's the X-Business Header param that allows requests to be routed to different businesses. If you don't specify the X-Business header in the request it automatically goes to the lead business the authenticated user is associated with. This may not have a valid subscription hence the response. I've included links to docs which elaborate more on this below:

https://developer.sage.com/accounting/guides/concepts/multi_business/
https://developer.sage.com/accounting/guides/concepts/best_practices/

If you DM me the email address used for the auth I'll be able to see which businesses they're related to and if the lead business has a valid subscription.

Thanks

Mark

Link to comment
Share on other sites

11 hours ago, Steel, Mark said:

Hi @Paul Dunscombe

"after changing the client id etc to make sure that it is only that one app connected to the subscription" - The client_id registered for a 3rd party app has no relationship to a subscription.

It's the X-Business Header param that allows requests to be routed to different businesses. If you don't specify the X-Business header in the request it automatically goes to the lead business the authenticated user is associated with. This may not have a valid subscription hence the response. I've included links to docs which elaborate more on this below:

https://developer.sage.com/accounting/guides/concepts/multi_business/
https://developer.sage.com/accounting/guides/concepts/best_practices/

If you DM me the email address used for the auth I'll be able to see which businesses they're related to and if the lead business has a valid subscription.

Thanks

Mark

That's great, Mark, thanks for getting back to me and pointing that out. Now that I'm aware of that, I've been able to make the required calls, filter it out to the correct business and move on. Would have been ideal if this had been more obvious in the documentation but really appreciate your speedy reply.

Cheers,

Paul.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...