Archived Quotes bug in API

I have quotes that are linked to a deal object.
When I archive the quotes via the CRM, they still show as `archived: false` when queried from the API using @hubspot/api-client for

crm.quotes.basicApi.getById()

This is problematic because it prevents us from being able to filter out archived quotes from deal object using API.

Hi @DModernAI :waving_hand:

The confusion here is likely caused by the difference between “archiving” and “deleting” a quote, and the related nomenclature used in HubSpot API responses. When you “archive” a Quote via HubSpot’s web UI, you’re actually just setting the Quote property “Is Archived” (internal name hs_archived) to “true”, which removes it from the associated Deal view. However, the Quote record itself still exists (and is still technically associated with the given Deal) in HubSpot’s CRM -- you can view it within the web UI via Commerce > Quotes.

The “archived” API response parameter is set to true only if the given Quote has been “deleted” from HubSpot’s CRM.

I hope that proves helpful. Please let me know if you have any follow-up questions.

Hi Zach,
Thanks for the quick response! I was able to test and confirm the `hs_archived` property on the quote object is reflecting accurately! However, I don’t see this property mentioned in the documentation for quotes at Accounts Dashboard | HubSpot or anywhere else. It would be great if you guys could add it here.