Update VAT recap


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

This endpoint is not valid if the accounting document is already processed.

Path Variables
accountingDocumentId
string   required
Body
AccountingDocumentVatRecapInfo
vatRecapCalculationMode
integer   required

0 - StartFromVatExcluded, 1 - StartFromVatIncluded, 2 - Manually If AccountingDocument.type is CashReceipt, CashUncategorized, EmployeeAdvance or CashTransfer, this field have to be set to Manually

Required if vatRecapCalculationMode is Manually

total
number   optional

Required if vatRecapCalculationMode is Manually

Format double
totalVatExcl
number   optional

Required if vatRecapCalculationMode is Manually

Format double
totalVatAmount
number   optional

Only in GET

Format double
roundingAmount
number   optional

Only in GET

Format double
AccountingDocumentVatRecapLine
vatRate
number   required
Format double
base
number   optional
Format double
vatAmount
number   optional
Format double
total
number   optional
Format double
AccountingDocumentVatRecapInfo
vatRecapCalculationMode
integer   required

0 - StartFromVatExcluded, 1 - StartFromVatIncluded, 2 - Manually If AccountingDocument.type is CashReceipt, CashUncategorized, EmployeeAdvance or CashTransfer, this field have to be set to Manually

Required if vatRecapCalculationMode is Manually

total
number   optional

Required if vatRecapCalculationMode is Manually

Format double
totalVatExcl
number   optional

Required if vatRecapCalculationMode is Manually

Format double
totalVatAmount
number   optional

Only in GET

Format double
roundingAmount
number   optional

Only in GET

Format double
AccountingDocumentVatRecapLine
vatRate
number   required
Format double
base
number   optional
Format double
vatAmount
number   optional
Format double
total
number   optional
Format double
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