Search code examples
intuit-partner-platformquickbooks-online

QuickBooks Online API error: message=No destination found for given partition key; errorCode=007001


I'm using QuickBooks PHP dev kit and trying to set an invoice/customer, etc. I get this error message: 7001: [message=No destination found for given partition key; errorCode=007001; statusCode=400, ]

What does it means? I've looked in the doc and didn't found a valuable answer for my situation.

Also, with QuickBooks PHP dev kit I get this error in example_app_ipp_v3/: Fatal error: Call to a member function getCompanyName() on a non-object in XXXXX

Is the second error related to the first one? Is there some missing informations?

Thanks a lot for any help!


Solution

  • In summery -

     Your QBO subscription expired or you're hitting SandBox company with a wrong base URL.
    

    If you want to connect with existing QBO company, then you should use 'production tokens'. 'Dev tokens' can only be used with sandbox company.

    For Sandbox company, correct base URL is - https://sandbox-quickbooks.api.intuit.com/

    For more details, please have a look at the IPP's blog -

    https://developer.intuit.com/v2/blog/2014/10/24/intuit-developer-now-offers-quickbooks-sandboxes

    Thanks