Can't create transaction (error 500)


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 "$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?


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

  • 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.

  • Yes, that was it. Thanks!

Like Follow
  • 3 yrs agoLast active
  • 3Replies
  • 631Views
  • 3 Following