Aller au contenu principal
Contacts

Récupérer un contact par son identifiant

expand inclut des sous-ressources, chacune sous sa clé et sous la forme de la première page de sa route de collection : notes (GET /v1/contacts/{id}/notes), deals (GET /v1/deals?contactId=, offre Pro) et tasks (GET /v1/tasks?contactId=, tâches ouvertes). Le nextCursor de chacune se rejoue sur cette route. Chaque expansion exige la capacité de sa route : sans elle, 403 capability_missing.

GET
/v1/contacts/{id}
Authorizationstringheaderobligatoire

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

idstringobligatoire
expandenum<string>[]query

Sous-ressources à inclure, séparées par des virgules, parmi : notes, deals, tasks. Chacune rend la première page de sa route de collection (même enveloppe, mêmes défauts) ; son nextCursor se rejoue sur cette route. Une expansion que le rôle ne peut pas lire rend 403.

Réponse

application/json
RateLimit-Limitintegerheader

Plafond de requêtes de la fenêtre d’une minute, pour le compteur le plus proche de sa limite (client ou cabinet).

RateLimit-Remainingintegerheader

Requêtes encore permises dans la fenêtre en cours.

RateLimit-Resetintegerheader

Secondes avant la remise à zéro du compteur.

ETagstringheader

Version de la ressource, opaque. À renvoyer dans If-Match pour qu’une modification soit refusée (412) si la ressource a changé depuis.

addressLinestring | nullobligatoire
assujettiTvaenum<string>default:inconnu
Options disponibles: assujetti, non_assujetti, inconnu
birthCitystring | nulldefault:null
birthCountrystring | nulldefault:null
Required string length: 2 - 2
channelsobject[]default:[]
citystring | nullobligatoire
civilitystring | nullobligatoire
countrystring | nullobligatoire
Required string length: 2 - 2
createdAtstringobligatoire
Motif: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
dateOfBirthstring | nulldefault:null
Motif: ^\d{4}-\d{2}-\d{2}$
dealsobject
doNotRemindbooleanobligatoire
emailstring | nullobligatoire
Motif: ^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
externalIdstring | nullobligatoire

Clé naturelle choisie par votre intégration (identifiant de la fiche dans votre outil). Unique dans le cabinet parmi les fiches non supprimées ; 1 à 255 caractères.

Required string length: 1 - 255
Motif: ^[^\u0000-\u001F\u007F]*$
firstNamestring | nullobligatoire
functionstring | nullobligatoire
groupSubtypeenum<string> | nulldefault:null
Options disponibles: indivision, succession, societe_de_fait
idstringobligatoire
Motif: ^[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
isAutoEntrepreneurbooleandefault:false
kindenum<string>obligatoire
Options disponibles: physique, morale, groupement
lastNamestring | nullobligatoire
Required string length: 1 - 200
linkedCompaniesobject[]obligatoire
membersobject[]
mentionsstring | nullobligatoire
notesobject
parentCompanyIdstring | nullobligatoire
Motif: ^[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
parentCompanyNamestring | nullobligatoire
phonestring | nullobligatoire
postalCodestring | nullobligatoire
referencestring | nullobligatoire
sirenstring | nullobligatoire
siretstring | nullobligatoire
tagsobject[]default:[]
tasksobject
updatedAtstringobligatoire
Motif: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
vatNumberstring | nullobligatoire
vatRegimeenum<string> | nullobligatoire
Options disponibles: standard, exonere, dom_tom
vatTerritoryenum<string> | nullobligatoire
Options disponibles: metropole_corse, dom_reduit, dom_guyane_mayotte, com_hors_champ
vatValidboolean | nulldefault:null
viesCheckedAtstring | nulldefault:null
Motif: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
websitestring | null
Maximum string length: 255
Motif: ^\S+$