There are two kinds of discounts for line items:
amount
and
percentage
.
I got an error when I tried to switch the discount from
amount
to
percentage
by the update API.
The error message
“Cannot set discountPercentage without clearing discount”
How could I clear the discount for a line item? I tried to set the discount to 0 or null. But not work.
The update API that I’m using:
PATCH /crm/v3/objects/line_items/{lineItemId}