Contacts

Update the commercial terms of a contact

Sets how and when this contact pays: currency, language of its documents, billing email, payment method, payment days, due date, usual discount and the electronic invoicing codes for public administration.

Tool
filmo_contacts_preferences_update
Access: Write

Result

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "filmo_contacts_preferences_update",
    "arguments": {
      "contactId": "cont_8f2a1c"
    }
  }
}

generated from the schema

The default tax configuration is NOT part of the public contract. Returns the updated contact in detail.

Arguments

contactIdstringRequired

Contact identifier.

Limits: min length 1

preferredLanguagestring | null

Language of the documents issued to the contact, e.g. "es-ES"; null clears it.

Available options: es-ES, en-US, fr-FR, ca-ES, de-DE, pl-PL

currencystring | null

Default currency, as a 3-letter ISO 4217 code (e.g. "EUR"); null clears it.

Limits: min length 3, max length 3

billingEmailstring<email> | null

Email address the invoices are sent to; null clears it.

paymentMethodobject | null

Payment method agreed with the contact; null clears it.

Show child attributes
paymentMethod.typestringRequired

Agreed payment method, in the same vocabulary the contact returns: bank_transfer, card, cash or other. Direct debit is a configured method of the account: assign it through paymentMethodIds.

Available options: bank_transfer, card, cash, other

paymentMethod.customValuestring

Free-text detail when the type is "other".

paymentMethodIdsstring[]

Payment methods configured in the account that this contact accepts.

primaryPaymentMethodIdstring | null

Which of them is the primary one; null clears it.

paymentDaysinteger[] | null

Days of the month on which the contact pays. Replaces the whole list; null clears it.

Limits: each min 1, each max 31

expirationDaysinteger | null

Due days for the invoices of the contact, as a whole number of days; null uses the account default.

Limits: min 0

discountSettingsobject

Discount applied to the contact by default.

Show child attributes
discountSettings.percentagenumberRequired

Usual discount, as a percentage (0-100).

Limits: min 0, max 100

eInvoiceFieldsobject | null

Electronic invoicing codes for public administration.

Show child attributes
eInvoiceFields.accountingOfficestring

Accounting office (FACe).

eInvoiceFields.managementBodystring

Management body (FACe).

eInvoiceFields.processingUnitstring

Processing unit (FACe).

eInvoiceFields.proposingBodystring

Proposing body (FACe).

idempotencyKeystring

Idempotency key chosen by the client (a UUID is recommended). Repeating the same key with the same arguments within 24 h returns the stored response without executing again; with different arguments it responds 422. It is the safe way to retry after a network failure.

Limits: min length 1, max length 255

ifMatchstring

Optimistic locking: the meta.etag you got from the detail read of this resource (or "*"). If the resource changed since, the call fails with 412 precondition_failed before writing anything; read it again and retry. Omit it to write unconditionally.

Limits: min length 1

Result

On success the result carries structuredContent with data and meta. These are the attributes of data.

Show the attributes of data
idstring

Unique identifier of the contact.

namestring

Contact name (person or company).

contactTypestring

Contact type: person (individual) or company (business).

Available options: person, company

rolestring

Contact role: client, provider, lead, debtor, creditor, student, teacher or unspecified.

Available options: client, provider, lead, debtor, creditor, student, teacher, unspecified

statusstring

Contact status: active (operational), inactive (deactivated) or archived (closed, kept for historical records).

Available options: active, inactive, archived

nifstring | null

NIF/CIF or tax identification number; null if not recorded.

commercialNamestring | null

Trade name; null if it matches the name or is not recorded.

positionstring | null

Job title or position of the contact person; null if not recorded.

contactNumberstring | null

Contact number assigned by the account (internal reference); null if not recorded.

emailsobject[]

List of email addresses of the contact.

Show child attributes
emails.idstring

Internal identifier of the email within the contact.

emails.labelstring | null

Descriptive label of the email; null if it has none.

emails.emailstring

Email address.

emails.isPrimaryboolean

Whether this is the primary email of the contact.

billingEmailstring | null

