[Spce-user] API not accepting (valid?) billing fee value
Mark van Herpen
mark at cambrium.nl
Thu Dec 24 04:36:27 EST 2015
Hello,
I'm trying to update the offpeak_follow_rate of a single billing fee via
the API.
I'm sending this in the PUT method:
-snip-
"offpeak_follow_rate": 6.669999999999999e-5,
-snip-
The value is not a string, but a float type. This is 0.0000667 but in
scientific notation: 6.669999999999999e-5
The error I get in the logs is:
field='offpeak_follow_rate', input='6.67e-05', errors='Must be a number.
May contain numbers, +, - and decimal separator '.''","code":"422"
According to my knowledge json should allow 6.669999999999999e-5 as a
valid number, but the API isn't allowing this.
Is this a bug? Feature? Or am I doing something wrong?
I'm using 3.8.4 LTS.
Kind regards,
Mark van Herpen
More information about the Spce-user
mailing list