# Archived Quotes bug in API

**URL:** <https://community.hubspot.com/t/archived-quotes-bug-in-api/122774>\
**Category:** APIs & Integrations\
**Tags:** cms-content\
**Created:** [December 18, 2024, 10:53pm UTC](https://community.hubspot.com/t/archived-quotes-bug-in-api/122774 "2024-12-18T22:53:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DModernAI](https://avatars.discourse-cdn.com/v4/letter/d/ce73a5/32.png) [@DModernAI](https://community.hubspot.com/u/DModernAI)\
**Post date:** [December 18, 2024, 10:53pm UTC](https://community.hubspot.com/t/archived-quotes-bug-in-api/122774/1 "2024-12-18T22:53:20Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![zach\_threadint](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/zach_threadint/32/46318_2.png) [@zach\_threadint](https://community.hubspot.com/u/zach_threadint)\
**Post date:** [December 18, 2024, 11:21pm UTC](https://community.hubspot.com/t/archived-quotes-bug-in-api/122774/2 "2024-12-18T23:21:23Z")

</div>

Hi @DModernAI 👋

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.

---

<div class="post-metadata">

**Author:** ![DModernAI](https://avatars.discourse-cdn.com/v4/letter/d/ce73a5/32.png) [@DModernAI](https://community.hubspot.com/u/DModernAI)\
**Post date:** [December 19, 2024, 1:44am UTC](https://community.hubspot.com/t/archived-quotes-bug-in-api/122774/3 "2024-12-19T01:44:03Z")

</div>

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](https://developers.hubspot.com/docs/guides/api/crm/commerce/quotes) or anywhere else. It would be great if you guys could add it here.
