List Pickup Locations
curl --request GET \
--url https://api.parceltracer.com/v1/external/pickups/ \
--header 'X-Api-Key: <api-key>'import requests
url = "https://api.parceltracer.com/v1/external/pickups/"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.parceltracer.com/v1/external/pickups/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.parceltracer.com/v1/external/pickups/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.parceltracer.com/v1/external/pickups/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.parceltracer.com/v1/external/pickups/")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.parceltracer.com/v1/external/pickups/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body[
[
{
"id": 63,
"name": "Main Pickup",
"contact_person": "Jack",
"contact_phone": "+961 3 121 323",
"directions": "5th floor",
"is_default": true,
"area": {
"id": 1727,
"name_ar": "ذوق مصبح",
"name_en": "Zouk Mosbeh",
"district": "Keserwan",
"lat": "33.955739999999999",
"long": "35.619109999999999",
"maps_link": "http://maps.google.com/maps?q=33.955739999999999,35.619109999999999",
"code": "LBN2075"
}
}
]
]Pickup Locations
List Pickup Locations
Retrieve all your pickup locations.
GET
/
pickups
/
List Pickup Locations
curl --request GET \
--url https://api.parceltracer.com/v1/external/pickups/ \
--header 'X-Api-Key: <api-key>'import requests
url = "https://api.parceltracer.com/v1/external/pickups/"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.parceltracer.com/v1/external/pickups/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.parceltracer.com/v1/external/pickups/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.parceltracer.com/v1/external/pickups/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.parceltracer.com/v1/external/pickups/")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.parceltracer.com/v1/external/pickups/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body[
[
{
"id": 63,
"name": "Main Pickup",
"contact_person": "Jack",
"contact_phone": "+961 3 121 323",
"directions": "5th floor",
"is_default": true,
"area": {
"id": 1727,
"name_ar": "ذوق مصبح",
"name_en": "Zouk Mosbeh",
"district": "Keserwan",
"lat": "33.955739999999999",
"long": "35.619109999999999",
"maps_link": "http://maps.google.com/maps?q=33.955739999999999,35.619109999999999",
"code": "LBN2075"
}
}
]
]Authorizations
Response
200 - application/json
Maximum string length:
200Maximum string length:
200Maximum string length:
200Maximum string length:
400A ModelSerializer that takes an additional fields argument that
controls which fields should be displayed.
Show child attributes
Show child attributes
⌘I
