Create contact


post https://api.trivi.com/v2/contacts

Body
Contact
id
number   optional

Only in GET

Format int64
externalId
string   optional
companyName
string   optional

Either companyName or lastName or firstName are required.

companyRegNo
string   optional
taxId
string   optional
firstName
string   optional

Either companyName or lastName or firstName are required.

lastName
string   optional

Either companyName or lastName or firstName are required.

email
string   optional
addresses
Array of ContactAddress   optional
persons
Array of ContactPerson   optional
bankAccounts
Array of ContactBankAccount   optional
defaultDuePeriod
integer   optional
language
AccountingDocumentLanguage   optional
AccountingDocumentLanguage
CS
string   optional
EN
string   optional
DE
string   optional
cz
isRegistered
boolean   optional

Only in GET

countryVariantSpecific
cz
object   optional
ContactPerson
id
integer   optional

Only in GET

Format int64
firstname
string   optional
lastname
string   optional
street
string   optional
city
string   optional
zipCode
string   optional
country
string   optional

ISO code

isMain
boolean   optional
email
string   optional
phone
string   optional
jobTitle
string   optional
ContactAddress
id
integer   optional

Only in GET

Format int64
street
string   optional
city
string   optional
zipCode
string   optional
type
number   required

1 - invoicing, 2 - delivering

country
string   optional

ISO code

email
string   optional
phone
string   optional
ContactBankAccount
accountNo
string   optional
accountCode
string   optional
accountSwift
string   optional
accountIban
string   optional
countryVariantSpecific
object   optional
name
string   optional
currency
string   optional
Contact
id
number   optional

Only in GET

Format int64
externalId
string   optional
companyName
string   optional

Either companyName or lastName or firstName are required.

companyRegNo
string   optional
taxId
string   optional
firstName
string   optional

Either companyName or lastName or firstName are required.

lastName
string   optional

Either companyName or lastName or firstName are required.

email
string   optional
addresses
Array of ContactAddress   optional
persons
Array of ContactPerson   optional
bankAccounts
Array of ContactBankAccount   optional
defaultDuePeriod
integer   optional
language
AccountingDocumentLanguage   optional
AccountingDocumentLanguage
CS
string   optional
EN
string   optional
DE
string   optional
cz
isRegistered
boolean   optional

Only in GET

countryVariantSpecific
cz
object   optional
ContactPerson
id
integer   optional

Only in GET

Format int64
firstname
string   optional
lastname
string   optional
street
string   optional
city
string   optional
zipCode
string   optional
country
string   optional

ISO code

isMain
boolean   optional
email
string   optional
phone
string   optional
jobTitle
string   optional
ContactAddress
id
integer   optional

Only in GET

Format int64
street
string   optional
city
string   optional
zipCode
string   optional
type
number   required

1 - invoicing, 2 - delivering

country
string   optional

ISO code

email
string   optional
phone
string   optional
ContactBankAccount
accountNo
string   optional
accountCode
string   optional
accountSwift
string   optional
accountIban
string   optional
countryVariantSpecific
object   optional
name
string   optional
currency
string   optional
Object