Loads
Release load to billing
Release a load’s Delivered or TONU trips to billing, the same as the Release button in Alvys, with safe retries and the company’s document and equipment checks.
POST
/
api
/
p
/
v
{version}
/
loads
/
{loadNumber}
/
release
Release load to billing
curl --request POST \
--url https://integrations.alvys.com/api/p/v{version}/loads/{loadNumber}/release \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json-patch+json' \
--data '
{
"TripId": "<string>",
"AcknowledgeMissingEquipment": true
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json-patch+json'},
body: JSON.stringify({TripId: '<string>', AcknowledgeMissingEquipment: true})
};
fetch('https://integrations.alvys.com/api/p/v{version}/loads/{loadNumber}/release', 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}/loads/{loadNumber}/release"
payload = {
"TripId": "<string>",
"AcknowledgeMissingEquipment": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json-patch+json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://integrations.alvys.com/api/p/v{version}/loads/{loadNumber}/release",
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([
'TripId' => '<string>',
'AcknowledgeMissingEquipment' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json-patch+json"
],
]);
$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://integrations.alvys.com/api/p/v{version}/loads/{loadNumber}/release"
payload := strings.NewReader("{\n \"TripId\": \"<string>\",\n \"AcknowledgeMissingEquipment\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json-patch+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://integrations.alvys.com/api/p/v{version}/loads/{loadNumber}/release")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json-patch+json")
.body("{\n \"TripId\": \"<string>\",\n \"AcknowledgeMissingEquipment\": true\n}")
.asString();{
"Id": "<string>",
"LoadNumber": "<string>",
"OrderNumber": "<string>",
"CustomerId": "<string>",
"Status": "<string>",
"LoadType": "<string>",
"CustomerType": [
"<string>"
],
"Stops": [
{
"AppointmentRequested": true,
"AppointmentConfirmed": true,
"ScheduleType": "<string>",
"Id": "<string>",
"StopType": "<string>",
"References": [
{
"Name": "<string>",
"Value": "<string>",
"Id": "<string>",
"ReferenceId": "<string>",
"Type": "<string>",
"Access": "<string>",
"Origin": "<string>"
}
],
"$type": "<string>",
"AppointmentDate": "2023-11-07T05:31:56Z",
"LoadingType": "<string>",
"Address": {
"Street": "<string>",
"City": "<string>",
"State": "<string>",
"ZipCode": "<string>",
"Country": "<string>"
},
"Coordinates": {
"Latitude": "<string>",
"Longitude": "<string>"
},
"Status": "<string>",
"ArrivedAt": "2023-11-07T05:31:56Z",
"DepartedAt": "2023-11-07T05:31:56Z",
"CompanyId": "<string>",
"CompanyNumber": "<string>",
"CompanyName": "<string>",
"Eta": {
"Planned": "2023-11-07T05:31:56Z",
"Live": "2023-11-07T05:31:56Z",
"Manual": "2023-11-07T05:31:56Z"
}
}
],
"InvoiceAs": "<string>",
"Notes": [
{
"id": "<string>",
"Description": "<string>",
"NoteType": "<string>",
"User": "<string>",
"Time": "2023-11-07T05:31:56Z",
"UserId": "<string>"
}
],
"CreatedAt": "2023-11-07T05:31:56Z",
"CreatedBy": "<string>",
"References": [
{
"Name": "<string>",
"Value": "<string>",
"Id": "<string>",
"ReferenceId": "<string>",
"Type": "<string>",
"Access": "<string>",
"Origin": "<string>"
}
],
"PONumber": "<string>",
"CustomerName": "<string>",
"CustomerNumber": "<string>",
"ContractId": "<string>",
"Fleet": {
"Id": "<string>",
"Name": "<string>",
"InvoiceNumberPrefix": "<string>"
},
"OfficeId": "<string>",
"Linehaul": {
"Amount": 123,
"Currency": 123
},
"FuelSurcharge": {
"Amount": 123,
"Currency": 123
},
"CustomerAccessorials": {
"Amount": 123,
"Currency": 123
},
"CustomerAccessorialsDetails": [
{
"Id": "<string>",
"Type": "<string>",
"Total": {
"Amount": 123,
"Currency": 123
},
"Rate": {
"Amount": 123,
"Currency": 123
},
"RateType": "<string>",
"Uom": "<string>",
"Quantity": 123,
"IsPaid": true,
"CreatedAt": "2023-11-07T05:31:56Z",
"CreatedBy": "<string>",
"UpdatedAt": "2023-11-07T05:31:56Z",
"UpdatedBy": "<string>",
"ExternalId": "<string>"
}
],
"CustomerRate": {
"Amount": 123,
"Currency": 123
},
"CustomerMileage": {
"Distance": {
"Value": 123,
"UnitOfMeasure": "Miles"
},
"Source": "<string>",
"ProfileId": "<string>",
"ProfileName": "<string>"
},
"InvoicedAmount": {
"Amount": 123,
"Currency": 123
},
"Weight": {
"Value": 123,
"UnitOfMeasure": "Kilograms"
},
"Volume": {
"Value": 123,
"UnitOfMeasure": "Gallons"
},
"ScheduledPickupAt": "2023-11-07T05:31:56Z",
"ScheduledDeliveryAt": "2023-11-07T05:31:56Z",
"PickedUpAt": "2023-11-07T05:31:56Z",
"DeliveredAt": "2023-11-07T05:31:56Z",
"InvoicedAt": "2023-11-07T05:31:56Z",
"LastInvoiceSentAt": "2023-11-07T05:31:56Z",
"CancelledAt": "2023-11-07T05:31:56Z",
"CancelledBy": "<string>",
"CustomerServiceRepId": "<string>",
"CustomerSalesAgentId": "<string>",
"CustomerSalesManagerId": "<string>",
"CustomerLoadPlannerId": "<string>",
"UpdatedAt": "2023-11-07T05:31:56Z",
"UpdatedBy": "<string>",
"CustomerAccountManagerId": "<string>",
"PaidAt": "2023-11-07T05:31:56Z",
"TotalPaid": {
"Amount": 123,
"Currency": 123
},
"Payments": [
{
"Id": "<string>",
"Amount": {
"Amount": 123,
"Currency": 123
},
"PaidAt": "2023-11-07T05:31:56Z"
}
],
"TenderId": "<string>",
"IsDeleted": true,
"RequiredEquipment": [
"<string>"
],
"Origin": {
"Street": "<string>",
"City": "<string>",
"State": "<string>",
"ZipCode": "<string>",
"Country": "<string>",
"CompanyId": "<string>",
"Coordinates": {
"Latitude": "<string>",
"Longitude": "<string>"
}
},
"Destination": {
"Street": "<string>",
"City": "<string>",
"State": "<string>",
"ZipCode": "<string>",
"Country": "<string>",
"CompanyId": "<string>",
"Coordinates": {
"Latitude": "<string>",
"Longitude": "<string>"
}
}
}{
"Errors": {},
"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>"
}{
"Type": "<string>",
"Title": "<string>",
"Status": 123,
"Detail": "<string>",
"Instance": "<string>"
}The Release Load endpoint moves a load’s trips into billing, the same as the Release button in Alvys. The load moves to Released once all of its trips are in billing. The company’s required-documents and required-equipment settings apply, exactly as they do in the app. For more information on how versioning works and how to include it in your requests, please refer to the Versioning page.
To release every Delivered or TONU trip on the load, send the request with no body.
This endpoint requires the
load:update scope. See Authentication.Request parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| version | path | String | Yes | API version to use. |
| loadNumber | path | String | Yes | The load number. A trip number such as 123-1 is not accepted and returns 404 Not Found. |
Request body
The body is optional. Send no body, or{}, to release every Delivered or TONU trip on the load.
| Name | Type | Required | Description |
|---|---|---|---|
| TripId | string | No | The Id of the trip to release (as returned by the trips endpoints), not its trip number. Omit it to release every Delivered or TONU trip. A blank value returns 400 Bad Request. |
| AcknowledgeMissingEquipment | boolean | No | Send true to release anyway when the company is set to warn about a trip missing its truck, trailer or driver. It has no effect when the company blocks the release instead. |
Retry safely
A load or trip that is already Released, or further along in billing, returns200 OK with the load unchanged. A retry after a timeout is safe.
Response
200 OK with the load, in the same shape as Get load.
Errors
| Status | When |
|---|---|
400 Bad Request | TripId is blank, the body is malformed, a required document is missing, or a trip is missing its required equipment. |
401 Unauthorized | The access token is missing, invalid or expired. |
403 Forbidden | Your credential does not have the load:update scope. |
404 Not Found | The load does not exist, a trip number was used in place of the load number (for example 123-1), TripId is not an active trip of the load, or the load or trip is outside your credential’s subsidiaries. |
409 Conflict | None of the requested trips is Delivered or TONU. |
429 Too Many Requests | You are rate limited. See Rate limits. |
Missing equipment
A400 Bad Request for missing equipment carries an errorCode:
errorCode | Meaning |
|---|---|
equipment_release_warning | The company warns about a trip missing its truck, trailer or driver. Send AcknowledgeMissingEquipment: true to release anyway. |
equipment_release_blocked | The company blocks the release. It cannot be overridden: add the missing equipment in Alvys and release again. |
Example cURL request
Release one trip and confirm the missing-equipment warning:curl --location --request POST 'https://integrations.alvys.com/api/p/v{version}/loads/{loadNumber}/release' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--data-raw '{
"TripId": "0c7043859be34b518d165a5e4782d8be",
"AcknowledgeMissingEquipment": true
}'
Example response (200 OK)
Abbreviated. The full load has the same fields as Get load.{
"Id": "c2e418d5-3125-4b14-b6b0-dcf77b0c2a93",
"LoadNumber": "3022258",
"OrderNumber": "ORD-1042",
"CustomerName": "Example Customer",
"Status": "Released",
"DeliveredAt": "2026-11-30T16:20:00+00:00",
"UpdatedAt": "2026-12-01T15:04:11+00:00"
}
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
Body
application/json-patch+jsonapplication/jsontext/jsonapplication/*+json
Response
OK
⌘I
Release load to billing
curl --request POST \
--url https://integrations.alvys.com/api/p/v{version}/loads/{loadNumber}/release \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json-patch+json' \
--data '
{
"TripId": "<string>",
"AcknowledgeMissingEquipment": true
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json-patch+json'},
body: JSON.stringify({TripId: '<string>', AcknowledgeMissingEquipment: true})
};
fetch('https://integrations.alvys.com/api/p/v{version}/loads/{loadNumber}/release', 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}/loads/{loadNumber}/release"
payload = {
"TripId": "<string>",
"AcknowledgeMissingEquipment": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json-patch+json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://integrations.alvys.com/api/p/v{version}/loads/{loadNumber}/release",
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([
'TripId' => '<string>',
'AcknowledgeMissingEquipment' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json-patch+json"
],
]);
$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://integrations.alvys.com/api/p/v{version}/loads/{loadNumber}/release"
payload := strings.NewReader("{\n \"TripId\": \"<string>\",\n \"AcknowledgeMissingEquipment\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json-patch+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://integrations.alvys.com/api/p/v{version}/loads/{loadNumber}/release")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json-patch+json")
.body("{\n \"TripId\": \"<string>\",\n \"AcknowledgeMissingEquipment\": true\n}")
.asString();{
"Id": "<string>",
"LoadNumber": "<string>",
"OrderNumber": "<string>",
"CustomerId": "<string>",
"Status": "<string>",
"LoadType": "<string>",
"CustomerType": [
"<string>"
],
"Stops": [
{
"AppointmentRequested": true,
"AppointmentConfirmed": true,
"ScheduleType": "<string>",
"Id": "<string>",
"StopType": "<string>",
"References": [
{
"Name": "<string>",
"Value": "<string>",
"Id": "<string>",
"ReferenceId": "<string>",
"Type": "<string>",
"Access": "<string>",
"Origin": "<string>"
}
],
"$type": "<string>",
"AppointmentDate": "2023-11-07T05:31:56Z",
"LoadingType": "<string>",
"Address": {
"Street": "<string>",
"City": "<string>",
"State": "<string>",
"ZipCode": "<string>",
"Country": "<string>"
},
"Coordinates": {
"Latitude": "<string>",
"Longitude": "<string>"
},
"Status": "<string>",
"ArrivedAt": "2023-11-07T05:31:56Z",
"DepartedAt": "2023-11-07T05:31:56Z",
"CompanyId": "<string>",
"CompanyNumber": "<string>",
"CompanyName": "<string>",
"Eta": {
"Planned": "2023-11-07T05:31:56Z",
"Live": "2023-11-07T05:31:56Z",
"Manual": "2023-11-07T05:31:56Z"
}
}
],
"InvoiceAs": "<string>",
"Notes": [
{
"id": "<string>",
"Description": "<string>",
"NoteType": "<string>",
"User": "<string>",
"Time": "2023-11-07T05:31:56Z",
"UserId": "<string>"
}
],
"CreatedAt": "2023-11-07T05:31:56Z",
"CreatedBy": "<string>",
"References": [
{
"Name": "<string>",
"Value": "<string>",
"Id": "<string>",
"ReferenceId": "<string>",
"Type": "<string>",
"Access": "<string>",
"Origin": "<string>"
}
],
"PONumber": "<string>",
"CustomerName": "<string>",
"CustomerNumber": "<string>",
"ContractId": "<string>",
"Fleet": {
"Id": "<string>",
"Name": "<string>",
"InvoiceNumberPrefix": "<string>"
},
"OfficeId": "<string>",
"Linehaul": {
"Amount": 123,
"Currency": 123
},
"FuelSurcharge": {
"Amount": 123,
"Currency": 123
},
"CustomerAccessorials": {
"Amount": 123,
"Currency": 123
},
"CustomerAccessorialsDetails": [
{
"Id": "<string>",
"Type": "<string>",
"Total": {
"Amount": 123,
"Currency": 123
},
"Rate": {
"Amount": 123,
"Currency": 123
},
"RateType": "<string>",
"Uom": "<string>",
"Quantity": 123,
"IsPaid": true,
"CreatedAt": "2023-11-07T05:31:56Z",
"CreatedBy": "<string>",
"UpdatedAt": "2023-11-07T05:31:56Z",
"UpdatedBy": "<string>",
"ExternalId": "<string>"
}
],
"CustomerRate": {
"Amount": 123,
"Currency": 123
},
"CustomerMileage": {
"Distance": {
"Value": 123,
"UnitOfMeasure": "Miles"
},
"Source": "<string>",
"ProfileId": "<string>",
"ProfileName": "<string>"
},
"InvoicedAmount": {
"Amount": 123,
"Currency": 123
},
"Weight": {
"Value": 123,
"UnitOfMeasure": "Kilograms"
},
"Volume": {
"Value": 123,
"UnitOfMeasure": "Gallons"
},
"ScheduledPickupAt": "2023-11-07T05:31:56Z",
"ScheduledDeliveryAt": "2023-11-07T05:31:56Z",
"PickedUpAt": "2023-11-07T05:31:56Z",
"DeliveredAt": "2023-11-07T05:31:56Z",
"InvoicedAt": "2023-11-07T05:31:56Z",
"LastInvoiceSentAt": "2023-11-07T05:31:56Z",
"CancelledAt": "2023-11-07T05:31:56Z",
"CancelledBy": "<string>",
"CustomerServiceRepId": "<string>",
"CustomerSalesAgentId": "<string>",
"CustomerSalesManagerId": "<string>",
"CustomerLoadPlannerId": "<string>",
"UpdatedAt": "2023-11-07T05:31:56Z",
"UpdatedBy": "<string>",
"CustomerAccountManagerId": "<string>",
"PaidAt": "2023-11-07T05:31:56Z",
"TotalPaid": {
"Amount": 123,
"Currency": 123
},
"Payments": [
{
"Id": "<string>",
"Amount": {
"Amount": 123,
"Currency": 123
},
"PaidAt": "2023-11-07T05:31:56Z"
}
],
"TenderId": "<string>",
"IsDeleted": true,
"RequiredEquipment": [
"<string>"
],
"Origin": {
"Street": "<string>",
"City": "<string>",
"State": "<string>",
"ZipCode": "<string>",
"Country": "<string>",
"CompanyId": "<string>",
"Coordinates": {
"Latitude": "<string>",
"Longitude": "<string>"
}
},
"Destination": {
"Street": "<string>",
"City": "<string>",
"State": "<string>",
"ZipCode": "<string>",
"Country": "<string>",
"CompanyId": "<string>",
"Coordinates": {
"Latitude": "<string>",
"Longitude": "<string>"
}
}
}{
"Errors": {},
"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>"
}{
"Type": "<string>",
"Title": "<string>",
"Status": 123,
"Detail": "<string>",
"Instance": "<string>"
}