---
title: "POST /api/v3/locations"
method: POST
path: "/api/v3/locations"
tags: ["locations"]
---

# POST /api/v3/locations

`POST /api/v3/locations`

Get the location id of a given address Through this endpoint you can exchange an address for a location id. The purpose of this exchange is that later, in a second request, you can include the location id as origin or destination to create an order. Using this flow you won't need to include any more information and you can always reuse the location id for that point.

## Request body

- NewLocation
  - `addresses` string[], required
  - `city` string, required
  - `country` string, required

## Response `200`

- LocationsResponse
  - `message` string, required
  - `traceId` string, uuid, required
  - `data` LocationsList[], required
    - `address` string, required — String address of the location
    - `latitude` string, required — Lattitude of the location
    - `longitude` string, required — Longitude of the location
    - `locationId` string, uuid, required — Unique uuid for the location. This id can be used to refer an origin or destination in the order creation endpoint.
    - `locationType` 'p99_network' | 'private', required
    - `geoType` string, required
  - `next` string, uri, required
  - `previous` string, uri, required
  - `errors` object, required

---

[API](https://skmtc.dev/99minutos/apis/api-version-3.md) · [All operations](https://skmtc.dev/99minutos/apis/api-version-3/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/99minutos/api-version-3/revisions/3eca3996fd97/schema)
