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
vatRateType
number   optional

1 - Standard, 2 - Out of VAT (cz: Mimo DPH), 3 - DoNotApplyVat (cz: Neuplatnit DPH), 4 - Reverse Charge, 5 - ExemptFromVAT (cz: osvobozeno od DPH)

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
vatRateType
number   optional

1 - Standard, 2 - Out of VAT (cz: Mimo DPH), 3 - DoNotApplyVat (cz: Neuplatnit DPH), 4 - Reverse Charge, 5 - ExemptFromVAT (cz: osvobozeno od DPH)

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