Hi there,
I want to update the discount of a line item(using `crm/v3/objects/line_items/batch/update`). But I’m getting the below error.
{
“status”: “error”,
“message”: “Cannot set discount without clearing discountPercentage”,
“correlationId”: “4c838f3a-7b5c-4f42-8111-c8d129105505”,
“category”: “VALIDATION_ERROR”
}
So I tried to clear discountPercentage like below but It doesn’t update as `null`. It will keep the same value.
curl --location ‘https://api.hubapi.com/crm/v3/objects/line_items/batch/update’ \
--header ‘Content-Type: application/json’ \
--header 'Authorization: Bearer \
--data '{
“inputs”: [
{
“id”: 123,
“properties”: {
“hs_discount_percentage”: null,
“discount”: 20
}
}
]
}’
Any suggestions to resolve this issue?
Thanks