upsert_contact
Create or update a customer or supplier contact in Yuki by matching the contact code; updates existing records or creates new ones, returning the contact ID.
Instructions
Create or update a contact (customer or supplier) in Yuki. When contactCode matches an existing record it will be updated; otherwise a new contact is created. Returns the Yuki response with the contact ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bic | No | BIC / SWIFT code | |
| city | No | ||
| phone | No | Main phone number | |
| mobile | No | ||
| website | No | ||
| zipcode | No | ||
| domainId | No | Domain ID (GUID). Defaults to YUKI_DOMAIN_ID env var. | |
| fullName | Yes | Full company or person name | |
| lastName | No | ||
| cocNumber | No | KvK / Chamber of Commerce number | |
| firstName | No | ||
| vatNumber | No | VAT / BTW number (e.g. 'NL123456789B01') | |
| middleName | No | ||
| bankAccount | No | IBAN bank account number | |
| contactCode | No | Unique contact code. Used to identify and update existing contacts. | |
| contactType | No | Role: Debtor = customer, Creditor = supplier, Both = customer & supplier | Both |
| countryCode | No | ISO 3166-1 alpha-2 country code | NL |
| addressLine1 | No | ||
| addressLine2 | No | ||
| emailAddress | No |