APIs & Integrations

Not applicable

Getting deleted deals through the API

Hi,

In API documentation https://developers.hubspot.com/docs/methods/deals/deals_overview it says that the isDeleted property of deals will effectively always be false

 `{"isDeleted": false, // Boolean; Whether or not the record is deleted. In practice this will always be false as deleted records will not appear in the API.}`

Our reporting system relies on knowing the current state of deals and we would like to get the updates only by getting recent changes and creation of new deals to improve performance. Is there a way to, through the API, to figure out which deals have been deleted to keep our internal reporting database in sync?

Best,
Jaakko

0 Upvotes
1 Reply 1
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

Getting deleted deals through the API

Hi @JaakkoL,

If a deal has been deleted from your portal, it won’t show up in the response from the API at all. Any deal that’s returned from the deals API has not been deleted. If you’re looking to get notified when deals are deleted, I would recommend checking out the webhooks API and subscribing to deal deletions.

Webhooks API Overview

Overview for the Webhooks API

0 Upvotes