Aller au contenu principal
Contacts

Créer un contact

POST
/v1/contacts
Authorizationstringheaderobligatoire

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

idempotency-keystringheader

Clé de reprise choisie par le client (8 à 255 caractères). Quand elle est fournie, une reprise portant la même clé et la même charge ne crée rien : elle rend la ressource déjà créée, relue au moment de la reprise. La même clé sur une charge différente est refusée.

Corps

application/json
addTagsstring[]

Étiquettes à poser, en plus de celles du contact (identifiants lus par GET /v1/referentials/contact-tags). Une étiquette déjà posée est sans effet.

Maximum array length: 50
addressLinestring | nullobligatoire
assujettiTvaenum<string>default:inconnu
Options disponibles: assujetti, non_assujetti, inconnu
birthCitystring | nulldefault:null
birthCountrystring | nulldefault:null
Required string length: 2 - 2
channelsobject[]
Maximum array length: 20
citystring | nullobligatoire
civilitystring | nullobligatoire
countrystring | nullobligatoire
Required string length: 2 - 2
dateOfBirthstring | nulldefault:null
Motif: ^\d{4}-\d{2}-\d{2}$
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 | null

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
isAutoEntrepreneurbooleandefault:false
kindenum<string>obligatoire
Options disponibles: physique, morale, groupement
lastNamestring | nullobligatoire
Required string length: 1 - 200
membersobject[]
mentionsstring | nullobligatoire
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}$
phonestring | nullobligatoire
postalCodestring | nullobligatoire
removeTagsstring[]

Étiquettes à retirer du contact. Une étiquette absente est sans effet. Une catégorie posée par la veille ne se retire pas.

Maximum array length: 50
sirenstring | nullobligatoire
siretstring | nullobligatoire
tagIdsstring[]

Étiquettes à poser sur le contact dès sa création (identifiants lus par GET /v1/referentials/contact-tags). Une étiquette inconnue ou posée par la veille refuse la création : aucun contact n’est créé.

Maximum array length: 50
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+$

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}$
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
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:[]
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+$