API Documentation

Send via Email - How can I restrict transport types if needed

In the Billit API, you can send your invoices using the commands/send API endpoint. This endpoint allows you to specify a transport type.

When using Peppol as the transport type,

  • If the customer is registered on the Peppol network, then normal delivery via Peppol will happen.
  • If the customer is not registered on the Peppol network,
    • Then alternative sending via email will be launched (and Print/post if no email). This applies to the production environment.
    • This might not be the desired behavior : if the receiver is not on Peppol, then no delivery should happen. To activate this, you can use the "StrictTransportType" header.

By setting the StrictTransportType header to true, the system will prevent sending the invoice via email and will instead throw a validation error if the customer is not registered on the Peppol network. This ensures that invoices are only sent through the specified transport type.

Below an example of the use on header level in Postman:


What’s Next