Skip to main content

update_address

Edits one of the user’s saved addresses. Only two kinds of edit are allowed: change tag alone (relabel; the delivery target stays put), or suggestion_token + address_detail to change the location / unit detail (the gateway re-registers the address upstream with the new POI and repoints the same row to it). Recipient name / phone are not editable here (use select_address for that). The address_id stays the same.
Address flow: search_addresses to find a place → suggestion token → select_address to save the address → address_id → update_address to edit a saved address. Before changing the location / detail you must call search_addresses to get a suggestion_token for the new place: upstream only honours a registered delivery address, so a move is a re-registration, not a text edit.
Two kinds of edit:
  • Change tag only (no suggestion_token) → the label is updated directly; the delivery target is untouched. If address_detail differs from the current value and is non-blank, this returns ADDRESS_UPDATE_REQUIRES_TOKEN.
  • Pass suggestion_token + address_detail → the delivery address is re-registered upstream with the new POI, reusing the row’s existing recipient, and the same row’s location / detail are overwritten; address_id and recipient stay stable. A blank address_detail here returns DETAIL_REQUIRED.

Parameters

Returns

Error Codes

See Error Handling for the full list.

Example Call

Change the label only:
Change the location / detail (search first):