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 | globally unique identifier |
None. |
|
| CustomerId | globally unique identifier |
None. |
|
| DistributorId | globally unique identifier |
None. |
|
| AgentId | globally unique identifier |
None. |
|
| Name | string |
None. |
|
| Type | CompanyType |
None. |
|
| SIRET | string |
None. |
|
| TierType | string |
None. |
|
| IsContact | boolean |
None. |
|
| TVA | string |
None. |
|
| LegalStatus | LegalStatus |
None. |
|
| SavPhone | string |
None. |
|
| SalesPhone | string |
None. |
|
| WebSite | string |
None. |
|
| NAF | string |
None. |
|
| APE | string |
None. |
|
| ParentId | globally unique identifier |
None. |
|
| OpeningHours | Collection of OpeningHoursDto |
None. |
|
| ContactId | globally unique identifier |
None. |
|
| Code | string |
None. |
|
| Fix | string |
None. |
|
| Mobile | string |
None. |
|
| Fax | string |
None. |
|
| string |
None. |
||
| Subcontractor | boolean |
None. |
|
| OdooId | integer |
None. |
|
| Zoi | AreaOfInterestDto |
None. |
|
| Archived | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"ContactId": "beff3607-cccc-4db7-9cd3-229b40a6e880",
"CustomerId": "2a8c662f-d8a4-40ab-87d1-ffb8b617d35a",
"DistributorId": "2847f20a-3c59-4d62-a682-3167f4170722",
"AgentId": "f0d5041e-f502-41a5-86f4-62594be12126",
"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": "dd40fd60-3044-43a1-bd19-a39e1375e3d8",
"OpeningHours": [
{
"DayOfWeek": 64,
"Start": "2026-12-05T01:34:29.4651924+00:00",
"End": "2026-12-05T01:34:29.4651924+00:00"
},
{
"DayOfWeek": 64,
"Start": "2026-12-05T01:34:29.4651924+00:00",
"End": "2026-12-05T01:34:29.4651924+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": "8b51681c-0263-4b9f-8452-478803df6e2a",
"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
Sample:
<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">1aa8e072-4620-4bb1-8c39-d78be6326f2c</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>8b51681c-0263-4b9f-8452-478803df6e2a</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>f0d5041e-f502-41a5-86f4-62594be12126</AgentId>
<ContactId xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/" i:type="d2p1:guid">beff3607-cccc-4db7-9cd3-229b40a6e880</ContactId>
<CustomerId>2a8c662f-d8a4-40ab-87d1-ffb8b617d35a</CustomerId>
<DistributorId>2847f20a-3c59-4d62-a682-3167f4170722</DistributorId>
<IsContact>true</IsContact>
<LegalStatus>EARL</LegalStatus>
<NAF>sample string 9</NAF>
<Name>sample string 1</Name>
<OpeningHours>
<OpeningHoursDto>
<DayOfWeek>64</DayOfWeek>
<End>2026-12-05T01:34:29.4651924+00:00</End>
<Start>2026-12-05T01:34:29.4651924+00:00</Start>
</OpeningHoursDto>
<OpeningHoursDto>
<DayOfWeek>64</DayOfWeek>
<End>2026-12-05T01:34:29.4651924+00:00</End>
<Start>2026-12-05T01:34:29.4651924+00:00</Start>
</OpeningHoursDto>
</OpeningHours>
<ParentId>dd40fd60-3044-43a1-bd19-a39e1375e3d8</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:
Sample not available.
Response Information
Resource Description
CompanyLightDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Name | string |
None. |
|
| Type | CompanyType |
None. |
|
| SIRET | string |
None. |
|
| TierType | string |
None. |
|
| IsContact | boolean |
None. |
|
| ContactId | globally unique identifier |
None. |
|
| Code | string |
None. |
|
| Fix | string |
None. |
|
| Mobile | string |
None. |
|
| Fax | string |
None. |
|
| string |
None. |
||
| Subcontractor | boolean |
None. |
|
| OdooId | integer |
None. |
|
| Zoi | AreaOfInterestDto |
None. |
|
| Archived | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"Name": "sample string 1",
"Type": 0,
"SIRET": "sample string 2",
"TierType": "sample string 3",
"IsContact": true,
"ContactId": "a471ee5d-620c-4445-80fe-60b32fbfb5d4",
"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": "e4228cee-512a-46a5-aa00-7c6fb241cbba",
"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
Sample:
<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>a471ee5d-620c-4445-80fe-60b32fbfb5d4</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>e4228cee-512a-46a5-aa00-7c6fb241cbba</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>