Trailers
Get trailer event
Retrieve one scheduled trailer event by ID, with its ETag for a later update or delete.
GET
/
api
/
p
/
v
{version}
/
trailers
/
events
/
{id}
Get trailer event
curl --request GET \
--url https://integrations.alvys.com/api/p/v{version}/trailers/events/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://integrations.alvys.com/api/p/v{version}/trailers/events/{id}', 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}/trailers/events/{id}"
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}/trailers/events/{id}",
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}/trailers/events/{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))
}HttpResponse<String> response = Unirest.get("https://integrations.alvys.com/api/p/v{version}/trailers/events/{id}")
.header("Authorization", "Bearer <token>")
.asString();{
"Id": "<string>",
"TrailerId": "<string>",
"Title": "<string>",
"EventType": "<string>",
"Description": "<string>",
"CreatedAt": "2023-11-07T05:31:56Z",
"StartDate": "2023-11-07T05:31:56Z",
"EndDate": "2023-11-07T05:31:56Z",
"Address": {
"Street": "<string>",
"City": "<string>",
"State": "<string>",
"ZipCode": "<string>",
"Country": "<string>"
},
"CreatedBy": "<string>",
"ExternalId": "<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 Get Trailer Event endpoint returns one scheduled trailer event by its id, and its optimistic-concurrency token in the
Events created by a maintenance work order in Alvys are returned too, but they cannot be changed or deleted through the API.
Replace
ETag response header. Use it to get the ETag that Update trailer event and Delete trailer event require in If-Match. Search trailer events lists events but does not return their ETags. 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
trailer:read scope. See Authentication.Request parameters
The following parameters are required in the URL path:| Parameter | Type | Required | Description |
|---|---|---|---|
| version | String | Yes | The version of the API. |
| id | String | Yes | The unique identifier of the event. |
Example cURL request
curl --location 'https://integrations.alvys.com/api/p/v1/trailers/events/3c9a7e10-0000-0000-0000-000000000042' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'
YOUR_ACCESS_TOKEN with your actual Bearer token.
Response fields
| Field | Type | Description |
|---|---|---|
| Id | String | The unique identifier of the event. |
| TrailerId | String | The id of the trailer the event belongs to. |
| Title | String | The trailer number, set by Alvys. |
| EventType | String | One of WorkOrder, Repair, Other. |
| Description | String | Free-form notes. |
| StartDate | String (Date-Time) | When the event starts, as local time at the event address. |
| EndDate | String (Date-Time) | When the event ends, as local time at the event address. |
| Address | Object | The event address, with Street, City, State, ZipCode and Country. |
| ExternalId | String | The ExternalId sent when the event was created, if any. |
| CreatedBy | String | Who created the event. |
| CreatedAt | String (Date-Time) | When the event was created. |
Example response
200 OK{
"Id": "3c9a7e10-0000-0000-0000-000000000042",
"TrailerId": "TL1000000000000233",
"Title": "53-233",
"EventType": "Repair",
"Description": "Reefer unit service",
"StartDate": "2026-12-08T08:00:00Z",
"EndDate": "2026-12-10T17:00:00Z",
"Address": {
"Street": "4500 Industrial Pkwy",
"City": "Dallas",
"State": "TX",
"ZipCode": "75247",
"Country": "US"
},
"ExternalId": "shop-ro-77940",
"CreatedAt": "2026-11-30T15:04:05.000Z"
}
Status codes
| Status | Meaning |
|---|---|
| 200 | The event was returned. Its ETag is in the ETag response header. |
| 400 | The id is empty. |
| 401 | The request was not authenticated. |
| 403 | The caller lacks the trailer:read scope. |
| 404 | No trailer event with this id exists, it was deleted, or its trailer is outside the subsidiaries your credential can access. |
| 429 | The rate limit was exceeded. |
Rate limits
All endpoints are subject to rate limits to protect the API from traffic spikes. For detailed information on rate limits, please refer to the Rate Limits section. This page is interactive, allowing you to try a request by specifying the API version and the event id in the URL path. As you fill out the parameters, the cURL command on the right side of the page will be automatically updated.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>.
Response
OK
⌘I
Get trailer event
curl --request GET \
--url https://integrations.alvys.com/api/p/v{version}/trailers/events/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://integrations.alvys.com/api/p/v{version}/trailers/events/{id}', 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}/trailers/events/{id}"
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}/trailers/events/{id}",
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}/trailers/events/{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))
}HttpResponse<String> response = Unirest.get("https://integrations.alvys.com/api/p/v{version}/trailers/events/{id}")
.header("Authorization", "Bearer <token>")
.asString();{
"Id": "<string>",
"TrailerId": "<string>",
"Title": "<string>",
"EventType": "<string>",
"Description": "<string>",
"CreatedAt": "2023-11-07T05:31:56Z",
"StartDate": "2023-11-07T05:31:56Z",
"EndDate": "2023-11-07T05:31:56Z",
"Address": {
"Street": "<string>",
"City": "<string>",
"State": "<string>",
"ZipCode": "<string>",
"Country": "<string>"
},
"CreatedBy": "<string>",
"ExternalId": "<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>"
}