Saltar al contenido principal
GET

Abrir o ver un contacto

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

Recupera todos los detalles de un contacto específico por su identificador único.

Parámetros

Parámetros de ruta

contactIdstringobligatorio

ID del contacto (ObjectId hexadecimal de 24 caracteres)

Petición

python
import requests

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

response = requests.get(url, headers=headers)
print(response.json())

Respuestas

Respuesta

json
{
  "id": "507f1f77bcf86cd799439011",
  "custom_id": "string",
  "name": "string",
  "code": "string",
  "vat_number": "string",
  "trade_name": "string",
  "is_person": false,
  "email": "string",
  "mobile": "string",
  "phone": "string",
  "type": "client",
  "iban": "string",
  "swift": "string",
  "sepa_ref": "string",
  "sepa_date": "2024-01-15",
  "tax_operation": "string",
  "group_id": "string",
  "tags": [
    "string"
  ],
  "created_at": "2024-01-15T10:30:00Z",
  "updated_at": "2024-01-15T10:30:00Z",
  "bill_address": {
    "address": "string",
    "city": "string",
    "postal_code": "string",
    "province": "string",
    "country": "string",
    "country_code": "ES",
    "info": "string"
  },
  "client_record": {
    "num": 0,
    "name": "string"
  },
  "supplier_record": {
    "num": 0,
    "name": "string"
  },
  "defaults": {
    "sales_channel": "string",
    "expenses_account": "string",
    "due_days": 0,
    "payment_day": 0,
    "payment_method": "string",
    "discount": 0,
    "language": "string",
    "currency": "string",
    "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"
    }
  },
  "shipping_addresses": [
    {
      "shipping_id": "string",
      "name": "string",
      "address": "string",
      "city": "string",
      "postal_code": "string",
      "province": "string",
      "country": "string",
      "country_code": "string",
      "notes": "string",
      "private_notes": "string"
    }
  ],
  "notes": [
    {
      "note_id": "string",
      "name": "string",
      "description": "string",
      "color": "string",
      "updated_at": "2024-01-15T10:30:00Z"
    }
  ],
  "contact_persons": [
    {
      "person_id": "string",
      "name": "string",
      "job": "string",
      "phone": "string",
      "email": "string",
      "send_documents_by_default": false
    }
  ],
  "custom_fields": [
    {
      "field": "string",
      "value": {}
    }
  ],
  "extra_emails": [
    "string"
  ],
  "website": "string",
  "social_networks": {},
  "rate": {
    "id": "string",
    "name": "string",
    "description": "string"
  }
}

Respuestas exitosas

200Contacto encontradoapplication/json
object
idstring

Unique identifier of the contact

custom_idstring | null

Your external reference identifier for this contact

namestring

Full name of the contact or company

codestring | null

Tax identification number

vat_numberstring | null

EU VAT number for intra-community operations

trade_namestring | null

Commercial trading name, if different from the legal name

is_personboolean

Whether the contact is an individual person rather than a company

emailstring | null

Primary email address

mobilestring | null

Mobile phone number

phonestring | null

Landline phone number

typestring | null

Classification of the contact

Enum:clientdebtorsuppliercreditorlead
ibanstring | null

IBAN bank account number

swiftstring | null

SWIFT/BIC code of the bank

sepa_refstring | null

SEPA mandate reference for direct debit collections

sepa_datestring<date> | null

Date the SEPA direct debit mandate was signed

tax_operationstring | null

Fiscal operation type of the contact (e.g. general, intra, receq, exento)

group_idstring | null

Identifier of the contact group this contact belongs to

tags[]string[]

List of tags attached to the contact

created_atstring<date-time> | null

Timestamp when the contact was created

updated_atstring<date-time> | null

Timestamp when the contact was last modified

bill_addressobject | null

Billing address of the contact

addressstring | null

Street address

citystring | null

City name

postal_codestring | null

Postal or ZIP code

provincestring | null

State or province

countrystring | null

Country name

country_codestring | null

ISO 3166-1 alpha-2 country code

infostring | null

Additional address information

client_recordobject | null

Accounting account (chart of accounts) used when this contact acts as a client

numinteger

Accounting account number

namestring

Accounting account name

supplier_recordobject | null

Accounting account (chart of accounts) used when this contact acts as a supplier

numinteger

Accounting account number

namestring

Accounting account name

defaultsobject | null

Default settings applied to new documents for this contact

sales_channelstring | null

Default sales channel identifier

expenses_accountstring | null

Default expenses account identifier

due_daysinteger | null

Default number of days until payment is due

payment_dayinteger | null

Fixed day of the month for payment

payment_methodstring | null

Default payment method identifier

discountinteger | null

Default discount percentage

languagestring | null

Default language code for documents

currencystring | null

Default ISO 4217 currency code

sales_tax[]string[] | null

Default sales tax key identifiers

purchases_tax[]string[] | null

Default purchases tax key identifiers

accumulate_in_form_347boolean

Whether the contact accumulates in tax form 347 (read-only)

numbering_seriesobject | null

Default numbering series ID applied to new documents of each type created for this contact

shipping_addresses[]object[]

List of shipping addresses

shipping_idstring

Unique identifier of the shipping address

namestring | null

Label for this shipping address

addressstring | null

Street address

citystring | null

City name

postal_codestring | null

Postal or ZIP code

provincestring | null

State or province

countrystring | null

Country name

country_codestring | null

ISO 3166-1 alpha-2 country code

notesstring | null

Public notes about this address

private_notesstring | null

Internal notes not visible to the contact

notes[]object[]

Internal notes attached to the contact

note_idstring

Unique identifier of the note

namestring | null

Title of the note

descriptionstring | null

Content of the note

colorstring | null

Color label of the note

updated_atstring<date-time> | null

Timestamp when the note was last modified

contact_persons[]object[]

People associated with this contact

person_idstring

Unique identifier of the contact person

namestring | null

Full name

jobstring | null

Job title or role

phonestring | null

Phone number

emailstring | null

Email address

send_documents_by_defaultboolean

Whether documents are sent to this person by default

custom_fields[]object[]

User-defined custom fields

fieldstring

Custom field identifier

valueobject

Value stored in the custom field

extra_emails[]string[]

Additional email addresses for the contact

websitestring | null

Website URL of the contact

social_networksobject | null

Social network profiles of the contact

rateobject | null

Price rate assigned to this contact

idstring

Identifier of the price rate

namestring

Name of the price rate

descriptionstring | null

Description of the price rate

Respuestas de error

401API key inválida o no proporcionadaapplication/json
403Permisos insuficientesapplication/json
404Contacto no encontradoapplication/json
429Límite de solicitudes excedidoapplication/json