Search for Contacts


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

Body
ContactSearch
filters
Array of Object   optional
page
integer   optional
pageSize
integer   optional
Default 10 Minimum 10 Maximum 100
searchText
string   optional

This searches in lineItems.description, description, creditNoteDescription, and whole contact object

sortingField
string   optional
sortingDirection
string   optional

ASC or DESC, default is DESC

filters
field
string   optional
value
object   optional

If valueFrom or valueTo is filled, this must be empty

valueFrom
object   optional
valueTo
object   optional
valueContains
Array of Object   optional
ContactsSearchResult
contacts
Array of Contact   optional
pagesCount
integer   optional
currentPage
integer   optional
pageSize
number   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
ContactBankAccount
accountNo
string   optional
accountCode
string   optional
accountSwift
string   optional
accountIban
string   optional
countryVariantSpecific
object   optional
name
string   optional
currency
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
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
countryVariantSpecific
cz
object   optional
cz
isRegistered
boolean   optional

Only in GET

AccountingDocumentLanguage
CS
string   optional
EN
string   optional
DE
string   optional
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