Not able to apply discount in percentage while creating invoice

Not able to apply discount in percentage while creating invoice

Hi,

I am trying to send this payload , but it is giving me error if the send the discount as percentage. 

{
"customer_id": 485748000000061003,
"is_discount_before_tax": true,
"discount_type": "item_level",
"is_inclusive_tax": false,
"line_items": [{
"name": "Package-1",
"tax_name": "VAT",
"tax_type": "tax",
"tax_percentage": 10,
"description": "Regular Service.",
"item_order": 1,
"rate": 120,
"quantity": 2,
"discount": "5.00%"
}]
}

The error is "{"code":4,"message":"Invalid value passed for JSONString"}"

It works fine if I try to send as absolute discount in amount, but it fails if i try to send it as percentage.