I have developed a Hubspot App that utilizes Hubspot CRM Accounting Extensions API.
The app works fine as it can create invoices or attach invoices to deals or to companies.
Due to some internal feature upgrade, I want to change the "accountId" of the Hubspot user without asking the user to reinstall the app. This accountId was set via "PUT crm/v3/extensions/accounting/user-accounts". But when I unset the accoutId using "DELETE /crm/v3/extensions/accounting/user-accounts/{accountId}", nothing happens. From the accounting webhook calls, I can see that Hubspot still looks for the old accountId when I visit deal details page.
Interesting fact is that if call "PUT crm/v3/extensions/accounting/user-accounts" with different accountId, that new accountId is get attached. And when I did try "create invoice"button from deal details page, Hubspot shows me two accounts (the old and new one) to choose from.
Is it really possible to remove an existing accountId for a Hubspot user via CRM Accoutning Extension API without the need to uninstall the Hubspot app that atttached that accountId?
The customersdeletes a userAccount, and thencreates a new one,
They're still seeing calls on the deal page that fetches the userAccount that was deleted
The only thing in the deal page that should still contain the old one they deleted would be any previous invoices that were created for that accountId. That is by design, we don't delete invoices for an account if it's disconnected.As for their second point about the accountId showing up if they update it with the update API that shouldn't happen so I'd need to know more information to debug what they mean there.
The customersdeletes a userAccount, and thencreates a new one,
They're still seeing calls on the deal page that fetches the userAccount that was deleted
The only thing in the deal page that should still contain the old one they deleted would be any previous invoices that were created for that accountId. That is by design, we don't delete invoices for an account if it's disconnected.As for their second point about the accountId showing up if they update it with the update API that shouldn't happen so I'd need to know more information to debug what they mean there.
Since, there is no API endpoint (or I am not able to find it) to check which accountIds are attached to a Hubspot user, it is very difficult to know if the addition or deletion of accountIds works unless to check the invoice creation process.