Download the offer as a PDF
GET/v1/offers/:id/pdf
Renders the customer offer as one PDF, with the sections your company chose in the planner under Einstellungen → Dokumentgenerierung → Kundenangebot (overview, costs, economics, datasheets, your own pages), in that order.
It shows the offer as the customer gets it: an accepted offer with what the customer ordered; any other offer as it was offered — on each roof the module variant marked recommended, the active battery and wallbox, the recommended emergency power, and no optional extras.
Rendered on demand from the published offer and not stored, so each call reflects the offer as it is now. Rendering takes a few seconds, for a long offer up to a minute. Requires the read:documents and read:offers scopes.
Request
Responses
- 200
- 401
- 403
- 404
- 409
- 500
The offer as a PDF.
missing_api_key or invalid_api_key: no API key was sent, or it is wrong, expired or revoked.
insufficient_scope: the API key does not have the scope this endpoint needs. required names it.
not_found: there is no such record in your company.
offer_not_published: a draft has no PDF; publish it first. offer_selection_required: a roof of the offer has several module variants and none is marked recommended, so there is no offered configuration to show. offer_pdf_not_set_up: your company has not chosen the sections of the offer PDF yet.
generation_failed: the PDF could not be produced; message has the details. db_error: the offer could not be read.