Obtaining or calculating Net Price from Line Item API
Hi Everyone,
I am currently working on a project to integrate HubSpot with our Job Management and Finance systems, and one important field we cannot find in the Line Item API is the Net Price. Was hoping this was a common issue that someone else has resolved, but after searching on the boards, no one has mentioned it.
Alternatively, I recognise that NET PRICE = QTY x (UNIT PRICE - DISCOUNT), and while I can obtain Unit Price and QTY, I cannot find Discount either.
Was hoping someone has solved this already and can point me in the right direction.
What you can do is send the discount per unit while creating Line Item through API.
Here, you can use the ecomm bridge API or you can also use the line-item API. Just send the property 'discount_amount' in the line items while creating.
Once you will send the Discount amount it will calculate the Net Price itself.
I was wondering, can we also "read" the discount_amount? Because when I try that, it doesn't return anything. I also tried discount, doesnt work either. Am I missing something?