Create a pickup location
curl --request POST \
--url https://developer.haulstow.co/v1/pickup-locations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"name": "Osu Store",
"contact": "+233200000001",
"address": "Oxford Street, Osu, Accra",
"latitude": 5.556,
"longitude": -0.182
}
'import requests
url = "https://developer.haulstow.co/v1/pickup-locations"
payload = {
"name": "Osu Store",
"contact": "+233200000001",
"address": "Oxford Street, Osu, Accra",
"latitude": 5.556,
"longitude": -0.182
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: 'Osu Store',
contact: '+233200000001',
address: 'Oxford Street, Osu, Accra',
latitude: 5.556,
longitude: -0.182
})
};
fetch('https://developer.haulstow.co/v1/pickup-locations', 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://developer.haulstow.co/v1/pickup-locations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Osu Store',
'contact' => '+233200000001',
'address' => 'Oxford Street, Osu, Accra',
'latitude' => 5.556,
'longitude' => -0.182
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://developer.haulstow.co/v1/pickup-locations"
payload := strings.NewReader("{\n \"name\": \"Osu Store\",\n \"contact\": \"+233200000001\",\n \"address\": \"Oxford Street, Osu, Accra\",\n \"latitude\": 5.556,\n \"longitude\": -0.182\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://developer.haulstow.co/v1/pickup-locations")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Osu Store\",\n \"contact\": \"+233200000001\",\n \"address\": \"Oxford Street, Osu, Accra\",\n \"latitude\": 5.556,\n \"longitude\": -0.182\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://developer.haulstow.co/v1/pickup-locations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Osu Store\",\n \"contact\": \"+233200000001\",\n \"address\": \"Oxford Street, Osu, Accra\",\n \"latitude\": 5.556,\n \"longitude\": -0.182\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"statusCode": 201,
"message": "Pickup location created",
"data": {
"id": "pkp_9b2f0c1e4d5a4b6c8e7f1a2b3c4d5e6f",
"name": "Osu Store",
"contact": "+233200000001",
"address": "Oxford Street, Osu, Accra",
"latitude": 5.556,
"longitude": -0.182,
"active": true,
"created_at": "2026-10-12T09:00:00Z"
}
}Pickup locations
Create a pickup location
Saves a place riders collect from, such as a shop or warehouse. Pass its
id as pickup_location_id on a delivery or quote instead of sending
the full pickup every time.
On live keys a pickup location is one of the business’s own warehouses, so it also appears in the HaulStow merchant app.
POST
/
pickup-locations
Create a pickup location
curl --request POST \
--url https://developer.haulstow.co/v1/pickup-locations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"name": "Osu Store",
"contact": "+233200000001",
"address": "Oxford Street, Osu, Accra",
"latitude": 5.556,
"longitude": -0.182
}
'import requests
url = "https://developer.haulstow.co/v1/pickup-locations"
payload = {
"name": "Osu Store",
"contact": "+233200000001",
"address": "Oxford Street, Osu, Accra",
"latitude": 5.556,
"longitude": -0.182
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: 'Osu Store',
contact: '+233200000001',
address: 'Oxford Street, Osu, Accra',
latitude: 5.556,
longitude: -0.182
})
};
fetch('https://developer.haulstow.co/v1/pickup-locations', 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://developer.haulstow.co/v1/pickup-locations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Osu Store',
'contact' => '+233200000001',
'address' => 'Oxford Street, Osu, Accra',
'latitude' => 5.556,
'longitude' => -0.182
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://developer.haulstow.co/v1/pickup-locations"
payload := strings.NewReader("{\n \"name\": \"Osu Store\",\n \"contact\": \"+233200000001\",\n \"address\": \"Oxford Street, Osu, Accra\",\n \"latitude\": 5.556,\n \"longitude\": -0.182\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://developer.haulstow.co/v1/pickup-locations")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Osu Store\",\n \"contact\": \"+233200000001\",\n \"address\": \"Oxford Street, Osu, Accra\",\n \"latitude\": 5.556,\n \"longitude\": -0.182\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://developer.haulstow.co/v1/pickup-locations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Osu Store\",\n \"contact\": \"+233200000001\",\n \"address\": \"Oxford Street, Osu, Accra\",\n \"latitude\": 5.556,\n \"longitude\": -0.182\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"statusCode": 201,
"message": "Pickup location created",
"data": {
"id": "pkp_9b2f0c1e4d5a4b6c8e7f1a2b3c4d5e6f",
"name": "Osu Store",
"contact": "+233200000001",
"address": "Oxford Street, Osu, Accra",
"latitude": 5.556,
"longitude": -0.182,
"active": true,
"created_at": "2026-10-12T09:00:00Z"
}
}Authorizations
A business-bound HaulStow API key. Send
Authorization: Bearer hsg_live_key_... to the live server or a
hsg_test_key_... key to the sandbox server. Never expose this key in a browser.
Headers
Optional caller correlation ID. Use 1–128 ASCII letters, digits, ., _,
-, or :. Invalid values are replaced. The accepted/generated value is
returned in the response.
Required string length:
1 - 128Pattern:
^[A-Za-z0-9._:-]+$A unique key for this logical mutation. Retained for 24 hours.
Required string length:
8 - 255Body
application/json
