I need to pass a dynamic variable as a number and not as a string

When you have "unit_price": "{{plano.valor.toNumber()}}" it will parse the expression in the string and should return the number, not a string. Make sure there the expression is as above, having a space inside it like "{{plano.valor.toNumber()}} " will return a string.

2 Likes