Can't create transaction (error 500)

Hi,

I'm trying to create either a single transaction, or bulk transactions, but I am always getting a 500 error. Here is my query:

 

curl -X POST "https://api.youneedabudget.com/v1/budgets/$budget_id/transactions/bulk" -H "Accept: application/json" -H "Authorization: Bearer $token" -H "Content-Type: application/json" -d "{ \"transactions\": [{ \"account_id\": \"$account_id\", \"date\": \"14/08/2018\", \"amount\": 0, \"memo\": \"Test\" }]}"

The result is:

{"error":{"id":"500","name":"internal_server_error","detail":"An unexpected error has occurred"}}

 

I have the same problem when I try to create a single transaction.

 

Anything wrong with my post?

Thanks!

3replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
  • The date format looks suspicious. Try "2018-08-14".

    Like
  • As Silver Sun (2ca5722df704) mentioned, this is probably a date format issue.  The API should not be returning a 500 in this case, though.  I'll work on a fix so that a proper 400 validation response will be returned in this scenario.

    Like
  • Yes, that was it. Thanks!

    Like
Like Follow
  • 2 yrs agoLast active
  • 3Replies
  • 517Views
  • 3 Following