Jump to content

Get business ID after exchange code by access token


 Share

Recommended Posts

Hi, I'm doing an integration to Sage in order to allows the clients to bring the invoices he/she has in Sage into our platform.  The problem is when the user has two or more business. How do I know to which business the user is connected to. 

Do I always need to call GET /business and then after the user selects one of the available business update my connection info to store the business ID?

Thanks in advance

Link to comment
Share on other sites

Hi Pilar, thank you for your question. 

Yes, you would need to obtain the details of the businesses the user has access to and allow them to select the business they wish your application to integrate with.

Once selected, you will need to pass the business_id in the X-Business header param of the request.  There is a guide available here that goes into further detail.

Please let us know if you have any further questions.

Thanks

Mark

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...