APIs & Integrations

Sam_Alford
Member | Diamond Partner
Member | Diamond Partner

Getting Line Item Product type and term data

SOLVE

I understand that to get details about a line item in a deal I need to include &properties=parameter. I have successfully "guessed" the parameter for the discount property and I see the quantity, price and name listed in the docs, but is there a list of other properties that you can get anywhere? I specifically need the property parameter names for the Price type (ie fixed or recurring), Price frequency eg. monthly, and the respective Terms ie. Start date, term length and frequency eg months.

Thanks in advance.

PS. Don't worry, I managed to guess them! All sorted thanks.

Sam

1 Accepted solution
IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

Getting Line Item Product type and term data

SOLVE

Hi all,

You can retrieve all object property information through this endpoint. Properties like discount and hs_recurring_billing_end_date are returned for the line_items object. I believe this was available at the time of the original post, but apologies if it wasn't.

@kobrien, I'll make a note to have more fields added to the documentation!

Isaac Takushi

Associate Certification Manager

View solution in original post

0 Upvotes
6 Replies 6
abrow
Contributor

Getting Line Item Product type and term data

SOLVE

Were you able to figure out the property name for discount %??

IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

Getting Line Item Product type and term data

SOLVE

Hi all,

You can retrieve all object property information through this endpoint. Properties like discount and hs_recurring_billing_end_date are returned for the line_items object. I believe this was available at the time of the original post, but apologies if it wasn't.

@kobrien, I'll make a note to have more fields added to the documentation!

Isaac Takushi

Associate Certification Manager
0 Upvotes
Rune
Member

Getting Line Item Product type and term data

SOLVE

Hi Sam

I managed to get most of them myself. But I can't figure out what term is?

/Rune

0 Upvotes
Rune
Member

Getting Line Item Product type and term data

SOLVE

Also I can't get multiple properties in one call working. Did you have any success with that?

0 Upvotes
Sam_Alford
Member | Diamond Partner
Member | Diamond Partner

Getting Line Item Product type and term data

SOLVE

Hi Rune,

re multiple properties, you just add each property you're after with an additional &properties=[propertyname] eg ?properties=quantity&properties=price&properties=name.

Let me know if I' haven't explained it very well.

The properties I have so far are:

quantity
price
name
discount (but this only works for discount in $ value not % discount so if anyone knows how to get % discount I'd be grateful!)
recurringbillingfrequency
hs_recurring_billing_period
hs_recurring_billing_start_date

by the way, these took me ages to 'guess'!! It would have been a whole lot easier if these were documented somewhere (or if they are, somewhere easy to find!).

Hope that helps.

Not applicable

Getting Line Item Product type and term data

SOLVE

This helped so much. I couldn't find an answer anywhere. Appreciate you posting this!

Also, I agree this should be included in the documentation. Is there anyway to request this to be added to HubSpot?

Kudos!

0 Upvotes