Skip to navigation

Mark a delivery note as delivered (transition issued → delivered)

Beta
View as Markdown

Records that the goods were handed over (status → delivered). Available only from issued. Not idempotent — a second call returns 422.

Required scope: manage:delivery_notes.

Authentication

AuthorizationBearer

JWT issued via POST /api/v1/auth/sign_in. Used by mobile and SPA clients. Revoked tokens are rejected.

OR
AuthorizationBearer

Lucanto API key. Two prefixes:

  • lct_pat_<random><checksum> — personal access token (owner: User)
  • lct_live_<random><checksum> — workspace token, live data

Issue keys at /settings/api_keys (personal) or /:workspace_id/settings/api_keys (workspace). Plaintext token is shown once and never again.

Path parameters

workspace_idlong or stringRequired

Workspace ID: the workspace’s numeric id or its public_id (ws_01h455vb4pex5vsknk084sn02q, the form the web app’s URLs show). The bare UUID form of the public_id is accepted but deprecated.

idlong or stringRequired

Delivery note ID. Either the numeric id or the public_id (dln_…).

Headers

Idempotency-KeystringOptional<=255 characters

Client-supplied unique key (recommended: UUID v4) for safe retries. Within 24 hours, repeating the same key with the same request (method, path, query, body) replays the original response instead of re-executing the action — once the action has run, a 5xx included; a request stopped before it ran is not stored. Reusing a key with a different request returns 422 idempotency_key_conflict (IETF draft §2.7).

Response

OK. The delivery note (with status: delivered).

idlong
public_idstringRead-onlyformat: "^dln_[0-7][0-9a-hjkmnp-tv-z]{25}$"

Stable public identifier of a delivery note. Assigned by the server; never writable.

typeenum

Document type discriminator. Always delivery_note on this endpoint.

Allowed values:
statusenum

Delivery note lifecycle state: draft while being prepared; issued once numbered; delivered once the goods were handed over; reopened after a locked note was unlocked for editing (re-issue it with issueDeliveryNote). sent and canceled occur only on notes imported from another system; no action reaches or leaves them.

currencystring

ISO-4217 currency code.

created_atdatetime
updated_atdatetime
payment_statusenum or nullOptional

Always null: a delivery note is not payable.

Allowed values:
overdueboolean or nullOptional

Always null: a delivery note is not payable.

paid_lateboolean or nullOptional

Always null: a delivery note is not payable.

status_transitionsobjectOptional
numberstring or nullOptional
Delivery note number from its number series. Null for drafts.
issue_datedate or nullOptional
delivery_datedate or nullOptional

Date the goods are (to be) delivered.

exchange_ratestring or nullOptionalformat: "decimal"
order_numberstring or nullOptional
buyer_referencestring or nullOptional<=100 characters

Buyer reference (EN 16931 BT-10).

included_in_turnoverboolean or nullOptional
vat_regimeenum or nullOptional

The document’s VAT regime, which decides how each line is taxed. domestic: a domestic supply, every line at its own tax_rate. domestic_reverse_charge: domestic reverse charge (SK § 69 ods. 12, CZ § 92a): the lines whose vat_treatment names a reverse-charge category (or manual) are at 0 % and the customer owes their VAT; the other lines keep their rate. eu_services: services to a VAT-registered customer in another EU member state, every line reverse-charged at 0 %. eu_goods: goods to a customer in another EU member state, every line at its own tax_rate. export: a supply outside the EU, every line at its own tax_rate. non_eu_services: services to a customer outside the EU, every line at 0 %, VAT not charged. null: no regime was chosen (a document created before the field, or by the web form); a reverse charge shown on such a document applies to every line.

effective_vat_regimeenumOptionalRead-only

The regime the lines follow, read-only: vat_regime when it is set, otherwise legacy_reverse_charge (a document from before regimes existed whose reverse charge applies to every line) or legacy (such a document without reverse charge, every line at its own tax_rate).

reverse_charge_textstring or nullOptional

The reverse-charge text the document prints: its own text, else the default for its vat_regime and pdf_language (the statutory reverse-charge mention followed by a short explanation), which follows a change of pdf_language until the document is locked. null when the document has neither.

tax_schemestringOptional

Tax scheme (UNCL 5153), e.g. “VAT”.

vat_calculation_modeenumOptionalRead-only

How the VAT is computed. Always net_per_rate on a delivery note.

Allowed values:
discount_descriptionstring or nullOptional
discount_percentagestring or nullOptionalformat: "decimal"
discount_amountstring or nullOptionalformat: "decimal"
opening_textstring or nullOptional
closing_textstring or nullOptional
footer_notestring or nullOptional
internal_notestring or nullOptional
pdf_languagestring or nullOptional
pdf_localestring or nullOptional
project_idlong or nullOptional

Project the document is filed under (project_id on write).

number_series_idlong or nullOptional

Number series the document is (or will be) numbered from.

mandatory_textstring or nullOptional
Legally required text printed on the PDF.
hide_pricesboolean or nullOptional

Whether the PDF hides prices. True by default on a new delivery note; null on a legacy one that never set it (prices shown).

round_totalbooleanOptional

Stored for reference; a delivery note is not payable, so no rounding is applied.

related_documentslist of objectsOptional

Documents linked to this one in the document flow, as the web sidebar lists them (the sales order or quote it came from, the invoices it references).

invoice_idlong or nullOptional

Invoice this delivery note references: the invoice it was made from (createInvoiceDeliveryNote) or the one billing it (convertDeliveryNoteToInvoice). invoice_id on write.

quote_idlong or nullOptional

Quote this delivery note was made from (quote_id on write).

sales_order_idlong or nullOptional

Sales order this delivery note fulfils (sales_order_id on write).

collective_invoice_idlong or nullOptionalRead-only

Read-only. The collective invoice that bills this delivery note; null while none does. A note is billed once: by this collective invoice or by the invoice in invoice_id, never both.

delivery_methodstring or nullOptional

Delivery/carrier mode

email_sent_atdatetime or nullOptional
amount_paidstring or nullOptionalformat: "decimal"

Always null: a delivery note is not payable.

amount_duestring or nullOptionalformat: "decimal"

Always null: a delivery note is not payable.

import_sourceenum or nullOptional

Origin of the document; null when it was created in Lucanto. See Invoice.import_source.

Allowed values:
totalsobjectOptional
settingsobjectOptional
line_itemslist of objectsOptional
customerobject or nullOptional

The party identity as it appears on a document. On an ISSUED document this is the identity the document was issued with — a snapshot pinned at issue, which does NOT change when the legal entity is later renamed, re-registered, or moved. A draft follows the entity’s current identity. id is the legal entity’s id and is stable across identity changes, so a stored reference keeps resolving. This matches the PDF and the ISDOC export of the same document. vat_period is not part of this projection — a counterparty’s filing period is not knowable.

supplierobject or nullOptional

The party identity as it appears on a document. On an ISSUED document this is the identity the document was issued with — a snapshot pinned at issue, which does NOT change when the legal entity is later renamed, re-registered, or moved. A draft follows the entity’s current identity. id is the legal entity’s id and is stable across identity changes, so a stored reference keeps resolving. This matches the PDF and the ISDOC export of the same document. vat_period is not part of this projection — a counterparty’s filing period is not knowable.

edocumentobject or nullOptional

The Peppol transmission of this delivery note. Always null for now: no delivery note is sent over Peppol yet.

Errors

401
Unauthorized Error
402
Payment Required Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
422
Unprocessable Entity Error
429
Too Many Requests Error