import quotes

We use the quotes API provided in the hubspot documentation to fetch the list of quotes from the of HubSpot.

But in the response we don’t get the sales tax , one time cost and discount line items.
Do we have any parameters by which we can fetch those line items associated with the quotes ?

Hey @Leo100, thank you for posting in our Community!

Please, review the documentation thoroughly to see if there are any parameters or flags you can include in your API request to include the missing line items. Sometimes, APIs offer options to customize the response to include specific details. ( More information here).

To our top experts @Anton @DanielSanchez do you have any recommendations for @Leo100?

Thank you,

Pam

Hi @Leo100,

This is a good question. I would suggest (1) getting the line item(s) associated with the quote. Then, you would need to (2) get the details of the line item(s).

(1) To retrieve the line item(s) associated with a quote, use this enpoint:

/crm/v4/objects/{objectType}/{objectId}/associations/{toObjectType}``

So, you’d have:

/crm/v4/objects/quote/{objectId}/associations/line_item

(2) From there, you could perform any GET requests for the line item ID(s) retrieved:

/crm/v3/objects/line_items/{lineItemId}

Here’s the associations API docs

Here’s the line items API docs

Best,

Ryan Schweighart

Whole Hart Impact, LLC

whimpact.co

I help businesses with HubSpot and Zapier.