You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Documentation specifies that the amount parameter should be a float. If I provide a float in my request I get a YNAB::ApiError: Bad Request error which I found strange.
Upon further investigation and playing with the API over at api.youneedabudget.com it seems that the API requires an Integer not a Float.
{
"error": {
"id": "400",
"name": "bad_request",
"detail": "{\"amount\":[\"must be an integer\"],\"date\":[\"must be an ISO formatted date\"]}"
}
}
I'm currently writing an integration for a Swiss bank – but only being able to write Integers via the API would be a major letdown. 😔
Thanks for your time.
Best,
Rodrigo
The text was updated successfully, but these errors were encountered:
@therod The API only allows integers but we use a format called milliunits which allows you to specify a decimal value. For example, to specify 11.32 you would use 11320. The docs on the client repo here should not be showing Float and we'll get that fixed. Thank you.
Hey there!
The Documentation specifies that the amount parameter should be a float. If I provide a float in my request I get a
YNAB::ApiError: Bad Request
error which I found strange.Upon further investigation and playing with the API over at api.youneedabudget.com it seems that the API requires an Integer not a Float.
I'm currently writing an integration for a Swiss bank – but only being able to write Integers via the API would be a major letdown. 😔
Thanks for your time.
Best,
Rodrigo
The text was updated successfully, but these errors were encountered: