Trips
List trip carrier quotes
List the carrier quotes on a trip: the ones added in Alvys, through the API, and carriers’ bids on the Alvys Marketplace.
GET
/
api
/
p
/
v
{version}
/
trips
/
{tripId}
/
carrier-quotes
List trip carrier quotes
curl --request GET \
--url https://integrations.alvys.com/api/p/v{version}/trips/{tripId}/carrier-quotes \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://integrations.alvys.com/api/p/v{version}/trips/{tripId}/carrier-quotes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://integrations.alvys.com/api/p/v{version}/trips/{tripId}/carrier-quotes"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://integrations.alvys.com/api/p/v{version}/trips/{tripId}/carrier-quotes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://integrations.alvys.com/api/p/v{version}/trips/{tripId}/carrier-quotes"
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))
}HttpResponse<String> response = Unirest.get("https://integrations.alvys.com/api/p/v{version}/trips/{tripId}/carrier-quotes")
.header("Authorization", "Bearer <token>")
.asString();[
{
"Id": "<string>",
"CarrierId": "<string>",
"Amount": 123,
"CreatedAt": "2023-11-07T05:31:56Z",
"Source": "<string>",
"Notes": "<string>",
"ContactPhone": "<string>",
"ContactEmail": "<string>",
"CreatedBy": "<string>"
}
]{
"Type": "<string>",
"Title": "<string>",
"Status": 123,
"Detail": "<string>",
"Instance": "<string>"
}{
"Type": "<string>",
"Title": "<string>",
"Status": 123,
"Detail": "<string>",
"Instance": "<string>"
}{
"Type": "<string>",
"Title": "<string>",
"Status": 123,
"Detail": "<string>",
"Instance": "<string>"
}{
"Type": "<string>",
"Title": "<string>",
"Status": 123,
"Detail": "<string>",
"Instance": "<string>"
}{
"Type": "<string>",
"Title": "<string>",
"Status": 123,
"Detail": "<string>",
"Instance": "<string>"
}The List Trip Carrier Quotes endpoint returns the carrier quotes recorded on a trip: the ones added in Alvys, the ones recorded with Record carrier quote, and carriers’ bids on the Alvys Marketplace.
A trip with no quotes returns an empty list. A trip that does not exist, or that your credential cannot access, returns
Source says which. To read the carrier itself, use Get carrier with the quote’s CarrierId. For more information on how versioning works and how to include it in your requests, please refer to the Versioning page.
This endpoint requires the
trip:read scope. See Authentication.404 Not Found. A trip tendered as one of your own carrier subsidiaries returns 422 Unprocessable Entity: trip responses do not show carrier pay for those trips, and quotes are carrier pay.
Response body
Array of quote objects:| Name | Type | Description |
|---|---|---|
| Id | string | Unique identifier of the quote. Use it with Remove carrier quote. |
| CarrierId | string | Alvys id of the carrier that quoted. |
| Amount | number | What the carrier asks to haul the trip, in dollars. |
| Notes | string | Free text shown with the quote in Alvys, or null. |
| ContactPhone | string | Phone number to reach the carrier about this quote, or null. |
| ContactEmail | string | Email address to reach the carrier about this quote, or null. |
| CreatedAt | string | When the quote was first recorded. Replacing the quote keeps this time. |
| CreatedBy | string | Id of the user or API client that first recorded the quote. Replacing the quote keeps this id. |
| Source | string | Manual for a quote added in Alvys or through the API, Marketplace for a carrier’s bid on the Alvys Marketplace. A Marketplace bid is changed or removed through the Marketplace only. |
Example cURL request
curl --location 'https://integrations.alvys.com/api/p/v{version}/trips/{tripId}/carrier-quotes' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'
Example response (200 OK)
[
{
"Id": "1a5fa437-c902-42f1-955d-1dfd8a09c8d5",
"CarrierId": "714698b2-956d-4511-a1ed-4b907b47b4ef",
"Amount": 1250.0,
"Notes": "Counter on 1,000",
"ContactPhone": "555-0100",
"ContactEmail": "dispatch@example.com",
"CreatedAt": "2026-11-26T15:47:43.0689498+00:00",
"CreatedBy": "BYnMgXWF6d3fDxSB0GWr2Seo7yfeCzvv",
"Source": "Manual"
}
]
Rate limits
All endpoints are subject to rate limits to protect the API from traffic spikes. For detailed information, see the Rate Limits section.Authorizations
OAuth 2.0 client-credentials access token. Obtain one from https://auth.alvys.com/oauth/token (grant_type=client_credentials, audience=https://api.alvys.com/public/), then paste it here. The playground sends it as Authorization: Bearer <token>.
Path Parameters
Response
OK
⌘I
List trip carrier quotes
curl --request GET \
--url https://integrations.alvys.com/api/p/v{version}/trips/{tripId}/carrier-quotes \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://integrations.alvys.com/api/p/v{version}/trips/{tripId}/carrier-quotes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://integrations.alvys.com/api/p/v{version}/trips/{tripId}/carrier-quotes"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://integrations.alvys.com/api/p/v{version}/trips/{tripId}/carrier-quotes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://integrations.alvys.com/api/p/v{version}/trips/{tripId}/carrier-quotes"
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))
}HttpResponse<String> response = Unirest.get("https://integrations.alvys.com/api/p/v{version}/trips/{tripId}/carrier-quotes")
.header("Authorization", "Bearer <token>")
.asString();[
{
"Id": "<string>",
"CarrierId": "<string>",
"Amount": 123,
"CreatedAt": "2023-11-07T05:31:56Z",
"Source": "<string>",
"Notes": "<string>",
"ContactPhone": "<string>",
"ContactEmail": "<string>",
"CreatedBy": "<string>"
}
]{
"Type": "<string>",
"Title": "<string>",
"Status": 123,
"Detail": "<string>",
"Instance": "<string>"
}{
"Type": "<string>",
"Title": "<string>",
"Status": 123,
"Detail": "<string>",
"Instance": "<string>"
}{
"Type": "<string>",
"Title": "<string>",
"Status": 123,
"Detail": "<string>",
"Instance": "<string>"
}{
"Type": "<string>",
"Title": "<string>",
"Status": 123,
"Detail": "<string>",
"Instance": "<string>"
}{
"Type": "<string>",
"Title": "<string>",
"Status": 123,
"Detail": "<string>",
"Instance": "<string>"
}