minimul / qbo_api

Ruby JSON-only client for QuickBooks Online API v3. Built on top of the Faraday gem.
MIT License
85 stars 45 forks source link

Unable to query Sandbox Company Connections #138

Closed Shivz3232 closed 2 days ago

Shivz3232 commented 2 days ago

During development & testing we connected our sandbox account to test business logic, but we weren't able to query any of the data as we were seeing the below error:

{:exception_class=>"QboApi::Forbidden", :exception_message=>"[{:fault_type=>\"SERVICE\", :error_code=>\"3100\", :error_message=>\"message=ApplicationAuthorizationFailed; errorCode=003100; statusCode=403\", :error_detail=>nil}]", backtrace...}

Checking QBO support docs, they indicate we need to use the sandbox base URL for querying sandbox connections.

Can we please have this functionality of choosing the base URL?

Shivz3232 commented 2 days ago

Okay I see this functionality is already present.