Hi James,
Thanks for the reply. So I am trying something like this in a post to /bank_transaction_explanations and I get 500 Internal Server error as a response - kinda hard to debug. Am I missing some fields? Many thanks in advance.
{“bank_transaction_explanation”: {
“category”: “https://api.freeagent.com/v2/categories/285”,
“dated_on”: “2017-06-08”,
“description”: “M&S SIMPLY FOOD - ON 08 JUN///”,
“gross_value”: “-7.5”,
“attachment”:
{
“file_name”: “2017-06-08 7.50.pdf”,
“data”: “JVBERi0xLjMKJcT —— (lots and lots more in here) —— IF0gPj4Kc3RhcnR4cmVmCjQwMjE2MwolJUVPRgo=”,
“description”: “(auto upload)”,
“content_type”: “application/x-pdf”
},
“bank_transaction”: “https://api.freeagent.com/v2/bank_transactions/116053010”
}
}