The problem with the API was it was trying to convert string value to int straight first.

Now is fixed and should be reading the right value as tested.