curl --request POST \
  --url https://api.bmpdigital.moneyp.dev.br/Pessoa/SalvarEndereco \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'IdempotencyKey: <idempotencykey>' \
  --data '{
  "dto": {
    "codigo": "<string>",
    "cep": "<string>",
    "logradouro": "<string>",
    "nroLogradouro": "<string>",
    "bairro": "<string>",
    "complemento": "<string>",
    "cidade": "<string>",
    "uf": "<string>",
    "tipoEndereco": 123,
    "tipoResidencia": 123,
    "enderecoDesde": "2023-11-07T05:31:56Z",
    "enderecoPrincipal": true,
    "enderecoCorrespondencia": true
  },
  "param": {
    "documentoCliente": "<string>"
  }
}'
{
  "msg": "<string>",
  "hasError": true,
  "messages": [
    {
      "messageType": 1,
      "code": "<string>",
      "context": "<string>",
      "description": "<string>",
      "field": "<string>"
    }
  ],
  "codigo": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Through this endpoint, the partner can create or update address records for a specific client using the already registered CPF/CNPJ. For an update to occur, the ‘codigo’ field must be filled with the record number in the BMP database; otherwise, the search will be conducted using the ZIP code field (CEP).

Authorizations

Authorization
string
header
required

Informe o token

Headers

IdempotencyKey
string
required

Body

dto
object
param
object

Response

200
text/plain
OK
msg
string | null
hasError
boolean
messages
object[] | null
codigo
string