Skip to main content

Document types

eCourier sends and receives the document types below on Peppol and NemHandel.

Document typeUBL root elementPeppolNemHandelSubmit as
Application ResponseApplicationResponse✅✅XML
Credit NoteCreditNote✅✅XML, JSON
InvoiceInvoice✅✅XML, JSON
OrderOrder–✅XML
Order CancellationOrderCancellation–✅XML
Order ChangeOrderChange–✅XML
Order ResponseOrderResponse–✅XML
Simple Order ResponseOrderResponseSimple–✅XML
ReminderReminder–✅XML

The UBL root element is the root of the XML you submit, and the value of the document's type in the REST API and webhooks.

Every type is sent as XML and received through the same API endpoints and webhooks. Each document is validated against the schema and Schematron rules of its type before it is sent. Types marked JSON can also be submitted as JSON, which eCourier converts to XML.

Which document types you can exchange with a trading partner depends on the profiles you both support.

Responses​

Responses are documents like any other: you send one with the same request as an invoice, and a response sent to you arrives as a received document with the type of its UBL root element: ApplicationResponse, OrderResponse or OrderResponseSimple. eCourier delivers responses, but does not create them on your behalf.

NemHandel​

OIOUBL uses the Application Response both as a business response, for example accepting or rejecting an invoice, and as a technical response. It is part of most OIOUBL profiles; the NemHandel profiles show which party receives it in each.

An order is answered with an order response instead: the Simple Order Response accepts or rejects the order as a whole, while the Order Response answers it line by line, so it can be accepted with changes. Both belong to the OIOUBL ordering profiles.

Peppol​

Peppol has two response profiles, both using the UBL Application Response:

  • Invoice Response — the buyer's business answer to an invoice or credit note: accepted, rejected, paid and so on.
  • Message Level Response (MLR) — tells the sender whether a document passed validation at the receiving end.