Update line item


put https://api.trivi.com/v2/accountingdocuments/{accountingDocumentId}/lineitems/{lineItemId}

Lines cannot be removed when the accounting document is processed.

This endpoint provides calculations. See the description of POST /accountingdocuments

Path Variables
accountingDocumentId
integer   required
Format int64
lineItemId
string   required

GUID

Body
AccountingDocumentLineItem
id
string   optional

Only in GET Guid

description
string   optional
finAccount
string   optional
unitPrice
number   optional

Unit Price VAT incl.

Format double
unitName
string   optional
qt
number   optional
Format double
total
number   optional

Total VAT incl.

Format double
totalVatExcl
number   optional

Total VAT excluded

Format double
reverseChargeCode
string   optional

If empty, reverse charge is not applied to this line item

storeItemId
integer   optional
Format int64
unitPriceVatExcl
number   optional

Unit price VAT excluded

Format double
vatValue
number   optional

VAT value in the accounting document currency

Format double
vatRate
number   optional

Ignored on input when vatRateId populated.

Same as VatRate.vatRate from GET /vatrates.

Format double
vatRateType
number   optional

Ignored on input when vatRateId populated.

Same as VatRate.vatRateType from GET /vatrates.

vatRateId
integer   optional

vatRate and vatRateType ignored if vatRateId populated.

Same as VatRate.vatRateId from GET /vatrates.

Format int64
branch
string   optional
project
string   optional
vatDeduction
boolean   optional

Valid for received Accounting Documents only.

greenboxFinancialAccountStatus
integer   optional

1 - NotClassified

2 - CheckNeeded

3 - Classified

AccountingDocumentLineItem
id
string   optional

Only in GET Guid

description
string   optional
finAccount
string   optional
unitPrice
number   optional

Unit Price VAT incl.

Format double
unitName
string   optional
qt
number   optional
Format double
total
number   optional

Total VAT incl.

Format double
totalVatExcl
number   optional

Total VAT excluded

Format double
reverseChargeCode
string   optional

If empty, reverse charge is not applied to this line item

storeItemId
integer   optional
Format int64
unitPriceVatExcl
number   optional

Unit price VAT excluded

Format double
vatValue
number   optional

VAT value in the accounting document currency

Format double
vatRate
number   optional

Ignored on input when vatRateId populated.

Same as VatRate.vatRate from GET /vatrates.

Format double
vatRateType
number   optional

Ignored on input when vatRateId populated.

Same as VatRate.vatRateType from GET /vatrates.

vatRateId
integer   optional

vatRate and vatRateType ignored if vatRateId populated.

Same as VatRate.vatRateId from GET /vatrates.

Format int64
branch
string   optional
project
string   optional
vatDeduction
boolean   optional

Valid for received Accounting Documents only.

greenboxFinancialAccountStatus
integer   optional

1 - NotClassified

2 - CheckNeeded

3 - Classified

ValidationError
code
string   optional
message
string   optional
params
object   optional
fieldsAffected
Array of ValidationFieldError   optional
ValidationFieldError
name
string   optional
message
string   optional
code
string   optional
params
object   optional
Object