List Live Deliveries
curl --request GET \
--url https://api.getswitch.io/copilot/live/deliveries \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.getswitch.io/copilot/live/deliveries"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.getswitch.io/copilot/live/deliveries', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.getswitch.io/copilot/live/deliveries"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}[
{
"id": "dlv-88213",
"steps": [
{
"id": "ord-55120",
"estimated_arrival": "2026-11-29T19:42:00Z",
"actual_arrival": "2026-11-29T19:45:10Z",
"customer": "Mario Rossi",
"address": "Via Torino 21, Milano",
"latitude": 45.461,
"longitude": 9.185
},
{
"id": "ord-55124",
"estimated_arrival": "2026-11-29T19:55:00Z",
"customer": "Giulia Bianchi",
"address": "Corso di Porta Ticinese 40, Milano",
"latitude": 45.4566,
"longitude": 9.1812
}
],
"exit_estimated_at": "2026-11-29T19:30:00Z",
"exit_actual_at": "2026-11-29T19:31:20Z",
"return_estimated_at": "2026-11-29T20:10:00Z",
"courier": "Luca Verdi",
"status": "pending"
}
]Live
List Live Deliveries
The deliveries in progress at one point of sale, read live from your connected delivery platform (up to 50): each courier trip with its stops, estimated and actual departure, arrival and return times, and a status. A trip is completed when every stop is delivered, and _but_late when the courier came back, or is still out, after the estimated return time.
Failure Modes:
- 401: Token is missing or invalid
- 403: Insufficient permissions, or live deliveries are not configured for the location
- 404:
no_data_binding: no live deliveries are configured for your company - 422:
locationis missing, empty or longer than 100 characters - 502: The delivery platform did not answer
Required Auth Scopes:
copilot:live
GET
/
copilot
/
live
/
deliveries
List Live Deliveries
curl --request GET \
--url https://api.getswitch.io/copilot/live/deliveries \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.getswitch.io/copilot/live/deliveries"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.getswitch.io/copilot/live/deliveries', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.getswitch.io/copilot/live/deliveries"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}[
{
"id": "dlv-88213",
"steps": [
{
"id": "ord-55120",
"estimated_arrival": "2026-11-29T19:42:00Z",
"actual_arrival": "2026-11-29T19:45:10Z",
"customer": "Mario Rossi",
"address": "Via Torino 21, Milano",
"latitude": 45.461,
"longitude": 9.185
},
{
"id": "ord-55124",
"estimated_arrival": "2026-11-29T19:55:00Z",
"customer": "Giulia Bianchi",
"address": "Corso di Porta Ticinese 40, Milano",
"latitude": 45.4566,
"longitude": 9.1812
}
],
"exit_estimated_at": "2026-11-29T19:30:00Z",
"exit_actual_at": "2026-11-29T19:31:20Z",
"return_estimated_at": "2026-11-29T20:10:00Z",
"courier": "Luca Verdi",
"status": "pending"
}
]Authorizations
HTTPBearerHTTPBearer
Query Parameters
Response
Deliveries retrieved. One item per courier trip.
