POST api/Pessoa
Cadastrar/Alterar Pessoa.
Request Information
URI Parameters
None.
Body Parameters
Json com os dados de pessoa
PessoaIntegracao| Name | Description | Type | Additional information |
|---|---|---|---|
| Codigo | integer |
Required |
|
| TipoPessoa | integer |
Required |
|
| RazaoSocial | string |
Required String length: inclusive between 0 and 100 |
|
| Fantasia | string |
String length: inclusive between 0 and 100 |
|
| CNPJ_CPF | string |
String length: inclusive between 0 and 100 |
|
| Insc_RG | string |
String length: inclusive between 0 and 100 |
|
| string |
Data type: EmailAddress String length: inclusive between 0 and 200 |
||
| IdIntegracao | string |
None. |
|
| TipoPessoaDescricao | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Codigo": 1,
"TipoPessoa": 2,
"RazaoSocial": "sample string 3",
"Fantasia": "sample string 4",
"CNPJ_CPF": "sample string 5",
"Insc_RG": "sample string 6",
"Email": "sample string 7",
"IdIntegracao": "sample string 8",
"TipoPessoaDescricao": "Jurídica"
}
application/xml, text/xml
Sample:
<Pessoa xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/cwkWebAPIPontoWeb.Models"> <CNPJ_CPF>sample string 5</CNPJ_CPF> <Codigo>1</Codigo> <Email>sample string 7</Email> <Fantasia>sample string 4</Fantasia> <IdIntegracao>sample string 8</IdIntegracao> <Insc_RG>sample string 6</Insc_RG> <RazaoSocial>sample string 3</RazaoSocial> <TipoPessoa>2</TipoPessoa> </Pessoa>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Retorna json de pessoa quando cadastrado com sucesso, quando apresentar erro retorno um json de erro.
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. |