Skip to main content

Update delivery address

The delivery address update is used to correct the address if any inconsistency is found or if delivery fails three times.

Request

ENDPOINT
/wallet/WALLET_KEY/card/CARD_KEY/address
METHOD
PATCH

Path params

FieldTypeDescriptionCharacters
WALLET_KEY *stringWallet identification key.uuid
CARD_KEY *stringCard identification key.uuid
Request Body
{
"postal_code": "5425020",
"street": "Rua Gilberto Sabino",
"number": 215,
"complement": "4 andar",
"neighborhood": "Pinheiros",
"city": "So Paulo",
"state": "SP",
"reference": "Terminal Pinheiros",
"address_type": "commercial",
"notes": ["obs1", "obs2"],
"phones": [
{"country_code": "55", "area_code": "19", "number": "983151110"},
{"country_code": "55", "area_code": "16", "number": "992334318"},
],
}

Request Body

address object

FieldTypeDescriptionCharacters
street *stringStreet address100
number *stringNumber10
neighborhood *stringNeighborhood100
postal_code *stringPostal code8
city *stringCity100
complementstringComplement100
referencestringReference point100
notesstring arrayAddress-related notes100
phonesobject arrayContact phonesphone object
state *stringState (UF)state enumerators
address_type *stringAddress typeaddress_type enumerators
Attention!

Up to two contact phones and four notes can be sent. If there are no contact phones and/or notes, these fields (phones and notes) should not be sent.

phone object

FieldTypeDescriptionCharacters
international_dial_code *stringInternational dial code (DDI)2
area_code *stringArea code (DDD)2
number *stringComplement9

address_type enumerators

EnumeratorDescription
residentialresidential address
commercialcommercial address
otherother address types

state enumerators

EnumeratorDescription
ACAcre
ALAlagoas
AMAmazonas
APAmapá
BABahia
CECeará
DFDistrito federal
ESEspírito Santo
GOGoiás
MAMaranhão
MGMinas Gerais
MSMato Grosso do Sul
MTMato Grosso
PAPará
PBParaíba
PEPernambuco
PIPiauí
PRParaná
RJRio de Janeiro
RNRio Grande do Norte
RORondônia
RRRoraima
RSRio Grande do Sul
SCSanta Catarina
SESergipe
SPSão Paulo
TOTocantins
EXException

Response

STATUS
200
Response Body
{
"card_key": "1e3183f0-1bac-4e59-81e8-2d89db224040",
"tracking_code": "FD89B071241022",
"address": {
"city": "So Paulo",
"notes": [
"obs1",
"obs2"
],
"state": "SP",
"number": 215,
"phones": [
{
"number": "983151110",
"area_code": "19",
"country_code": "55"
},
{
"number": "992334318",
"area_code": "16",
"country_code": "55"
}
],
"street": "Rua Gilberto Sabino",
"reference": "Terminal Pinheiros",
"complement": "4 andar",
"postal_code": "5425020",
"address_type": "commercial",
"neighborhood": "Pinheiros"
}
}

Response Body Params

FieldTypeDescriptionCharacters
card_key *uuidv4Unique card identification key, in uuid v4 format36
tracking_code *stringCard delivery tracking code14
addressobjectObject of type address, similar to what is sent in the requestaddress object

Error Response

STATUS
4xx
Response Body: Error
{
"title": "titulo",
"description": "description in English",
"translation": "descrição em portugues",
"code": "codigo",
"extra_fields": {}
}
HTTP Code
status
QI Code
code
Title
title
Description (eng)
description
Description (pt-br)
translation
400QIT000001Bad RequestSchema ErrorSchema Inválido
403QIT000005Permission Validator ErrorSelected agent and person_key are differentAgente selecionado e person_key são diferentes
400TRACK000004Bad RequestInvalid status to change delivery address.Status inválido para mudar o endereço de entrega.
500TRACK000007Internal Server ErrorFailed to update delivery address at delivery service provider. Please, try again later!Falha ao atualizar endereço de entrega junto à provedora de serviços de delivery. Por favor, tente novamente mais tarde!
404TRACK000012Not FoundTracking not found for the given 'card_key'.Rastreio não encontrado para a 'card_key' fornecida.