I want to create a GLTransaction using this url:
http://<IP>:5000/freedom.core/<Database Name>/SDK/Rest/GLTransactionPost
and the following body:
<GLTransactionPost xmlns=http://Freedom.PastelEvolution.co.za/Freedom.Core/2014/04/25>
<GLTransactionBatch xmlns:a=http://schemas.datacontract.org/2004/07/Evolution.Services.SDK.Dto xmlns:i="">www.w3.org/.../XMLSchema-instance">
<Hash i:nil="true" xmlns=http://schemas.datacontract.org/2004/07/Freedom.Core.Helpers xmlns:b="">schemas.microsoft.com/.../Arrays"/>
<a:Transactions>
<a:GLTransactionPostDto>
<a:Date>2022-10-10T00:00:00</a:Date>
<a:Reference>XMLTest</a:Reference>
<a:TransactionCode>DT</a:TransactionCode>
<a:Description>XMLTest</a:Description>
<a:AccountCode>1000</a:AccountCode>
<a:Debit>115</a:Debit>
</a:GLTransactionPostDto>
<a:GLTransactionPostDto>
<a:Date>2022-10-10T00:00:00</a:Date>
<a:Reference>XMLTest</a:Reference>
<a:Description>XMLTest</a:Description>
<a:TransactionCode>Credit</a:TransactionCode>
<a:AccountCode>Levies Received</a:AccountCode>
<a:Credit>115</a:Credit>
</a:GLTransactionPostDto>
</a:Transactions>
</GlTransactionBatch>
</GLTransactionPost>
But I get this error message:
The formatter threw an exception while trying to deserialize the message: Error in deserializing body of request message for operation 'GLTransactionPost'. The token '"' was expected but found 'h'. Line 1, position 26
This was the body I got from a Sage Developer on the support email, but it doesn't seem to be working. What am I doing wrong in this instance.