POST company/PostCompanyDetails
Create Company details
Request Information
URI Parameters
None.
Body Parameters
CompanyDetailsInput| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Guid | globally unique identifier |
None. |
|
| Code | string |
None. |
|
| Campaign | integer |
None. |
|
| CompanyGuid | globally unique identifier |
None. |
|
| PosNegociated | boolean |
None. |
|
| PosAgentGuid | globally unique identifier |
None. |
|
| BudgetNegociated | boolean |
None. |
|
| BudgetAgentGuid | globally unique identifier |
None. |
|
| ImplantationAgentGuid | globally unique identifier |
None. |
|
| PrecoAgentGuid | globally unique identifier |
None. |
|
| PrecoTract | boolean |
None. |
|
| CompanyStatus | CompanyStatusOutput |
None. |
|
| CompanyStore | CompanyStoreOutput |
None. |
|
| CommercialGuid | globally unique identifier |
None. |
|
| MerchandiserGuid | globally unique identifier |
None. |
|
| MerchandiserType | MerchandiserTypeOutput |
None. |
|
| TelemarketerGuid | globally unique identifier |
None. |
|
| NewCampaign | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"Guid": "bf01f628-1cc6-49a5-8266-ae457ed7d156",
"Code": "sample string 3",
"Campaign": 1,
"CompanyGuid": "38f4ea85-6a1a-40ce-99fe-db8600414a1c",
"PosNegociated": true,
"PosAgentGuid": "4a2c3a65-0dd2-440f-bb32-eefcdf0d769d",
"BudgetNegociated": true,
"BudgetAgentGuid": "483c47d3-72c3-4ebf-9bb5-f560d393db82",
"ImplantationAgentGuid": "6f195393-9d14-45f8-9a5c-d5f6751f0bd9",
"PrecoAgentGuid": "6e4e3415-6f2c-43bd-9330-c826a03834c1",
"PrecoTract": true,
"CompanyStatus": {
"Guid": "22c96fa0-cdb0-454b-a79e-390f5ef3759d",
"Code": "sample string 2",
"Title": "sample string 3"
},
"CompanyStore": {
"Guid": "11087e74-72b9-4934-8e89-331f93c73334",
"Code": "sample string 2",
"Title": "sample string 3"
},
"CommercialGuid": "797d324c-5f3a-4250-8806-9aa0c874ee9d",
"MerchandiserGuid": "42b059ab-064a-4b8b-a872-06e30a67b3db",
"MerchandiserType": {
"Guid": "1c7c739f-970e-4ecf-9916-1011e2ce07bd",
"Code": "sample string 2",
"Title": "sample string 3"
},
"TelemarketerGuid": "0370d64d-ae9f-4f8c-a3ec-83e908e2ddaf",
"NewCampaign": true
}
application/xml, text/xml
Sample:
<CompanyDetailsInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RestApi.Models.Inputs">
<BudgetAgentGuid>483c47d3-72c3-4ebf-9bb5-f560d393db82</BudgetAgentGuid>
<BudgetNegociated>true</BudgetNegociated>
<Campaign>1</Campaign>
<Code>sample string 3</Code>
<CommercialGuid>797d324c-5f3a-4250-8806-9aa0c874ee9d</CommercialGuid>
<CompanyGuid>38f4ea85-6a1a-40ce-99fe-db8600414a1c</CompanyGuid>
<CompanyStatus xmlns:d2p1="http://schemas.datacontract.org/2004/07/RestApi.Models.Outputs">
<d2p1:Code>sample string 2</d2p1:Code>
<d2p1:Guid>22c96fa0-cdb0-454b-a79e-390f5ef3759d</d2p1:Guid>
<d2p1:Title>sample string 3</d2p1:Title>
</CompanyStatus>
<CompanyStore xmlns:d2p1="http://schemas.datacontract.org/2004/07/RestApi.Models.Outputs">
<d2p1:Code>sample string 2</d2p1:Code>
<d2p1:Guid>11087e74-72b9-4934-8e89-331f93c73334</d2p1:Guid>
<d2p1:Title>sample string 3</d2p1:Title>
</CompanyStore>
<Guid>bf01f628-1cc6-49a5-8266-ae457ed7d156</Guid>
<Id>1</Id>
<ImplantationAgentGuid>6f195393-9d14-45f8-9a5c-d5f6751f0bd9</ImplantationAgentGuid>
<MerchandiserGuid>42b059ab-064a-4b8b-a872-06e30a67b3db</MerchandiserGuid>
<MerchandiserType xmlns:d2p1="http://schemas.datacontract.org/2004/07/RestApi.Models.Outputs">
<d2p1:Code>sample string 2</d2p1:Code>
<d2p1:Guid>1c7c739f-970e-4ecf-9916-1011e2ce07bd</d2p1:Guid>
<d2p1:Title>sample string 3</d2p1:Title>
</MerchandiserType>
<NewCampaign>true</NewCampaign>
<PosAgentGuid>4a2c3a65-0dd2-440f-bb32-eefcdf0d769d</PosAgentGuid>
<PosNegociated>true</PosNegociated>
<PrecoAgentGuid>6e4e3415-6f2c-43bd-9330-c826a03834c1</PrecoAgentGuid>
<PrecoTract>true</PrecoTract>
<TelemarketerGuid>0370d64d-ae9f-4f8c-a3ec-83e908e2ddaf</TelemarketerGuid>
</CompanyDetailsInput>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Person informations after creation
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |