Assign contact


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

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

Path Variables
accountingDocumentId
number   required
Format int64
Query Variables
createContact
boolean   optional

If true and no contact is found when pairing, we will create a new contact

Default False
removeVendorBankAccounts
boolean   optional

If true all vendor's bank accounts will be removed from the Accounting Document.

Default False
Body
AccountingDocumentContact
contactId
integer   optional

If set, the accounting document will be paired to this contact. If other contact properties are empty, they will be loaded from contact, otherwise they will be used as posted. The contact will not be changed.

Format int64
firstname
string   optional
lastname
string   optional
companyRegNo
string   optional
companyName
string   optional
taxId
string   optional
city
string   optional
street
string   optional
country
string   optional
zipCode
string   optional
email
string   optional
externalId
string   optional

Can be used if a contact doesn't have companyRegNo

AccountingDocumentContact
contactId
integer   optional

If set, the accounting document will be paired to this contact. If other contact properties are empty, they will be loaded from contact, otherwise they will be used as posted. The contact will not be changed.

Format int64
firstname
string   optional
lastname
string   optional
companyRegNo
string   optional
companyName
string   optional
taxId
string   optional
city
string   optional
street
string   optional
country
string   optional
zipCode
string   optional
email
string   optional
externalId
string   optional

Can be used if a contact doesn't have companyRegNo

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