API - Unpaid Creditor Invoices (Openstaande Crediteuren)


Resource:
/acumulus/stable/reports/report_unpaid_creditors.php
Since API:
Authentication:
API user
Communication:
Basic submit, including below structure


Submit

<?xml version="1.0" encoding="UTF-8"?>
<myxml>
    ...
    <year></year>
</myxml>

year non mandatory
Year for which the overview is requested. Use 4-digit YYYY format. Defaults to current year.


Response

There are two types of response structures possible. One where there are no unpaid creditor invoices and one where there are. Depending on the situation the XML response will be slightly different.

When no unpaid creditor invoices are available:

<?xml version="1.0" encoding="UTF-8"?>
<response>
    <unpaidcreditorinvoices>
        <numberunpaidcreditors>0</numberunpaidcreditors>
        <amountunpaidcreditors>0.00</amountunpaidcreditors>
    </unpaidcreditorinvoices>
</response>

Or when unpaid creditor invoices are available:

<?xml version="1.0" encoding="UTF-8"?>
<response>
    <unpaidcreditorinvoices>
        <entry>
            <entryid></entryid>
            <issuedate></issuedate>
            <contactid></contactid>
            <contactname></contactname>
            <accountid></accountid>
            <accountnumber></accountnumber>
            <amount></amount>
        </entry>
        <entry>
            ...
        </entry>
        <numberunpaidcreditors></numberunpaidcreditors>
        <amountunpaidcreditors></amountunpaidcreditors>
    </unpaidcreditorinvoices>
</response>

entryid
Integer.
issuedate
String.
contactid
Integer.
contactname
(in CDATA format).
accountid
Integer.
accountnumber
(in CDATA format).
amount
Float. 2 Decimals.
numberunpaidcreditors
Integer.
amountunpaidcreditors
Integer.