Skip to content

Add transactions to an account

Request

Path
clientIdstring, (uuid)required

The id of the client

Body

The list of transactions to add

Array [
accountNumberstringrequired

The account number to add this transaction to.

currencystringrequired

The currency of the transaction.

sourceReferenceIdstringrequired

Unique reference for the transaction.

batchNumberstring or null

Batch number of the transaction.

voucherNumberstring or null

Voucher number of the transaction.

voucherLineinteger, (int32)

Voucher line of the transaction.

descriptionstring or null

Description of the transaction.

invoiceNumberstring or null

Invoice number of the transaction.

commentstring or null

Comment of the transaction.

voucherDatestring, (date-time)

The date of the transaction.

valueDatestring, (date-time)

The value date of the transaction.

periodstring

The period the transaction belongs to.

debitAmountnumber, (double)

The debit amount of the transaction.

debitAmountInCurrencynumber, (double)

The debit amount of the transaction in the currency.

creditAmountnumber, (double)

The credit amount of the transaction.

creditAmountInCurrencynumber, (double)

The credit amount of the transaction in the currency.

ratenumber, (double)

The exchange rate of the currency on this transaction.

yearinteger, (int32)

The year of the transaction. mostly same as period.

]
[ { "accountNumber": "string", "currency": "string", "sourceReferenceId": "string", "batchNumber": "string", "voucherNumber": "string", "voucherLine": 0, "description": "string", "invoiceNumber": "string", "comment": "string", "voucherDate": "2019-08-24T14:15:22Z", "valueDate": "2019-08-24T14:15:22Z", "period": "string", "debitAmount": 0.1, "debitAmountInCurrency": 0.1, "creditAmount": 0.1, "creditAmountInCurrency": 0.1, "rate": 0.1, "year": 0 } ]

Responses

OK

Bodyapplication/json
successbooleanrequired

Indicates whether the request was successful

errorsArray of objects or null(AddTransactionErrorDto)

A list of error messages, if the request was not successful

batchIdstring or null, (uuid)

The unique batch id of the added transactions

Response
{ "success": true, "errors": [ { … } ], "batchId": "5579c111-9c50-47e2-af92-f16d52e63189" }