Order Confirmations
List order confirmations
Returns a paginated list of order confirmations.
Filters
| Parameter | Description |
|---|---|
| status | Display status: draft, sent, converted. Derived statuses are resolved server-side. |
| customerId | Filter to one customer. |
| page / limit | Pagination (defaults: page 1, limit 25, max limit 100). |
| sortBy / sortOrder | Sort field (e.g. date, documentNumber, amount, status) and direction. Defaults to newest first. |
query Parameters
pagePage number (1-indexed)
limitItems per page
statusFilter by display status (draft/sent/converted). Derived statuses are resolved server-side.
customerIdFilter by customer id
sortBySort field
sortOrderSort order
List order confirmations › Responses
Paginated list of order confirmations
List of order confirmations (line items omitted; GET one for lines)
totalTotal number of documents matching the query
pageCurrent page number (1-indexed)
limitMaximum number of items per page
totalPagesTotal number of pages available
Create a draft order confirmation
Creates a draft order confirmation.
- The document number is not allocated here — it is assigned on send.
- Totals (subtotal/vat/amount) are computed from the line items.
Create a draft order confirmation › Request Body
customerIdCustomer this order confirmation is for
dateDocument date (ISO, YYYY-MM-DD)
customerDepartmentIdCustomer department id
customerContactIdCustomer contact id ("Deres ref.")
currencyCurrency code
referencePO number ("PO-nr.")
ourReferenceOur reference ("Vores ref.")
notesNotes shown on the document
Create a draft order confirmation › Responses
Order confirmation created
idDocument identifier
statusStored lifecycle status (draft/sent)
displayStatusStatus to display. Equals status except the derived "converted" state.
dateDocument date (ISO, YYYY-MM-DD)
amountTotal amount including VAT
subtotalSubtotal excluding VAT
vatTotal VAT
currencyCurrency code
createdAtCreated timestamp (ISO)
updatedAtUpdated timestamp (ISO)
documentNumberAllocated document number (null until sent)
referencePO number ("PO-nr.")
ourReferenceOur reference ("Vores ref.")
notesNotes
customerIdCustomer id
sourceDocumentIdSource document id (the quote this order confirmation was converted from)
convertedToInvoiceIdId of the invoice this order confirmation was converted into
sentAtTimestamp the document was sent (ISO)
Get an order confirmation by id
Returns a single order confirmation, including its line items.
path Parameters
idThe order confirmation id
Get an order confirmation by id › Responses
The order confirmation
idDocument identifier
statusStored lifecycle status (draft/sent)
displayStatusStatus to display. Equals status except the derived "converted" state.
dateDocument date (ISO, YYYY-MM-DD)
amountTotal amount including VAT
subtotalSubtotal excluding VAT
vatTotal VAT
currencyCurrency code
createdAtCreated timestamp (ISO)
updatedAtUpdated timestamp (ISO)
documentNumberAllocated document number (null until sent)
referencePO number ("PO-nr.")
ourReferenceOur reference ("Vores ref.")
notesNotes
customerIdCustomer id
sourceDocumentIdSource document id (the quote this order confirmation was converted from)
convertedToInvoiceIdId of the invoice this order confirmation was converted into
sentAtTimestamp the document was sent (ISO)
Update a draft order confirmation
Replaces the editable fields and line items of a draft document.
Line items are replaced wholesale — send the full intended set. A converted
document is read-only (SALES_DOCUMENT_LOCKED_CONVERTED).
path Parameters
idThe order confirmation id
Update a draft order confirmation › Request Body
customerIdCustomer this order confirmation is for
dateDocument date (ISO, YYYY-MM-DD)
customerDepartmentIdCustomer department id
customerContactIdCustomer contact id ("Deres ref.")
currencyCurrency code
referencePO number ("PO-nr.")
ourReferenceOur reference ("Vores ref.")
notesNotes shown on the document
statusNew stored status (validated against the document type: draft/sent for order confirmations).
Update a draft order confirmation › Responses
Order confirmation updated
idDocument identifier
statusStored lifecycle status (draft/sent)
displayStatusStatus to display. Equals status except the derived "converted" state.
dateDocument date (ISO, YYYY-MM-DD)
amountTotal amount including VAT
subtotalSubtotal excluding VAT
vatTotal VAT
currencyCurrency code
createdAtCreated timestamp (ISO)
updatedAtUpdated timestamp (ISO)
documentNumberAllocated document number (null until sent)
referencePO number ("PO-nr.")
ourReferenceOur reference ("Vores ref.")
notesNotes
customerIdCustomer id
sourceDocumentIdSource document id (the quote this order confirmation was converted from)
convertedToInvoiceIdId of the invoice this order confirmation was converted into
sentAtTimestamp the document was sent (ISO)
Convert an order confirmation into an invoice
Converts the order confirmation into an invoice (target: "invoice").
By default the source document's fields and line items are copied verbatim. To
review and adjust the target before finalizing, supply an optional document
payload — its fields override the copied values.
A document converts only once. Re-converting fails with
SALES_DOCUMENT_ALREADY_CONVERTED_TO_INVOICE.
The response identifies the produced invoice via targetType ("invoice") and
targetId.
path Parameters
idThe order confirmation id to convert
Convert an order confirmation into an invoice › Request Body
targetTarget to convert into. An order confirmation only ever converts into an "invoice".
Edited target document (review-before-finalize). Omit to copy the source verbatim.
Convert an order confirmation into an invoice › Responses
Conversion result
targetTypeType of document produced by the conversion (always "invoice")
targetIdIdentifier of the produced document
Download an order confirmation as PDF
Renders and streams the document as a PDF (application/pdf).
Pass ?draft=true to render an unfinalized "draft" watermark preview before
the document is sent.
path Parameters
idThe order confirmation id
query Parameters
draftRender a draft-watermarked preview when "true".
Download an order confirmation as PDF › Responses
PDF binary stream
Send an order confirmation
Sends the document. This allocates the document number (if not already set), renders the PDF, optionally emails it, and marks the document sent.
Delivery
deliveryType: "Manual"(default) — allocates the number and marks sent without emailing. Use this when you will deliver the PDF yourself (download it viaGET /:id/pdf).deliveryType: "Email"— emails the rendered PDF. The recipient resolves fromrecipientEmail(override), else the customer contact, else the customer email. If none can be resolved the request fails withSALES_DOCUMENT_MISSING_RECIPIENT.
Sproom / e-invoice does not apply to order confirmations — there is no legal e-invoice type for an order confirmation.
A document that has already been converted is read-only and cannot be sent
(SALES_DOCUMENT_LOCKED_CONVERTED).
path Parameters
idThe order confirmation id
Send an order confirmation › Request Body
deliveryTypeDelivery method. Defaults to Manual. Sproom/e-invoice does not apply to order confirmations.
recipientEmailOverride recipient email for Email delivery
Send an order confirmation › Responses
Order confirmation sent
idDocument identifier
statusStored lifecycle status (draft/sent)
displayStatusStatus to display. Equals status except the derived "converted" state.
dateDocument date (ISO, YYYY-MM-DD)
amountTotal amount including VAT
subtotalSubtotal excluding VAT
vatTotal VAT
currencyCurrency code
createdAtCreated timestamp (ISO)
updatedAtUpdated timestamp (ISO)
documentNumberAllocated document number (null until sent)
referencePO number ("PO-nr.")
ourReferenceOur reference ("Vores ref.")
notesNotes
customerIdCustomer id
sourceDocumentIdSource document id (the quote this order confirmation was converted from)
convertedToInvoiceIdId of the invoice this order confirmation was converted into
sentAtTimestamp the document was sent (ISO)