# Get Quote Line Items

**URL:** <https://community.hubspot.com/t/get-quote-line-items/99401>\
**Category:** APIs & Integrations\
**Tags:** free\
**Created:** [February 4, 2024, 7:11pm UTC](https://community.hubspot.com/t/get-quote-line-items/99401 "2024-02-04T19:11:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CBabbage](https://avatars.discourse-cdn.com/v4/letter/c/cc9497/32.png) [@CBabbage](https://community.hubspot.com/u/CBabbage)\
**Post date:** [February 4, 2024, 7:11pm UTC](https://community.hubspot.com/t/get-quote-line-items/99401/1 "2024-02-04T19:11:59Z")

</div>

Fellow developers! I’ve been rummaging around the API documentation and the Community to try and find a way to GET all line items specific to a Quote. I am able to list all Quotes or all Line Items, but am at a loss to find how to get line items for a given quote. Didn’t see a way to give Quote ID as a parameter to the line\_items endpoint… am I missing something simple? Thanks in advance for any help.

---

<div class="post-metadata">

**Author:** ![GRajput](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/grajput/32/102020_2.png) [@GRajput](https://community.hubspot.com/u/GRajput)\
**Post date:** [February 5, 2024, 9:33am UTC](https://community.hubspot.com/t/get-quote-line-items/99401/2 "2024-02-05T09:33:53Z")

</div>

Hi @CBabbage

If you want to get line items associated with the quote then you will have to follow the following steps:

1. Firstly you have to get the line item ID from the following API hit. I am sharing curl with you.

```auto
curl --request GET \
 --url 'https://api.hubapi.com/crm/v3/objects/quotes/{quoteId}?associations=line_items&archived=false' \
 --header 'authorization: Bearer YOUR_ACCESS_TOKEN'

```

2. Secondly you will have to get a line item ID from the above response and this id should be used in the next API hit. I am sharing curl with you.

```auto
curl --request GET \
 --url 'https://api.hubapi.com/crm/v3/objects/line_items/{lineItemId from response}?archived=false' \
 --header 'authorization: Bearer YOUR_ACCESS_TOKEN'

```

I hope this will help you out. Please mark it as **Solution Accepted and upvote to help another Community member.  
Thanks!**

@CBabbage

---

<div class="post-metadata">

**Author:** ![CBabbage](https://avatars.discourse-cdn.com/v4/letter/c/cc9497/32.png) [@CBabbage](https://community.hubspot.com/u/CBabbage)\
**Post date:** [February 5, 2024, 5:03pm UTC](https://community.hubspot.com/t/get-quote-line-items/99401/3 "2024-02-05T17:03:15Z")

</div>

Thank you @GRajput. This was quite helpful. Extending your answer, I’ll adopt a 3-step solution now:

1) Enumerate Quotes using [https://api.hubapi.com/crm/v3/objects/quotes](https://api.hubapi.com/crm/v3/objects/quotes)

2) For each Quote, get Line Items using your answer, that is [https://api.hubapi.com/crm/v3/objects/quotes/{quoteID}?associations=line\_items&archived=false](https://api.hubapi.com/crm/v3/objects/quotes/165620687?associations=line_items&archived=false)

3) For each Line Item get the necessary fields using "[https://api.hubapi.com/crm/v3/objects/line\_items/{lineItemID}?properties=hs\_product\_id,name,description,hs\_object\_source\_id,hs\_product\_type,hs\_sku,hs\_variant\_id,price,quantity"](https://api.hubapi.com/crm/v3/objects/line_items/8172518078?properties=hs_product_id,name,description,hs_object_source_id,hs_product_type,hs_sku,hs_variant_id,price,quantity%22)

Thanks again!
