The problem is that the remote app is expecting a float (34.05) and si receiving an string (“34.05”) there is any way in the JINJA templating to don’t use double qoutes??
I have seen something related on this post
First Thank you for even reading this post and spending time trying to help me
Here is the error: obj = {‘error’: ‘Invalid data supplied’, ‘fields’: {‘price_including_tax’: ‘Invalid type. Expected: number, given: string’}}
I think I have not explain myself clearly on the to this is happening because the data on the field product_sell_price which is a number is being placed into the JSON files on quotes that is perceived as strign by the external app
In the wehook data window (JSON Request Body) is write like this. Is not allow to write it without the quotes
This is being converted from: "price_including_tax": "{{doc.product_sell_price}}"
into the JSON file to: "price_including_tax": "21.00"Note: quotes around the number
Which I need in the JSON file is this "price_including_tax": 21.00NO quotes around the number
I am looking to a way to place the dynamic field {{doc.product_sell_price}} inside the Webhook Data window without quotes.
The correct way to send your Float data is indeed without quotes. But maybe the doc.product_sell_price expression is not always a number when Frappe checks your JSON body, for some reason?
The following might work:
{
...
"price_including_tax": {{ doc.product_sell_price or 0.0 }}
}