Skip to main content
POST

Create a contact

Scope:contacts:contacts.write
https://api.holded.com/api/v2/contacts

Creates a new contact in your account. Contacts represent the people and companies you do business with — customers, suppliers, leads, debtors, or creditors. At minimum you must provide a `name`. The `type` field controls how the contact appears in your accounting (e.g. client, supplier). If omitted, the contact is created without a type and can be classified later. The response returns the new contact `id`. Use it to create invoices, purchases, or any other document linked to this contact.

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

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

shipping_addresses[]object[]optional

Shipping addresses of the contact

namestringrequired

Label for this shipping address

addressstring | nulloptional

Street address

citystring | nulloptional

City name

postal_codestring | nulloptional

Postal or ZIP code

provincestring | nulloptional

State or province

countrystring | nulloptional

Country name

country_codestring | nulloptional

ISO 3166-1 alpha-2 country code

notesstring | nulloptional

Public notes about this address

private_notesstring | nulloptional

Internal notes not visible to the contact

social_networksobject | nulloptional

Social network profiles of the contact. `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

notes[]object[] | nulloptional

Internal notes attached to the contact.

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

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. Defaults to true when omitted.

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).

Request

python
import requests

url = "https://api.holded.com/api/v2/contacts"
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"
    },
    "shipping_addresses": [
        {
            "name": "string",
            "address": "string",
            "city": "string",
            "postal_code": "string",
            "province": "string",
            "country": "string",
            "country_code": "string",
            "notes": "string",
            "private_notes": "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"
    ],
    "notes": [
        {
            "note_id": "string",
            "name": "string",
            "description": "string",
            "color": "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"
        }
    }
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())

Responses

Response

json
{
  "id": "507f1f77bcf86cd799439011"
}

Success responses

201Contact createdapplication/json
object
idstring

Error responses

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