GET
/
locations
/
List locations
curl --request GET \
  --url https://sandbox.prezio.eu/api/locations/ \
  --header 'Authorization: <api-key>'
{
  "count": 123,
  "next": "http://api.example.org/accounts/?page=4",
  "previous": "http://api.example.org/accounts/?page=2",
  "results": [
    {
      "id": "01ab23cd-4ef5-6789-0123-456789abcdef",
      "country": "NO",
      "city": "Oslo",
      "address_display": "Karl Johans gate 1, Oslo",
      "address1": "Karl Johans gate 1",
      "address2": "",
      "postal_code": "0159",
      "latitude": 59.91,
      "longitude": 10.75,
      "external_id": "customer_location_001",
      "timezone": "Europe/Oslo",
      "created_at": "2023-12-01T10:30:00Z",
      "updated_at": "2023-12-01T10:30:00Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

Token-based authentication with required prefix "Token"

Query Parameters

country
integer
external_id
string
page
integer

A page number within the paginated result set.

A search term.

Response

200 - application/json
count
integer
required
Example:

123

results
object[]
required
next
string<uri> | null
Example:

"http://api.example.org/accounts/?page=4"

previous
string<uri> | null
Example:

"http://api.example.org/accounts/?page=2"