Update a credit note

View as Markdown

Partial update. The type field is intentionally NOT updatable. Updating an issued credit note is allowed but rare — the document has already been accounted for as a VAT correction.

Authentication

AuthorizationBearer

Devise JWT issued via POST /api/v1/auth/sign_in. Used by mobile and SPA clients. Revoked tokens are tracked in api_jwt_denylists.

OR
AuthorizationBearer
Lucanto API key. Three prefixes: - `lct_pat_<random><checksum>` — personal access token (owner: User) - `lct_live_<random><checksum>` — workspace token, live data - `lct_test_<random><checksum>` — workspace token, sandbox account (Phase 3) 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_idlongRequired>=1

Workspace (account) ID. The numeric ID shown in your URLs.

idlongRequired>=1
Credit note ID

Request

This endpoint expects an object.
documentobjectRequired

Response

OK
idlong
typeenum
statusenum

Credit note lifecycle state. The same sync_payment_status! callback that derives invoice statuses also fires on credit notes (it’s on the base Document model), so the full payment-derived state set can appear here even though credit notes are not themselves a payment obligation. Practically: consumers should treat draft and exposed as the meaningful credit-note lifecycle states; the paid-family states reflect how the credit note has been applied against the source invoice’s payment allocation.

currencystring

ISO-4217 currency code.

created_atdatetime
updated_atdatetime
numberstring or null

Credit note number (formatted via number_series, e.g. ‘DOB2026-0001’). Null for drafts.

issue_datedate or null
delivery_datedate or null
exchange_ratestring or nullformat: "decimal"
included_in_turnoverboolean or null
reverse_chargeboolean or null
reverse_charge_textstring or null
discount_descriptionstring or null
discount_percentagestring or nullformat: "decimal"
discount_amountstring or nullformat: "decimal"
order_numberstring or null
text_openingstring or null
text_closingstring or null
footer_notestring or null
recipient_notestring or null
internal_notestring or null
pdf_languagestring or null
pdf_localestring or null
pdf_compact_modeboolean or null
hide_signatureboolean or null
delivery_typestring or null
sent_statusstring or null
email_sent_atdatetime or null
seen_timestampdatetime or null
purchaser_idlong or null
Party ID of the customer.
supplier_idlong or null
Party ID of the workspace's own legal entity.
bank_account_idlong or null
project_idlong or null
document_itemslist of objects
purchaserobject or null
supplierobject or null

Errors

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