Abrir o ver un contacto
contacts:contacts.readhttps://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
stringobligatorioID del contacto (ObjectId hexadecimal de 24 caracteres)
Petición
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
{
"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/jsonUnique identifier of the contact
Your external reference identifier for this contact
Full name of the contact or company
Tax identification number
EU VAT number for intra-community operations
Commercial trading name, if different from the legal name
Whether the contact is an individual person rather than a company
Primary email address
Mobile phone number
Landline phone number
Classification of the contact
clientdebtorsuppliercreditorleadIBAN bank account number
SWIFT/BIC code of the bank
SEPA mandate reference for direct debit collections
Date the SEPA direct debit mandate was signed
Fiscal operation type of the contact (e.g. general, intra, receq, exento)
Identifier of the contact group this contact belongs to
List of tags attached to the contact
Timestamp when the contact was created
Timestamp when the contact was last modified
Billing address of the contact
Street address
City name
Postal or ZIP code
State or province
Country name
ISO 3166-1 alpha-2 country code
Additional address information
Accounting account (chart of accounts) used when this contact acts as a client
Accounting account number
Accounting account name
Accounting account (chart of accounts) used when this contact acts as a supplier
Accounting account number
Accounting account name
Default settings applied to new documents for this contact
Default sales channel identifier
Default expenses account identifier
Default number of days until payment is due
Fixed day of the month for payment
Default payment method identifier
Default discount percentage
Default language code for documents
Default ISO 4217 currency code
Default sales tax key identifiers
Default purchases tax key identifiers
Whether the contact accumulates in tax form 347 (read-only)
Default numbering series ID applied to new documents of each type created for this contact
List of shipping addresses
Unique identifier of the shipping address
Label for this shipping address
Street address
City name
Postal or ZIP code
State or province
Country name
ISO 3166-1 alpha-2 country code
Public notes about this address
Internal notes not visible to the contact
Internal notes attached to the contact
Unique identifier of the note
Title of the note
Content of the note
Color label of the note
Timestamp when the note was last modified
People associated with this contact
Unique identifier of the contact person
Full name
Job title or role
Phone number
Email address
Whether documents are sent to this person by default
User-defined custom fields
Custom field identifier
Value stored in the custom field
Additional email addresses for the contact
Website URL of the contact
Social network profiles of the contact
Price rate assigned to this contact
Identifier of the price rate
Name of the price rate
Description of the price rate
Respuestas de error
401API key inválida o no proporcionadaapplication/json403Permisos insuficientesapplication/json404Contacto no encontradoapplication/json429Límite de solicitudes excedidoapplication/json