---
title: "Create customer address"
method: POST
path: "/ordering/customers/{externalCustomerId}/addresses"
tags: ["Ordering API"]
---

# Create customer address

`POST /ordering/customers/{externalCustomerId}/addresses`

## Request

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

Crea una dirección reutilizable para el customer.

## Path parameters

- `externalCustomerId` string, required

## Request body

- OrderingAddressInput: Dirección provista por la app externa. Ordering API la resuelve internamente a placeId y cityId.
  - `streetAddress` string, required: Calle y numeración ingresada por el customer o sistema externo.
  - `countryCode` string, required: Código de país ISO 3166-1 alpha-2.
  - `extendedAddress` string, nullable: Departamento, oficina u otra información secundaria.
  - `location` OrderingLocation: Coordenadas geográficas.
    - `lat` number: Latitud.
    - `lng` number: Longitud.
  - `acceptsNoLine2` boolean, nullable: Indica si el customer confirmó que no tiene línea 2.
  - `comment` string, nullable: Comentario o instrucciones de entrega.
  - `locality` string, nullable: Localidad o comuna.
  - `region` string, nullable: Región o estado.
  - `postalCode` string, nullable: Código postal.

## Response `200`

Create customer address

- object
  - `success` boolean, required
  - `data` OrderingAddress, required: Dirección guardada por el customer de Ordering API.
    - `placeId` string: Place ID usado por Justo para calcular cobertura y despacho.
    - `cityId` string, nullable: ID de la ciudad marketplace resuelta para la dirección.
    - `address` string: Dirección principal.
    - `extendedAddress` string, nullable: Departamento, oficina u otra información secundaria.
    - `addressLine2` string, nullable: Alias legacy de extendedAddress.
    - `addressSecondary` string, nullable: Texto secundario de comuna, ciudad o referencia.
    - `location` OrderingLocation: Coordenadas geográficas.
      - `lat` number: Latitud.
      - `lng` number: Longitud.
    - `acceptsNoLine2` boolean: Indica si el customer confirmó que no tiene línea 2.
    - `comment` string, nullable: Comentario o instrucciones de entrega.
    - `streetAddress` string, nullable: Calle y numeración normalizada.
    - `locality` string, nullable: Localidad o comuna.
    - `subLocality` string, nullable: Sub-localidad.
    - `region` string, nullable: Región o estado.
    - `postalCode` string, nullable: Código postal.
    - `countryCode` string, nullable: Código de país ISO 3166-1 alpha-2.
    - `countryName` string, nullable: Nombre del país.
    - `createdAt` string, date-time: Fecha de creación.

## Other responses

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

## Changes

- **2026-06-02** `b212955c2a75`: 5 breaking, 11 warning, 4 info
  - the request property `countryCode` became required
  - the request property `streetAddress` became required
  - request property `countryCode` list-of-types was narrowed by removing types `null` from media type `application/json`
  - request property `streetAddress` list-of-types was narrowed by removing types `null` from media type `application/json`
  - …16 more
- **2026-06-02** `e1eeb6ce83d7`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/getjusto/apis/justo-api/changes/ordering/customers/:externalCustomerId/addresses/post.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)
