Data Mapping - API to PDF Visualization
Below, find attached a visualiztion for how the create invoice POST API call maps towards the different parts of the invoice PDF. There are three separate images to make the mapping more comprehensive and easier to understand.
Some parts of the invoice are generated from the preconfiguration on merchant level in our system. Accordingly, this cannot be changed or alternated via API for the specific invoice, but only by contacting Payer support. (Marked in light blue)
Some parts are generated automatically and cannot be alternated via the API nor via contacting Payer. (Marked in green)
The article description table is moldable during invoice creation. Which columns that should be displayed, at what width, is configurable based on merchant needs. (Marked in yellow)
Note: Article description and Price is mandatory and cannot be removed
The remaining parts are generated based on what is entered in the request body. Some of these parameters are required and some will be validated based on specific algoritms, to enable automatic mapping of the invoice. (Marked in red)
Note: The three pictures below are are identical except for three red boxes in the top right hand side. This is split into three different pictures to make it easier to understand the parameter mapping arrows.

Picture 1 - Invoice header

Picture 2 - Order customer data

Picture 3 - Invoice data