API Forum

This forum is in read-only mode.
Please refer to our API support in case you have any questions.
We can be reached at api@e-conomic.com
e-conomic API developer forum

CashBookEntry_Create: IntegrityException



I try to create a cashbookentry:

Input is: Array

    [cashBookHandle] => stdClass Object([Number] => 1)
    [type] => DebtorPayment
    [accountHandle] => stdClass Object([Number] => 1038)
    [contraAccountHandle] => stdClass Object([Number] => 5625)
    [creditorHandle] => stdClass Object([Number] => 1)
    [debtorHandle] => stdClass Object([Number] => 2)


I always get this: Economic.Api.Exceptions.IntegrityException(E06200): The creditor may not be supplied when the type is DebtorPayment.

I tried with all possibilities: DebtorPayment or CreditorInvoice or CreditorPayment or FinanceVoucher or ManualDebtorInvoice

Maybe someone has a solution what is missing



created Jun 5, 2013 by DrGM
0% Accept Rate

edited Jun 5, 2013 by DrGM
Q 2 A 1 C 2

1 Answer

"The creditor may not be supplied when the type is DebtorPayment" really says it: Since the entry you're creating is a DebtorPayment, you cannot specify a Creditor - it doesn't make any sense.
Similarly, neither does setting the Account (in practice, the Account of a DebtorPayment is automatically set to the debtor's group's account).
Out of Account, ContraAccount, Debtor and Creditor, for each entry type, these are the ones you can set (and for each, you must set at least one):
ManualDebtorInvoice/DebtorPayment: Debtor and/or ContraAccount
CreditorInvoice/CreditorPayment: Creditor and/or ContraAccount
FinanceVoucher: Account and/or ContraAccount
Best regards,
answered Jun 6, 2013 by Christian Estrup
I am a complete idiot in bookkeeping :-(
What is the next logic step after:
DebtorCreate and CurrentInvoiceCreate

No related posts found


Find all the documentation and resources you need to build great apps.
Go to Developer site


Get the latest news and important info from the e-conomic developer world.
Sign up now

Visma e-conomic A/S