Documents
The documents of an offer: the files stored on it - list, download, add, rename, replace and remove them -, and paperwork rendered on demand — the offer as a PDF, the grid operator's (Netzbetreiber) registration forms, the string plan and the circuit diagram. Each call renders from the offer as it stands; the two plans can be stored on it.
List the documents of an offer
Every document stored on the offer, as the planner's documents tab (Dokumente) lists them: the datasheets and certificates of its parts, the grid operator's forms, the plans generated from it (parts list, string plan, circuit diagram, Kommissionsliste) and the files your team uploaded. Each comes with its name, a file name to save it under, its type and size, whether the customer sees it, and a `downloadUrl` that fetches the file without an API key for one hour.
Add a document to an offer
Stores a file on the offer, as an upload in the planner's documents tab does. Send a form (`multipart/form-data`) with the file in `file`; `name`, `description` and `type` are optional. The offer can be in any state. On a published or accepted offer the customer sees the change at once, and the offer's history names the API key. No mail is sent.
Get a document of an offer
Returns one document of the offer, with a fresh `downloadUrl`. Requires the `read:documents` and `read:offers` scopes.
Rename a document of an offer
Changes the document's name or description; a field you leave out stays as it is. On a published or accepted offer the customer sees the change at once, and the offer's history names the API key. No mail is sent. The Kommissionsliste cannot be changed (`409 document_read_only`). To put another file in its place, see `PUT …/file`. Requires the `read:documents` and `write:offers` scopes.
Remove a document from an offer
Removes the document from the offer, also from the customer's view of it. This cannot be undone; on an offer that is no draft, its history names the API key. The Kommissionsliste cannot be removed (`409 document_read_only`). Requires the `read:documents` and `write:offers` scopes.
Replace the file of a document
Puts another file in the document's place. Send a form (`multipart/form-data`) with the file in `file`. The document keeps its id, name, description and type, so links to it stay valid. On a published or accepted offer the customer sees the change at once, and the offer's history names the API key. No mail is sent.
Generate a plan and store it on an offer
Draws the string plan or the circuit diagram from the offer as it stands and stores it as a document of the offer. The offer's document of that plan is renewed and keeps its id (200); an offer that has none gets one (201). On a published or accepted offer the customer sees it at once, and the offer's history names the API key. No mail is sent.
Take the parts' datasheets over into an offer
Adds the datasheets and certificates your catalog has for the offer's parts, as 'Datenblätter übernehmen' in the planner does: each file once, with the model added to its name where two files are called the same. Files the offer has already are left out, so the call can be repeated after the offer has changed; it removes nothing. On a published or accepted offer the customer sees the documents at once, and the offer's history names the API key. No mail is sent.
Add your default documents to an offer
Adds the documents your company puts on every new offer (planner: the documents of the request settings), as 'Neues Angebot' does. Files the offer has already are left out, so the call can be repeated; it removes nothing. On a published or accepted offer the customer sees the documents at once, and the offer's history names the API key. No mail is sent. Requires the `read:documents` and `write:offers` scopes.
Download the offer as a 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.
List grid-operator document options for an offer
Everything `POST /v1/offers/{id}/network-carrier-documents` can reference for this offer, resolved in one call: the grid operator set on its project and that operator's forms, the electrical contractors you can name, the offer's module configurations and its batteries — each flagged with what the planner would preselect.
Generate grid-operator documents
Fills in the grid operator's (Netzbetreiber) registration forms for an offer and returns them as a ZIP archive. The documents are rendered on demand from the offer's current technical data and are not stored, so each call produces a fresh archive.
Generate the string plan
Renders the offer's string plan — how the modules are wired into the inverters' MPP trackers — as a PDF. Generated on demand from the offer's current configuration and not stored, so each call reflects the offer as it is now. Requires the `read:documents` and `read:offers` scopes.
Generate the circuit diagram
Renders the offer's circuit diagram (Schaltschema) as a PDF: the strings, inverters, battery, wallbox, emergency power, meters and the grid connection. It shows what the planner's dialog preselects: an accepted offer as the customer ordered it; any other offer with the active battery and wallbox and the recommended emergency power. Generated on demand from the offer as it stands and not stored; to store it, see `POST /v1/offers/{id}/documents/generate`. Requires the `read:documents` and `read:offers` scopes.
Files
6 items
Grid operators
3 items