Get Cargo Vehicle by ID
curl --request GET \
--url https://stage-api.getswitch.io/operations/cargo-vehicles/{vehicle_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://stage-api.getswitch.io/operations/cargo-vehicles/{vehicle_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://stage-api.getswitch.io/operations/cargo-vehicles/{vehicle_id}', 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://stage-api.getswitch.io/operations/cargo-vehicles/{vehicle_id}"
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))
}{
"capacities": {
"batteries": 40,
"scooters": 12
},
"company_slug": "acme-mobility",
"created_at": "2026-10-02T09:15:00Z",
"icon": "Truck",
"id": 3,
"name": "Cargo Van 01",
"updated_at": "2026-11-12T16:40:00Z"
}Fleet Management
Get Cargo Vehicle by ID
Get one cargo vehicle by ID.
Failure Modes:
- 401: Token is missing or invalid
- 403: Insufficient permissions, or the cargo vehicle belongs to a company you cannot access
- 404: No cargo vehicle with this ID
Required Auth Scopes:
cargo-vehicles:read
GET
/
operations
/
cargo-vehicles
/
{vehicle_id}
Get Cargo Vehicle by ID
curl --request GET \
--url https://stage-api.getswitch.io/operations/cargo-vehicles/{vehicle_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://stage-api.getswitch.io/operations/cargo-vehicles/{vehicle_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://stage-api.getswitch.io/operations/cargo-vehicles/{vehicle_id}', 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://stage-api.getswitch.io/operations/cargo-vehicles/{vehicle_id}"
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))
}{
"capacities": {
"batteries": 40,
"scooters": 12
},
"company_slug": "acme-mobility",
"created_at": "2026-10-02T09:15:00Z",
"icon": "Truck",
"id": 3,
"name": "Cargo Van 01",
"updated_at": "2026-11-12T16:40:00Z"
}Authorizations
HTTPBearerHTTPBearer
Response
Cargo vehicle retrieved successfully. Returns the complete vehicle profile including capacity specs and company ownership.
Public schema for a cargo vehicle resource.
Exposes cargo vehicle details to API consumers, including capacity specs and company ownership.
