Issue with explaining bank transactions as Smart User Payments

Hi Michael,

The API isn’t returning a very good error message here. The root of
the problem is that you need to specify the gross value for the bank
transaction explanation in your request. At the moment new bank
transaction explanations don’t default to using the gross value of the
bank transaction.

Kind regards,

GraemeOn 19 October 2012 10:36, Michael michael@bigbluedev.com wrote:

Hello,

Could anyone tell me what is wrong with the following api call:

curl https://api.freeagent.com/v2/bank_transaction_explanations
-H “Authorization: Bearer 1xxxxxxxxx”
-H “Accept: application/json”
-H “Content-type: application/json”
-X POST
-d ‘{ “bank_transaction_explanation”:
{
“bank_transaction”:“https://api.freeagent.com/v2/bank_transactions/8xxxxxx”,
“paid_user”:“https://api.freeagent.com/v2/users/3xxx”,
“dated_on”:“2011-05-16”
}
}’

The response I’m getting back is:
{“errors”:[{“message”:“base Entry Type is invalid”}]}

but according to the Docs for explaining a transaction as a smart user
payment only the paid user reference is required.

Thanks for your help


You received this message because you are subscribed to the Google Groups
“FreeAgent API” group.
To view this discussion on the web visit
https://groups.google.com/d/msg/freeagent_api/-/A5JbbRtBv7QJ.
To post to this group, send email to freeagent_api@googlegroups.com.
To unsubscribe from this group, send email to
freeagent_api+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/freeagent_api?hl=en.

Graeme Boyd
Senior Software Engineer

Web. freeagent.com Blog. The FreeAgent Blog - FreeAgent
Twitter. @freeagent Facebook. FreeAgent | Edinburgh

40 Torphichen Street, Edinburgh, EH3 8JB
FreeAgent Central Ltd. Registered in sunny Scotland SC316774