Creating a new document
When you enter a document section (Invoices, Orders, Deliveries, Payments, Parties and Items), on the top right corner you will see aNew [document type] button. Clicking on it displays the document editor. This view has two modes: Code view and Form view, switchable using the toggle in the upper-right corner.
Code view

- JSON Editor: When creating a new document, the editor loads a minimal boilerplate invoice object. Any missing or incomplete fields are highlighted with red squiggles. These markers correspond to validation issues—either required fields that have not been filled in or values that do not meet schema rules.
- Build Button: The Build action validates the JSON against the defined GOBL schema. If the document is valid, the system enriches it with any required calculated or default data. You will only be able to save the invoice if the document is built and valid.
- Error & Warning Drawer: A collapsible drawer appears at the bottom of the screen. It lists any errors or warnings identified in the current document, including missing properties, invalid values, or schema mismatches. Each entry links directly to the relevant line in the JSON. The drawer can be hidden when not needed.
Form view

Related resources
| API Reference | Create an entry (POST) Create an entry (PUT) |
| Related Guides | PDF Invoice Guide |