POST api/endereco/update
Atualiza o endereço do cliente.
Request Information
URI Parameters
None.
Body Parameters
UpdateEnderecoBindingModelName | Description | Type | Additional information |
---|---|---|---|
EnderecoId | integer |
None. |
|
EntityCanalId | string |
None. |
|
CanalId | integer |
Required |
|
Endereco | string |
Required |
|
Cidade | string |
Required |
|
Estado | string |
Required |
|
Cep | string |
Required |
|
Numero | string |
Required |
|
Bairro | string |
Required |
|
Complemento | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "EnderecoId": 1, "EntityCanalId": "sample string 1", "CanalId": 2, "Endereco": "sample string 3", "Cidade": "sample string 4", "Estado": "sample string 5", "Cep": "sample string 6", "Numero": "sample string 7", "Bairro": "sample string 8", "Complemento": "sample string 9" }
application/xml, text/xml
Sample:
<UpdateEnderecoBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FormulaCertaAPI.Models"> <Bairro>sample string 8</Bairro> <CanalId>2</CanalId> <Cep>sample string 6</Cep> <Cidade>sample string 4</Cidade> <Complemento>sample string 9</Complemento> <Endereco>sample string 3</Endereco> <EnderecoId>1</EnderecoId> <EntityCanalId>sample string 1</EntityCanalId> <Estado>sample string 5</Estado> <Numero>sample string 7</Numero> </UpdateEnderecoBindingModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
UpdateEnderecoResultName | Description | Type | Additional information |
---|---|---|---|
EnderecoId | integer |
None. |
|
Succeeded | boolean |
None. |
|
Errors | Collection of string |
None. |
Response Formats
application/json, text/json
Sample:
{ "EnderecoId": 1, "Succeeded": true, "Errors": [ "sample string 1", "sample string 2" ] }
application/xml, text/xml
Sample:
<UpdateEnderecoResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FormulaCertaAPI.Models"> <Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </Errors> <Succeeded>true</Succeeded> <EnderecoId>1</EnderecoId> </UpdateEnderecoResult>