Skip to main content
PUT
Update Document

Headers

Authorization
string
required

API key. Value must be formatted like so: lucca application={api_key}.

Path Parameters

id
integer<int32>
required

ID of the document.

Body

application/json

Document to update.

An invoice document (before booking).

owner
Reference to a user · object

Reference to a user.

type
enum<string>

Type of document: Invoice or CreditNote.

Available options:
Invoice,
CreditNote
context
object | null

Context data for the document.

documentBreakdown
Reference to a document-breakdown. · object
documentDate
string<date> | null
documentNumber
string | null
amountIncludingTaxes
taxed-amount · object

Represents an amount of money with VAT taxes.

accountingLabel
string | null
comment
string | null
intraCommunityTaxes
boolean
attachments
attachment · object[]
dueDate
string<date> | null
paymentDetails
object | null
author
Reference to a user · object

Reference to a user.

modifier
Reference to a user · object

Reference to a user.

Response

200 - application/json

OK

An invoice document (before booking).

id
integer<int32>
read-only
owner
Reference to a user · object

Reference to a user.

type
enum<string>

Type of document: Invoice or CreditNote.

Available options:
Invoice,
CreditNote
context
object | null

Context data for the document.

documentBreakdown
Reference to a document-breakdown. · object
documentDate
string<date> | null
documentNumber
string | null
amountIncludingTaxes
taxed-amount · object

Represents an amount of money with VAT taxes.

accountingLabel
string | null
comment
string | null
intraCommunityTaxes
boolean
attachments
attachment · object[]
ocrStatus
enum<string>
read-only

Status of OCR processing.

Available options:
Pending,
Processing,
Processed,
Failed,
NotApplicable
dueDate
string<date> | null
paymentDetails
object | null
createdAt
string<date-time>
read-only
modifiedAt
string<date-time>
read-only
author
Reference to a user · object

Reference to a user.

modifier
Reference to a user · object

Reference to a user.