POST api/v2/contact/society
Création d'un contact de type société
Request Information
URI Parameters
None.
Body Parameters
CompanyDefinitionDto| Name | Description | Type | Additional information |
|---|---|---|---|
| ContactId |
identifiant |
globally unique identifier |
None. |
| CustomerId |
identifiant du client |
globally unique identifier |
None. |
| DistributorId |
identifiant du distributor |
globally unique identifier |
None. |
| AgentId |
identifiant du concessionnaire |
globally unique identifier |
None. |
| Name |
Nom de la société Attention, ce nom peut être issue d'un Aoi ou de l'Aoi du Contact en fonction du boolean |
string |
None. |
| Type |
Type de société |
CompanyType |
None. |
| SIRET |
SIRET |
string |
None. |
| TierType |
Type de contact |
string |
None. |
| IsContact |
Boolean indiquant s'il s'agit d'un contact ou d'une adresse Utile uniquement dans la partie transport order pour différencer les adresses "libres" des contacts |
boolean |
None. |
| TVA |
Tva |
string |
None. |
| LegalStatus |
Forme juridique |
LegalStatus |
None. |
| SavPhone |
Numéro de téléphone du SAV/Support |
string |
None. |
| SalesPhone |
Numéro de téléphone des ventes |
string |
None. |
| WebSite |
Site internet |
string |
None. |
| NAF |
Code NAF |
string |
None. |
| APE |
Code APE |
string |
None. |
| ParentId |
Identifiaint de la companie parente |
globally unique identifier |
None. |
| OpeningHours |
Heure d'ouverture |
Collection of OpeningHoursDto |
None. |
| ContactId |
Identifiant du contact |
globally unique identifier |
None. |
| Code |
Code |
string |
None. |
| Fix |
Numéro de ligne fixe |
string |
None. |
| Mobile |
Numéro de ligne mobile |
string |
None. |
| Fax |
Numéro de fax |
string |
None. |
|
Addresse email |
string |
None. |
|
| Subcontractor |
Sous traitance |
boolean |
None. |
| OdooId |
Identifiant Odoo du contact |
integer |
None. |
| Zoi |
Zone d'intérêt rattaché au contact |
AreaOfInterestDto |
None. |
| Archived |
Archived |
boolean |
None. |
Request Formats
application/json, text/json
{
"ContactId": "86369c68-4e46-41a5-b037-f93f7b5e4c5b",
"CustomerId": "d9b495e1-67cb-42be-922a-84a516432ab1",
"DistributorId": "e45a4257-4110-4724-9a7d-fc0ce57a5610",
"AgentId": "e1fd274f-069e-41e8-92b1-13cf6a6a270b",
"Name": "sample string 1",
"Type": 0,
"SIRET": "sample string 2",
"TierType": "sample string 3",
"IsContact": true,
"TVA": "sample string 5",
"LegalStatus": 0,
"SavPhone": "sample string 6",
"SalesPhone": "sample string 7",
"WebSite": "sample string 8",
"NAF": "sample string 9",
"APE": "sample string 10",
"ParentId": "c6e9e190-37fe-43bb-83b3-530f3cbe264c",
"OpeningHours": [
{
"DayOfWeek": 64,
"Start": "2025-11-30T11:55:58.7212345+00:00",
"End": "2025-11-30T11:55:58.7212345+00:00"
},
{
"DayOfWeek": 64,
"Start": "2025-11-30T11:55:58.7212345+00:00",
"End": "2025-11-30T11:55:58.7212345+00:00"
}
],
"Code": "sample string 12",
"Fix": "sample string 13",
"Mobile": "sample string 14",
"Fax": "sample string 15",
"Email": "sample string 16",
"Subcontractor": true,
"OdooId": 1,
"Zoi": {
"AoiId": "9707e913-88b6-46d1-ba4b-e704c34bec4a",
"ISOCountryCode": "sample string 2",
"ShowOnMap": true,
"Radius": 4,
"UsedByTMSSteps": true,
"Latitude": 1.1,
"Longitude": 1.1,
"StreetNumber": 1,
"FirstPartAddress": "sample string 7",
"SecondPartAddress": "sample string 8",
"ZIPCode": "sample string 9",
"City": "sample string 10"
},
"Archived": true
}
application/xml, text/xml
<CompanyDefinitionDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Vehizen.Domain.Dto.Contact">
<Archived>true</Archived>
<Code>sample string 12</Code>
<ContactId xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/" i:type="d2p1:guid">eac17d01-4b15-4332-a7c7-fd292297818e</ContactId>
<Email>sample string 16</Email>
<Fax>sample string 15</Fax>
<Fix>sample string 13</Fix>
<Mobile>sample string 14</Mobile>
<OdooId>1</OdooId>
<Subcontractor>true</Subcontractor>
<TierType>sample string 3</TierType>
<Zoi>
<City>sample string 10</City>
<FirstPartAddress>sample string 7</FirstPartAddress>
<Latitude>1.1</Latitude>
<Longitude>1.1</Longitude>
<SecondPartAddress>sample string 8</SecondPartAddress>
<StreetNumber>1</StreetNumber>
<ZIPCode>sample string 9</ZIPCode>
<AoiId>9707e913-88b6-46d1-ba4b-e704c34bec4a</AoiId>
<ISOCountryCode>sample string 2</ISOCountryCode>
<Name>sample string 5</Name>
<Radius>4</Radius>
<ShowOnMap>true</ShowOnMap>
<UsedByTMSSteps>true</UsedByTMSSteps>
</Zoi>
<APE>sample string 10</APE>
<AgentId>e1fd274f-069e-41e8-92b1-13cf6a6a270b</AgentId>
<ContactId xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/" i:type="d2p1:guid">86369c68-4e46-41a5-b037-f93f7b5e4c5b</ContactId>
<CustomerId>d9b495e1-67cb-42be-922a-84a516432ab1</CustomerId>
<DistributorId>e45a4257-4110-4724-9a7d-fc0ce57a5610</DistributorId>
<IsContact>true</IsContact>
<LegalStatus>EARL</LegalStatus>
<NAF>sample string 9</NAF>
<Name>sample string 1</Name>
<OpeningHours>
<OpeningHoursDto>
<DayOfWeek>64</DayOfWeek>
<End>2025-11-30T11:55:58.7212345+00:00</End>
<Start>2025-11-30T11:55:58.7212345+00:00</Start>
</OpeningHoursDto>
<OpeningHoursDto>
<DayOfWeek>64</DayOfWeek>
<End>2025-11-30T11:55:58.7212345+00:00</End>
<Start>2025-11-30T11:55:58.7212345+00:00</Start>
</OpeningHoursDto>
</OpeningHours>
<ParentId>c6e9e190-37fe-43bb-83b3-530f3cbe264c</ParentId>
<SIRET>sample string 2</SIRET>
<SalesPhone>sample string 7</SalesPhone>
<SavPhone>sample string 6</SavPhone>
<TVA>sample string 5</TVA>
<Type>Agency</Type>
<WebSite>sample string 8</WebSite>
</CompanyDefinitionDto>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
CompanyLightDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Name |
Nom de la société Attention, ce nom peut être issue d'un Aoi ou de l'Aoi du Contact en fonction du boolean |
string |
None. |
| Type |
Type de société |
CompanyType |
None. |
| SIRET |
SIRET |
string |
None. |
| TierType |
Type de contact |
string |
None. |
| IsContact |
Boolean indiquant s'il s'agit d'un contact ou d'une adresse Utile uniquement dans la partie transport order pour différencer les adresses "libres" des contacts |
boolean |
None. |
| ContactId |
Identifiant du contact |
globally unique identifier |
None. |
| Code |
Code |
string |
None. |
| Fix |
Numéro de ligne fixe |
string |
None. |
| Mobile |
Numéro de ligne mobile |
string |
None. |
| Fax |
Numéro de fax |
string |
None. |
|
Addresse email |
string |
None. |
|
| Subcontractor |
Sous traitance |
boolean |
None. |
| OdooId |
Identifiant Odoo du contact |
integer |
None. |
| Zoi |
Zone d'intérêt rattaché au contact |
AreaOfInterestDto |
None. |
| Archived |
Archived |
boolean |
None. |
Response Formats
application/json, text/json
{
"Name": "sample string 1",
"Type": 0,
"SIRET": "sample string 2",
"TierType": "sample string 3",
"IsContact": true,
"ContactId": "6dfe0656-5dcf-4695-9cc9-32de3f15d179",
"Code": "sample string 6",
"Fix": "sample string 7",
"Mobile": "sample string 8",
"Fax": "sample string 9",
"Email": "sample string 10",
"Subcontractor": true,
"OdooId": 1,
"Zoi": {
"AoiId": "824601ad-1a0d-4f7d-a138-9adb4e23e564",
"ISOCountryCode": "sample string 2",
"ShowOnMap": true,
"Radius": 4,
"UsedByTMSSteps": true,
"Latitude": 1.1,
"Longitude": 1.1,
"StreetNumber": 1,
"FirstPartAddress": "sample string 7",
"SecondPartAddress": "sample string 8",
"ZIPCode": "sample string 9",
"City": "sample string 10"
},
"Archived": true
}
application/xml, text/xml
<CompanyLightDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Vehizen.Domain.Dto.Contact">
<Archived>true</Archived>
<Code>sample string 6</Code>
<ContactId>6dfe0656-5dcf-4695-9cc9-32de3f15d179</ContactId>
<Email>sample string 10</Email>
<Fax>sample string 9</Fax>
<Fix>sample string 7</Fix>
<Mobile>sample string 8</Mobile>
<OdooId>1</OdooId>
<Subcontractor>true</Subcontractor>
<TierType>sample string 3</TierType>
<Zoi>
<City>sample string 10</City>
<FirstPartAddress>sample string 7</FirstPartAddress>
<Latitude>1.1</Latitude>
<Longitude>1.1</Longitude>
<SecondPartAddress>sample string 8</SecondPartAddress>
<StreetNumber>1</StreetNumber>
<ZIPCode>sample string 9</ZIPCode>
<AoiId>824601ad-1a0d-4f7d-a138-9adb4e23e564</AoiId>
<ISOCountryCode>sample string 2</ISOCountryCode>
<Name>sample string 5</Name>
<Radius>4</Radius>
<ShowOnMap>true</ShowOnMap>
<UsedByTMSSteps>true</UsedByTMSSteps>
</Zoi>
<IsContact>true</IsContact>
<Name>sample string 1</Name>
<SIRET>sample string 2</SIRET>
<Type>Agency</Type>
</CompanyLightDto>