PUT
/
{alias}
/
customers
/
{customerId}
/
addresses
/
{id}
curl --request PUT \
  --url https://api.dooki.com.br/v2/{alias}/customers/{customerId}/addresses/{id} \
  --header 'Content-Type: application/json' \
  --header 'User-Secret-Key: <api-key>' \
  --header 'User-Token: <api-key>' \
  --data '{
  "receiver": "<string>",
  "zip_code": "<string>",
  "street": "<string>",
  "number": "<string>",
  "neighborhood": "<string>",
  "complement": "<string>",
  "city": "<string>",
  "uf": "<string>"
}'
{
  "data": [
    {
      "id": 123,
      "customer_id": 123,
      "receiver": "<string>",
      "zip_code": "<string>",
      "street": "<string>",
      "number": "<string>",
      "complement": "<string>",
      "neighborhood": "<string>",
      "city": "<string>",
      "uf": "<string>",
      "full_address": "<string>",
      "created_at": {
        "date": "2000-08-17 10:24:24",
        "timezone_type": 3,
        "timezone": "America/Sao_Paulo"
      },
      "updated_at": {
        "date": "2000-08-17 10:24:24",
        "timezone_type": 3,
        "timezone": "America/Sao_Paulo"
      }
    }
  ]
}

Authorizations

User-Token
string
header
required
User-Secret-Key
string
header
required

Path Parameters

alias
string
required

Alias da loja

customerId
integer
required

ID do cliente

id
integer
required

ID do endereço

Body

application/json

Representa os dados necessários para criar ou atualizar um endereço do cliente

Response

200
application/json

Endereço atualizado com sucesso

The response is of type object.