SunchatPlus

Criar endereço da pessoa

Cria endereço para uma pessoa

POSThttps://api-publica.sunchat.com.br/v1/pessoas/endereco
curl --request POST \
  --url 'https://api-publica.sunchat.com.br/v1/pessoas/endereco' \
  --header 'X-Ambiente: SEU_NUMERO_DE_CONTA' \
  --header 'X-Authorization: X-Chave-Api SUA_CHAVE' \
  --header 'Content-Type: application/json' \
  --data '{}'

Autenticação

X-Ambientestring (header)obrigatório

Número da sua conta no SunchatPlus. Aceita também `X-Canal` com o ID de um canal, que resolve a conta a partir dele.

X-Authorizationstring (header)obrigatório

Chave de API no formato `X-Chave-Api {chave}`. O prefixo faz parte do valor. A chave fica em Minha conta › Integrações.

Corpo da requisição

IdPessoastring<uuid>obrigatório
Logradourostringobrigatório
CodigoDeReferenciastring | null
Numerostring | null
Complementostring | null
Bairrostring | null
Cepstring | null
Cidadestring | null
Estadostring | null
Referenciastring | null
Principalboolean
Ativoboolean
Latitudenumber<double> | null
Longitudenumber<double> | null

Resposta 200

OK
Idstring<uuid>
IdPessoastring<uuid>
CodigoDeReferenciastring | null
Logradourostring | null
Numerostring | null
Complementostring | null
Bairrostring | null
Cepstring | null
NomeMunicipiostring | null
SiglaUfstring | null
Referenciastring | null
Principalboolean
Ativoboolean
Latitudenumber<double> | null
Longitudenumber<double> | null

Resposta 404

Not Found
typestring | null
titlestring | null
statusinteger<int32> | null
detailstring | null
instancestring | null

Resposta 422

Unprocessable Content
typestring | null
titlestring | null
statusinteger<int32> | null
detailstring | null
instancestring | null
errorsobject | null