---
title: "Set selected address"
method: PUT
path: "/ordering/customers/{externalCustomerId}/selected-address"
tags: ["Ordering API"]
---

# Set selected address

`PUT /ordering/customers/{externalCustomerId}/selected-address`

## Request

- Base URL: `https://api.service.getjusto.com/v3`
- URL: `https://api.service.getjusto.com/v3/ordering/customers/{externalCustomerId}/selected-address`
- Auth: HTTP bearer

Selecciona una dirección global del customer para reutilizarla en websites.

## Path parameters

- `externalCustomerId` string, required

## Request body

- OrderingSelectedAddressInput: Dirección seleccionada globalmente para el customer y app.
  - `placeId` string, nullable: Place ID retornado al crear o listar direcciones.

## Response `200`

Set selected address

- object
  - `success` boolean, required
  - `data` OrderingCustomer, required: Customer propio de la app Ordering API.
    - `externalCustomerId` string: ID del customer en el sistema externo.
    - `email` string, nullable: Email real del customer, usado para notificaciones.
    - `phone` string, nullable: Teléfono real del customer.
    - `firstName` string, nullable: Nombre del customer.
    - `lastName` string, nullable: Apellido del customer.
    - `selectedAddressId` string, nullable: Dirección seleccionada globalmente por la app.
    - `selectedPlaceId` string, nullable: Place ID seleccionado globalmente por la app.
    - `selectedCityId` string, nullable: City ID seleccionado globalmente por la app.
    - `createdAt` string, date-time: Fecha de creación del customer.
    - `updatedAt` string, date-time: Fecha de última actualización del customer.

## Other responses

- `400`: Invalid request
- `401`: Invalid bearer token
- `404`: Resource not found

## Changes

- **2026-06-02** `21cf8d7bd279`: 1 warning
  - removed the request property `addressId`
- **2026-06-02** `907a41656dc6`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/getjusto/apis/justo-api/changes/ordering/customers/:externalCustomerId/selected-address/put.md)

---

[API](https://skmtc.dev/getjusto/apis/justo-api.md) - [All operations](https://skmtc.dev/getjusto/apis/justo-api/llms.txt) - [OpenAPI document](https://skmtc.dev/getjusto/apis/justo-api/revisions/c810bd8246fd?raw)
