How to get percent discount from qoutes via API

SOLVE
TDwebdev
Participant | Diamond Partner

Hello,

 

I want to get the percent discount per line item via the API, but i cant get it. Iam only get the dollar amount discount.

 

How can i get the percent discount?

 

API call URL:

https://api.hubapi.com/crm-objects/v1/objects/line_items/" . $line_item_id . "?hapikey=&properties=amount&properties=quantity&properties=discount&properties=price&properties=hs_sku&properties=name&properties=description&properties=hs_product_id

 

0 Upvotes
1 Accepted solution

Accepted Solutions
TDwebdev
Solution
Participant | Diamond Partner

@dennisedson @MichaelC 

Solution is: properties=hs_discount_percentage

View solution in original post

2 Replies 2
dennisedson
Community Manager

@TDwebdev , did you get this figured out?  @MichaelC , do you know of a property that has the % discount as the value or do you have to do this math in your app?

Thanks,

Dennis




Check out our Community Developer Blog
where we feature our Community driven developer podcast and how to content
0 Upvotes
TDwebdev
Solution
Participant | Diamond Partner

@dennisedson @MichaelC 

Solution is: properties=hs_discount_percentage

View solution in original post