POST api/Accounts/General/Transactions

Creates one or more general transactions.

Request

Body

Content Type: application/xml
Schema: http://download.overtech.com.au/schemas/GeneralTransactions.xsd
XML document describing the transaction(s) to create.

Response

Body

Content Type: application/xml
Details of the new transaction(s) or an error message.

XML
<Response>                                           
  <Result>                                           <!--Array of 'Item'--> 
    <Item>                                           
      <Index>int</Index>                             <!--0-based index of the transaction--> 
      <Status>string</Status>                        <!--'Success' or 'Failed'--> 
      <ID>long</ID>                                  <!--Unique trust transaction ID--> 
      <Number>string</Number>                        <!--Transaction number--> 
      <ValidationErrors>string</ValidationErrors>    <!--Formatted list of validation errors--> 
    </Item>                                          
  </Result>                                          
  <Message>string</Message>                          <!--Error message--> 
</Response>                                          

Status Codes

Code Condition
200 OKSome transactions were created successfully, but others failed validation.
201 CreatedThe transaction(s) were created successfully.
400 Bad RequestThe XML document was invalid or resulted in invalid transaction record(s).
401 Unauthorized Access token is invalid, expired or not specified.
406 Not Acceptable Content type specified in the Accept header isn't supported.
500 Internal Server Error An internal error occurred.

Remarks

Currently, this method allows the creation of debtor receipts only. Other transaction types are not yet supported.