Both SOAP or REST API can be used to receive invoices. Our recommendation is to use the REST. It is newer, and allows more functionality to be added on top of the regular invoice downloading - such as webhooks and Detect checks.
To receive invoices the company needs to activate the invoice receiving setting in Maventa. After this company is, depending on the country, registered to different electronic address books and they get an electronic invoice address (EIA) that can be used to send invoices to them.
From electronic networks Peppol requires its own activation. We recommend activating Peppol for all the customer so they can get the widest receiving reach possible.
Register company account to receive - You need an company account Maventa where to receive the invoices to. Before a company account can receive invoices it needs to be verified by strong authentication.
Activate the receiving setting - Receiving is usually activated at the same time when the account is registered, but the activation can also be done at a later stage by registering invoice receiving network. The receiving setting is a master setting for e-invoices, it allows receiving from other operators, banks and internally. When activated, the company is visible as invoice receiver in Maventa finder and will show in applicable e-invoice address books - Finnish companies will be visible in verkkolaskuosoite.fi.
Register company as Peppol receiver - When activating the electronic receiving setting, we recommend that all customers are also registered to receive electronic invoices in the international Peppol network, see more here. When company is registered their information is added to Peppol Directory.
Select receiving XML format - In the download process you can select in which XML format you want to download the invoice into your system. Maventa supports a variety of international and national formats. Make sure your system can support one of these available formats and is capable of processing the document XML. In general we recommend to use the PeppolBIS3 format.
You can also add some other services like scanning service, if a company wants to receive PDF invoices scanned. (See more here).
The receiving process works simply by listing new invoices arrived to Maventa and then downloading the invoice and the attachments.
With webhooks you can get information right away when a new invoice has arrived and can build a user friendly receiving flow. As a backup routine, we recommend to poll for invoices once a day.
Backup routine: Use GET /v1/invoices with params direction=RECEIVED
, received_at_start
, and received_at_end
to get a list of invoices to download. Method is called per company, so it is only possible to list invoices from one company at a time.
After you have saved the new incoming invoice id’s, download the invoice files and attachments into your system.
Use GET /v1/invoices/{id} to download the invoice XML file in the specified format, or to download the invoice image.
To download invoice image you need to use param return_format
:
Example usage:
return_format
as FINVOICE30.return_format
being one of the described above.In the invoice details origin
shows if the received invoice is electronic invoice or scanned invoice. If the invoice origin
is SCAN, extra information is provided as origin_type
. It informs the type of the scanned invoice eg. if the scanned invoice is received via automatic scanning (AutoScan) or via standard scanning:
Fetch the check results from Maventa.
Use GET /v1/invoices/{id}/detect_results to download the check results based on invoice id.
More information about Detect service and checks activation here