I'm trying to use the REST API for Journal creation in Financial Force. The path is
services/apexrest/c2g/v1.0/journals/*
I was able to login, and perform the call but I am receiving an error message
<Response [400]>
[{"message":"Unexpected parameter encountered during deserialization: Company at [line:1, column:17]","errorCode":"JSON_PARSER_ERROR"}]
The JSON I'm passing in the body is
{
"Company": "ELIM Company-SEC",
"Date": "2018-09-01",
"Currency": "USD",
"LineItems": [{
"GeneralLedgerAccount": "181102 - Intermediate Holdings",
"Value": -11114954.25,
"LineDescription": "Journal"
}]
}
Has anyone used this call before? I'm wondering if there's some other key I have to supply in my JSON call prior to the actual journal entry. The documentation on their website doesn't give any indication that is the case though.
http://help.financialforce.com/accounting-api-rest/2018.1/Journals.htm
Update: I did try sending it as a list, wrapped in [ ] but it still errored, with this message
"Error message": "JSON request body must be an object at [line:1, column:2]", "errorCode": "JSON_PARSER_ERROR"