简体   繁体   中英

How to get QuickBooks Company ID with REST API?

I am integrating QuickBooks service in my application . I am using REST APIs for integration.

I am seeing every call is dependent on Company ID . I want to get that in Oauth object while authenticating or with the help of any REST call. I don't want to force the user to enter Company ID in every REST call from UX , I want to do it internally by codebase.

Or if possible please suggest any other way to get it. https://developer.intuit.com/docs/api/accounting

Thank You.

The OAuth process passes you this data as a GET parameter on the query string.

So, when your end-user goes through the OAuth process, when they are bounced back to your OAuth URL with the OAuth access token, a query string parameter will be appended:

?realmId=(their company ID here)&dataSource=QBO

Store the company ID when you get that data back from OAuth.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM