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": "8935e0a2-bb27-4e3f-b4f0-98f2cfa8ebdc",
"Code": "sample string 3",
"Campaign": 1,
"CompanyGuid": "240b3069-985d-4729-b46b-49e552497467",
"PosNegociated": true,
"PosAgentGuid": "c6f2c22e-e815-4301-800f-a23f5fcace2c",
"BudgetNegociated": true,
"BudgetAgentGuid": "4decb2c7-cd4b-4073-bb63-fbc30b63ca05",
"ImplantationAgentGuid": "46058e0e-fc0e-4037-bd0b-58a3d8df0760",
"PrecoAgentGuid": "854eec59-2151-4a99-9d7c-e027fb06b0c7",
"PrecoTract": true,
"CompanyStatus": {
"Guid": "00c14eed-6f05-44bf-905c-ddc81607b1a8",
"Code": "sample string 2",
"Title": "sample string 3"
},
"CompanyStore": {
"Guid": "5a58188d-2fee-45d6-bebb-085af575c423",
"Code": "sample string 2",
"Title": "sample string 3"
},
"CommercialGuid": "71eebf38-5ac0-44e6-9076-121369220b1a",
"MerchandiserGuid": "549ff034-d7a7-40e7-a3be-bcc54d566acb",
"MerchandiserType": {
"Guid": "f771b8f0-2071-4326-b3f6-579373c3b3fe",
"Code": "sample string 2",
"Title": "sample string 3"
},
"TelemarketerGuid": "9ada9e81-fd47-467c-8450-51c6c945a2a7",
"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>4decb2c7-cd4b-4073-bb63-fbc30b63ca05</BudgetAgentGuid>
<BudgetNegociated>true</BudgetNegociated>
<Campaign>1</Campaign>
<Code>sample string 3</Code>
<CommercialGuid>71eebf38-5ac0-44e6-9076-121369220b1a</CommercialGuid>
<CompanyGuid>240b3069-985d-4729-b46b-49e552497467</CompanyGuid>
<CompanyStatus xmlns:d2p1="http://schemas.datacontract.org/2004/07/RestApi.Models.Outputs">
<d2p1:Code>sample string 2</d2p1:Code>
<d2p1:Guid>00c14eed-6f05-44bf-905c-ddc81607b1a8</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>5a58188d-2fee-45d6-bebb-085af575c423</d2p1:Guid>
<d2p1:Title>sample string 3</d2p1:Title>
</CompanyStore>
<Guid>8935e0a2-bb27-4e3f-b4f0-98f2cfa8ebdc</Guid>
<Id>1</Id>
<ImplantationAgentGuid>46058e0e-fc0e-4037-bd0b-58a3d8df0760</ImplantationAgentGuid>
<MerchandiserGuid>549ff034-d7a7-40e7-a3be-bcc54d566acb</MerchandiserGuid>
<MerchandiserType xmlns:d2p1="http://schemas.datacontract.org/2004/07/RestApi.Models.Outputs">
<d2p1:Code>sample string 2</d2p1:Code>
<d2p1:Guid>f771b8f0-2071-4326-b3f6-579373c3b3fe</d2p1:Guid>
<d2p1:Title>sample string 3</d2p1:Title>
</MerchandiserType>
<NewCampaign>true</NewCampaign>
<PosAgentGuid>c6f2c22e-e815-4301-800f-a23f5fcace2c</PosAgentGuid>
<PosNegociated>true</PosNegociated>
<PrecoAgentGuid>854eec59-2151-4a99-9d7c-e027fb06b0c7</PrecoAgentGuid>
<PrecoTract>true</PrecoTract>
<TelemarketerGuid>9ada9e81-fd47-467c-8450-51c6c945a2a7</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. |