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": "283a0bed-90f1-47f4-82ad-9986ab2346be",
"CustomerId": "25642d77-8545-483b-858f-309ed9489a86",
"DistributorId": "56867d34-fc60-4b8c-863f-6ae4702f2868",
"AgentId": "1967d16f-bf2b-4909-8927-4cc22a8c29ff",
"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": "f3b7cdd6-2bf0-4d9e-b82b-8f72e9566079",
"OpeningHours": [
{
"DayOfWeek": 64,
"Start": "2026-10-20T16:06:12.3668204+00:00",
"End": "2026-10-20T16:06:12.3668204+00:00"
},
{
"DayOfWeek": 64,
"Start": "2026-10-20T16:06:12.3668204+00:00",
"End": "2026-10-20T16:06:12.3668204+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": "d3726f89-37e4-40df-93f0-49e9555a7216",
"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">72982351-0b25-4e52-816a-6cf6ab29ff35</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>d3726f89-37e4-40df-93f0-49e9555a7216</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>1967d16f-bf2b-4909-8927-4cc22a8c29ff</AgentId>
<ContactId xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/" i:type="d2p1:guid">283a0bed-90f1-47f4-82ad-9986ab2346be</ContactId>
<CustomerId>25642d77-8545-483b-858f-309ed9489a86</CustomerId>
<DistributorId>56867d34-fc60-4b8c-863f-6ae4702f2868</DistributorId>
<IsContact>true</IsContact>
<LegalStatus>EARL</LegalStatus>
<NAF>sample string 9</NAF>
<Name>sample string 1</Name>
<OpeningHours>
<OpeningHoursDto>
<DayOfWeek>64</DayOfWeek>
<End>2026-10-20T16:06:12.3668204+00:00</End>
<Start>2026-10-20T16:06:12.3668204+00:00</Start>
</OpeningHoursDto>
<OpeningHoursDto>
<DayOfWeek>64</DayOfWeek>
<End>2026-10-20T16:06:12.3668204+00:00</End>
<Start>2026-10-20T16:06:12.3668204+00:00</Start>
</OpeningHoursDto>
</OpeningHours>
<ParentId>f3b7cdd6-2bf0-4d9e-b82b-8f72e9566079</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": "e24ac214-2d0f-4642-9bb5-be1a02a9648f",
"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": "8518e8fe-a250-47fb-b268-b2df9068e761",
"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>e24ac214-2d0f-4642-9bb5-be1a02a9648f</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>8518e8fe-a250-47fb-b268-b2df9068e761</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>