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": "165e0535-39bd-4255-8bf1-96500b92d180",
"Code": "sample string 3",
"Campaign": 1,
"CompanyGuid": "b15a428a-0306-4712-b213-b4406dadedc9",
"PosNegociated": true,
"PosAgentGuid": "7e90d16d-5b5d-49a7-8cd8-1d449fe2c3c0",
"BudgetNegociated": true,
"BudgetAgentGuid": "644609b8-01c6-4b37-8ed2-20deb76b5775",
"ImplantationAgentGuid": "50631ff0-5ade-4662-a906-abde8ef2215d",
"PrecoAgentGuid": "76dfae6c-6471-4053-bc68-4f8e14239175",
"PrecoTract": true,
"CompanyStatus": {
"Guid": "333672d3-2d7e-48e6-abc0-125ee4138974",
"Code": "sample string 2",
"Title": "sample string 3"
},
"CompanyStore": {
"Guid": "a29f780b-7a7f-4d6a-8178-cacf34218deb",
"Code": "sample string 2",
"Title": "sample string 3"
},
"CommercialGuid": "3eea41ab-725d-4ea4-8b40-b6d2cf6df37b",
"MerchandiserGuid": "63d8fafc-6bcf-4b53-b99d-89a28b9d3e4e",
"MerchandiserType": {
"Guid": "6b37aa81-ea4c-49da-a05c-ab466258b85c",
"Code": "sample string 2",
"Title": "sample string 3"
},
"TelemarketerGuid": "9ca9ef5d-7b0e-4d5a-af90-e884e56b035b",
"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>644609b8-01c6-4b37-8ed2-20deb76b5775</BudgetAgentGuid>
<BudgetNegociated>true</BudgetNegociated>
<Campaign>1</Campaign>
<Code>sample string 3</Code>
<CommercialGuid>3eea41ab-725d-4ea4-8b40-b6d2cf6df37b</CommercialGuid>
<CompanyGuid>b15a428a-0306-4712-b213-b4406dadedc9</CompanyGuid>
<CompanyStatus xmlns:d2p1="http://schemas.datacontract.org/2004/07/RestApi.Models.Outputs">
<d2p1:Code>sample string 2</d2p1:Code>
<d2p1:Guid>333672d3-2d7e-48e6-abc0-125ee4138974</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>a29f780b-7a7f-4d6a-8178-cacf34218deb</d2p1:Guid>
<d2p1:Title>sample string 3</d2p1:Title>
</CompanyStore>
<Guid>165e0535-39bd-4255-8bf1-96500b92d180</Guid>
<Id>1</Id>
<ImplantationAgentGuid>50631ff0-5ade-4662-a906-abde8ef2215d</ImplantationAgentGuid>
<MerchandiserGuid>63d8fafc-6bcf-4b53-b99d-89a28b9d3e4e</MerchandiserGuid>
<MerchandiserType xmlns:d2p1="http://schemas.datacontract.org/2004/07/RestApi.Models.Outputs">
<d2p1:Code>sample string 2</d2p1:Code>
<d2p1:Guid>6b37aa81-ea4c-49da-a05c-ab466258b85c</d2p1:Guid>
<d2p1:Title>sample string 3</d2p1:Title>
</MerchandiserType>
<NewCampaign>true</NewCampaign>
<PosAgentGuid>7e90d16d-5b5d-49a7-8cd8-1d449fe2c3c0</PosAgentGuid>
<PosNegociated>true</PosNegociated>
<PrecoAgentGuid>76dfae6c-6471-4053-bc68-4f8e14239175</PrecoAgentGuid>
<PrecoTract>true</PrecoTract>
<TelemarketerGuid>9ca9ef5d-7b0e-4d5a-af90-e884e56b035b</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. |