Skip to main content
PUT

Update a contact

Scope:contacts:contacts.write
https://api.holded.com/api/v2/contacts/{contactId}

Replaces all mutable fields of an existing contact. This is a full replacement — any field you omit from the request body will be reset to its default value. To avoid accidentally clearing data, first fetch the contact with GET, modify the fields you need, and send back the full object. Partial updates are not supported on this endpoint. A user with limited access to contacts can only update the contacts they can see; any other contact is refused with 403.

Parameters

Path parameters

contactIdstringrequired

Contact ID (24-char hex ObjectId)

Request body

object
namestringrequired

Contact full name or company name

codestring | nulloptional

Tax identification number (NIF, CIF, etc.)

vat_numberstring | nulloptional

EU VAT number

trade_namestring | nulloptional

Commercial or trade name, if different from legal name

is_personbooleanoptional

True if the contact is an individual, false if a company

emailstring | nulloptional

Email address. Several can be sent separated by commas or semicolons: the first is the primary, the rest are returned in `extra_emails`. Invalid ones are ignored (400 if none is valid).

phonestring | nulloptional

Landline phone number

mobilestring | nulloptional

Mobile phone number

websitestring | nulloptional

Website URL

typestring | nulloptional

Contact classification

Enum:clientdebtorsuppliercreditorlead
client_recordinteger | nulloptional

Number of the accounting account (chart of accounts) used when this contact acts as a client

supplier_recordinteger | nulloptional

Number of the accounting account (chart of accounts) used when this contact acts as a supplier

ibanstring | nulloptional

IBAN bank account number

swiftstring | nulloptional

SWIFT/BIC code of the bank

sepa_refstring | nulloptional

SEPA mandate reference for direct debit collections

sepa_datestring<date> | nulloptional

Date the SEPA direct debit mandate was signed

tax_operationstring | nulloptional

Fiscal operation type of the contact (e.g. general, intra, receq, exento). Must be one of the operations defined by the account tax scheme. On update, omitting it (or sending null) keeps the current value

bill_addressobject | nulloptional

Billing address

addressstring | null

Street address

citystring | null

City

postal_codestring | null

Postal or ZIP code

provincestring | null

Province or state

countrystring | null

Country name

country_codestring | null

ISO 3166-1 alpha-2 country code

infostring | null

Additional address information

social_networksobject | nulloptional

Social network profiles of the contact. Omit it to keep the current values. `website` is also used as the contact website when the top-level `website` is not sent

facebookstring | null

Handle or URL for `facebook`

twitterstring | null

Handle or URL for `twitter`

instagramstring | null

Handle or URL for `instagram`

googlestring | null

Handle or URL for `google`

linkedinstring | null

Handle or URL for `linkedin`

pintereststring | null

Handle or URL for `pinterest`

foursquarestring | null

Handle or URL for `foursquare`

youtubestring | null

Handle or URL for `youtube`

vimeostring | null

Handle or URL for `vimeo`

wordpressstring | null

Handle or URL for `wordpress`

websitestring | null

Handle or URL for `website`

tags[]string[] | nulloptional

Tags attached to the contact

contact_persons[]object[]optional

Linked contact persons (by their contact ID). Only `person_id` is read; the other fields the GET returns for each person are kept as stored.

person_idstringrequired

Contact ID of the person

custom_fields[]object[] | nulloptional

User-defined custom fields

fieldstring

Custom field identifier

valueobject

Value stored in the custom field

defaultsobject | nulloptional

Default settings applied to documents created for this contact

sales_channelstring | null

Default sales channel identifier

expenses_accountstring | null

Default expenses accounting account

due_daysinteger | null

Default payment due days

payment_dayinteger | null

Default fixed payment day of the month

payment_methodstring | null

Default payment method identifier

discountinteger | null

Default discount percentage

languagestring | null

Default document language code

currencystring | null

Default currency code

sales_tax[]string[] | null

Default sales tax keys applied to sales documents

purchases_tax[]string[] | null

Default purchases tax keys applied to purchase documents

accumulate_in_form_347boolean | null

Whether the contact accumulates in tax form 347. Omit it (or send null) to keep the current value.

numbering_seriesobject | null

Default numbering series applied to new documents of each type created for this contact. Each value must be a valid numbering series ID; invalid or unrecognized IDs are silently ignored (stored as null). Omit this field entirely to keep the numbering series already configured for this contact.

notes[]object[] | nulloptional

Internal notes attached to the contact. The array is the full set: notes that are not included are deleted, and an empty array removes them all. Omit it (or send null) to keep the current notes. Every note you send gets a new updated_at, even if its content did not change.

note_idstring | nulloptional

Identifier of an existing note to update. Omit it to create a new note

namestringrequired

Title of the note

descriptionstringrequired

Content of the note

colorstring | nulloptional

Color label of the note

Request

python
import requests

url = "https://api.holded.com/api/v2/contacts/{contactId}"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Accept": "application/json",
}

payload = {
    "name": "string",
    "code": "string",
    "vat_number": "string",
    "trade_name": "string",
    "is_person": false,
    "email": "string",
    "phone": "string",
    "mobile": "string",
    "website": "string",
    "type": [
        "client",
        "supplier",
        "debtor",
        "creditor",
        "lead"
    ],
    "client_record": 0,
    "supplier_record": 0,
    "iban": "string",
    "swift": "string",
    "sepa_ref": "string",
    "sepa_date": "2024-01-15",
    "tax_operation": "string",
    "bill_address": {
        "address": "string",
        "city": "string",
        "postal_code": "string",
        "province": "string",
        "country": "string",
        "country_code": "ES",
        "info": "string"
    },
    "social_networks": {
        "facebook": "string",
        "twitter": "string",
        "instagram": "string",
        "google": "string",
        "linkedin": "string",
        "pinterest": "string",
        "foursquare": "string",
        "youtube": "string",
        "vimeo": "string",
        "wordpress": "string",
        "website": "string"
    },
    "tags": [
        "string"
    ],
    "contact_persons": [
        {
            "person_id": "string"
        }
    ],
    "custom_fields": [
        {
            "field": "string",
            "value": {}
        }
    ],
    "defaults": {
        "sales_channel": "string",
        "expenses_account": "string",
        "due_days": 0,
        "payment_day": 0,
        "payment_method": "string",
        "discount": 0,
        "language": "string",
        "currency": "EUR",
        "sales_tax": [
            "string"
        ],
        "purchases_tax": [
            "string"
        ],
        "accumulate_in_form_347": false,
        "numbering_series": {
            "invoice": "string",
            "receipt": "string",
            "salesorder": "string",
            "estimate": "string",
            "order": "string",
            "proform": "string",
            "waybill": "string"
        }
    },
    "notes": [
        {
            "note_id": "string",
            "name": "string",
            "description": "string",
            "color": "string"
        }
    ]
}
response = requests.put(url, headers=headers, json=payload)
print(response.json())

Responses

Response

json
{
  "status": 1
}

Success responses

200Contact updatedapplication/json
object
statusintegerrequired

Operation status

Error responses

400Bad requestapplication/json
401Invalid or missing API keyapplication/json
403Insufficient permissionsapplication/json
404Contact not foundapplication/json
422Validation errorapplication/json
429Rate limit exceededapplication/json