Dedicated billing email; null means the primary email is used.

phoneNumbersobject[]

List of phone numbers of the contact.

Show child attributes
phoneNumbers.idstring

Internal identifier of the phone number within the contact.

phoneNumbers.labelstring | null

Descriptive label of the phone number; null if it has none.

phoneNumbers.numberstring

Phone number.

phoneNumbers.countryCodestring | null

International country calling code (e.g. "+34"); null if not recorded.

phoneNumbers.isPrimaryboolean

Whether this is the primary phone number of the contact.

websitesobject[]

List of websites of the contact.

Show child attributes
websites.idstring

Internal identifier of the website within the contact.

websites.labelstring | null

Descriptive label of the website; null if it has none.

websites.urlstring

Website URL.

addressesobject[]

List of addresses of the contact.

Show child attributes
addresses.idstring

Internal identifier of the address within the contact.

addresses.labelstring | null

Descriptive label of the address; null if it has none.

addresses.addressLine1string | null

First line of the address; null if not recorded.

addresses.addressLine2string | null

Second line of the address; null if not recorded.

addresses.citystring | null

City; null if not recorded.

addresses.provincestring | null

Province or region; null if not recorded.

addresses.postcodestring | null

Postcode; null if not recorded.

addresses.countrystring | null

Country; null if not recorded.

addresses.isMainboolean

Whether this is the main address of the contact.

folderstring | null

Folder or organizational grouping; null if the contact is not classified.

discountPercentagenumber | null

General discount percentage of the contact (0-100); null if no discount is configured.

preferredLanguagestring | null

Preferred language of the contact; null if not recorded.

currencystring | null

Default currency of the contact as an ISO 4217 code; null if not recorded.

paymentMethodobject | null

Preferred payment method of the contact; null if not configured.

Show child attributes
paymentMethod.typestring

Payment method type: bank_transfer, card, cash, sepa_direct_debit or other.

Available options: bank_transfer, card, cash, other, sepa_direct_debit

paymentMethod.customValuestring | null

Free-text detail when the type is "other" (for example a method recorded before it was configured); null otherwise.

paymentDaysinteger[] | null

Days of the month on which the contact makes payments; null if not configured.

expirationDaysinteger | null

Default due days for the invoices of the contact; null if not configured.

subscribedToMarketingboolean

Whether the contact is subscribed to marketing communications.

isAppUserboolean

Whether the contact has access to the app.

customFieldsobject<string, any>

Custom field values by custom field identifier; the definitions are in /api/v1/custom-fields.

createdAtstring<date-time>

Creation date in ISO 8601 with offset.

updatedAtstring<date-time>

Last update date in ISO 8601 with offset.

relatedContactsobject[]

Contacts related to this contact (e.g. people of a company).

Show child attributes
relatedContacts.idstring

Unique identifier of the related contact.

relatedContacts.namestring

Name of the related contact.

relatedContacts.commercialNamestring | null

Trade name of the related contact; null if not recorded.

relatedContacts.contactTypestring

Type of the related contact: person or company.

Available options: person, company

relatedContacts.rolestring

Role of the related contact.

Available options: client, provider, lead, debtor, creditor, student, teacher, unspecified

relatedContacts.statusstring

Status of the related contact: active, inactive or archived.

Available options: active, inactive, archived

relatedContacts.relationRolestring | null

Role of the relationship between the two contacts (e.g. "employee of"); null if not recorded.

An error is a result with isError: true and the problem in content[0].text; there is no structuredContent. See Errors.

The same operation by REST

This tool runs PATCH /api/v1/contacts/{contactId}/preferences.

  • Contacts

    Update the commercial terms of a contact

    Sets how and when this contact pays: currency, language of its documents, billing email, payment method, payment days, due date, usual discount and the electronic invoicing codes for public administration.

  • Guides

    Safe writes

    An assistant that can write can also write the wrong thing. Decide which tools need a person, retry without duplicating, and know what a write sets in motion.

  • Guides

    Errors

    A tool error is a result with isError: true and the problem in the first text block. Branch on its code.