Skip to Content
Skip to Content

Web Release Notes: March 3, 2020

Release Notes

API News

Can you do the splits? What am I saying? Of course you can…or, at least now you can. We’ve made our Public API even more flexible because it now supports creating split transactions by specifying a subtransactions array.

curl -H "Authorization: Bearer $API_ACCESS_TOKEN" \
https://api.youneedabudget.com/v1/budgets/last-used/transactions \
-H "Content-Type: application/json" -X POST --data-binary @- << EOF
{ 
   "transaction":{ 
      "account_id":"00d17281-a898-4bac-a3e4-0cbcb947c6e7",
      "date":"2020-02-18",
      "amount":-200000,
      "memo":"This is a split",
      "subtransactions":[ 
         { 
            "amount":-100000,
            "payee_name":"Split payee",
            "category_id":"99e33804-e58f-4121-9930-ba013c8bb4c3",
            "memo":"Split 1"
         },
         { 
            "amount":-100000,
            "payee_id":"f7d7779a-0084-4023-91fd-7de2a80f9105",
            "category_id":"3b9dcabc-ca09-4c7f-a26e-cb823209194d",
            "memo":"Split 2"
         }
      ]
   }
}
EOF
Hooray for split(s)…transactions!!!