API - Get PDF Invoice

Use a token to get a PDF-invoice / PDF-factuur ophalen


Resource:
/acumulus/stable/invoices/invoice_get_pdf.php
Since API:
Authentication:
None
Communication:
No XML-structure required, simply add the token field to the Location URI.


PDF invoice.

Example:
https://api.sielsystems.nl/acumulus/stable/invoices/invoice_get_pdf.php?token=01234567890abcdef01234567890abcd


Alternatively you can add the gfx GET-parameter to prevent any embedded graphics from being applied to the document


PDF invoice without graphics.

Example:
https://api.sielsystems.nl/acumulus/stable/invoices/invoice_get_pdf.php?token=01234567890abcdef01234567890abcd&gfx=0


Alternatively you can add the invoicetype GET-parameter to retrieve a reminder of the invoice. Use invoicetype=1 for a reminder.


PDF reminder.

Example:
https://api.sielsystems.nl/acumulus/stable/invoices/invoice_get_pdf.php?token=01234567890abcdef01234567890abcd&invoicetype=1


Response

There is no XML-Structure in response when there are no errors to be reported. Upon success an invoice PDF-file is served over https protocol.

However upon failure you can expect something like:

<?xml version="1.0" encoding="UTF-8"?>
    <response>
        <invoice>
            <token></token>
        </invoice>
    </response>

Including a warning and error segment embedded within the response section.