I am trying to do an API request based on json and one of the parameters i am supplying (10) should be an integer with 2 decimal places but what i have is a whole number. When i do the api call directly as "amount" => 10.00,
it suceeds but when I hold the integer as $amount = $received_amount."00";
where $received_amount = 10;
it throws an error as Received error response: The request content was malformed: Expected BigDecimal as JsNumber, but got "10.00"
I have tried most of the methods available changing a whole number by appending 2 decimal places at the end but none seems to work. Any work around?