Skip to main content
GET
/
customers
/
{customer_pk}
/
locations
List customer locations
curl --request GET \
  --url https://api.parceltracer.com/v1/external/customers/{customer_pk}/locations/ \
  --header 'X-Api-Key: <api-key>'
{
  "count": 123,
  "next": "http://api.example.org/accounts/?page=4",
  "previous": "http://api.example.org/accounts/?page=2",
  "results": [
    [
      {
        "id": 9688,
        "area": {
          "id": 146,
          "name_ar": "عيناب",
          "name_en": "Ainab",
          "district": "Aley",
          "lat": "33.766414000000000",
          "long": "35.546311000000000"
        },
        "directions": ""
      },
      {
        "id": 9689,
        "area": {
          "id": 161,
          "name_ar": "بخشتاي",
          "name_en": "Bkhechtey",
          "district": "Aley",
          "lat": "33.799487000000000",
          "long": "35.615519000000000"
        },
        "directions": ""
      }
    ]
  ]
}

Authorizations

X-Api-Key
string
header
required

Path Parameters

customer_pk
integer
required

Query Parameters

page
integer

A page number within the paginated result set.

page_size
integer

Number of results to return per page.

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"