curl --request POST \
  --url https://api.bmpdigital.moneyp.dev.br/Pessoa/SalvarEnderecos \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'IdempotencyKey: <idempotencykey>' \
  --data '{
  "param": {
    "documentoCliente": "<string>"
  },
  "dtos": [
    {
      "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
    }
  ]
}'
{
  "msg": "<string>",
  "hasError": true,
  "messages": [
    {
      "messageType": 1,
      "code": "<string>",
      "context": "<string>",
      "description": "<string>",
      "field": "<string>"
    }
  ],
  "results": [
    {
      "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 includes or updates address records of a specific client. To update, it is necessary to send the “código” field, filled with the record code in the BMP database, or the search will be done through the “CEP” field.

Authorizations

Authorization
string
header
required

Informe o token

Headers

IdempotencyKey
string
required

Body

param
object
dtos
object[] | null

Response

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