Version 2.0.5
New feature:
It is now possible to specify the VAT exemption type (vatExemptionType) when creating a document via the API.
vatExemptionTypeis available in both input and output of document endpoints.- When
vatExemptionTypeis provided, theamountNoticefield is automatically derived from the corresponding legal notice. amountNoticecan only be set manually whenvatExemptionTypeisCUSTOM_EXEMPTIONorCUSTOM_APPLICATION.
Sending amountNotice without a compatible vatExemptionType (CUSTOM_EXEMPTION or CUSTOM_APPLICATION) now returns a 400 error.
More details here.
New field: tradeName on Portal and Documents
The enterprise object of the Portal (and the from field on Documents) now exposes an optional tradeName field.
This field represents the trade name of the company, as opposed to the legal name (name, required for legal compliance).
- Available on
GET /portal,PATCH /portal, and all document outputs (from.tradeName). - When set, the trade name is displayed prominently on PDF documents; the legal name appears below it.
- Fully backward-compatible: existing portals and documents without this field are unaffected.