cURL
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": "" } ] ] }
Retrieve all locations associated with the given customer.
A page number within the paginated result set.
Number of results to return per page.
123
Show child attributes
A ModelSerializer that takes an additional fields argument that controls which fields should be displayed.
fields
200
Zahleh
Hasbaya
Baalbek
Jezzine
Baabda
Jbeil
Zgharta
Bint Jbeil
Hermel
Marjeyoun
Bsharri
Aley
Rashaya
Miniyeh-Danniyeh
Tripoli
Tyre
Nabatieh
Chouf
Maatn
Western Beqaa
Akkar
Sidon
Batroun
Keserwan
Koura
Beirut
"http://api.example.org/accounts/?page=4"
"http://api.example.org/accounts/?page=2"