Skip to main content
POST
Assign trip
Every asset id you send must resolve to a driver, truck, or trailer that exists in your tenant and is not deleted. If an id is unknown, deleted, or belongs to another tenant, the request fails with 400 Bad Request and no part of the assignment is applied. Earlier behavior accepted such an id and left the trip assigned to a resource you could not read back.
Send only ids you have read from the matching search or get endpoint in the same tenant, and handle 400 as a request to correct before retrying rather than as a transient failure.

Authorizations

Authorization
string
header
required

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

tripId
string
required
version
string
default:1.0
required

API version (e.g., 1.0)

Example:

"1.0"

Body

CarrierId
string
required
DispatcherId
string
required
Driver1Id
string | null
Driver2Id
string | null
TruckId
string | null
TrailerId
string | null
CarrierRate
number<double> | null

Response

OK

Id
string
required
TripNumber
string
required
Status
string
required
LoadNumber
string
required
Stops
object[]
required
TotalMileage
object
required
EmptyMileage
object
required
LoadedMileage
object
required
TripValue
object
required
CarrierPayOnHold
boolean
required
Truck
object | null
Trailer
object | null
OrderNumber
string | null
TenderAs
string | null
TenderAsSubsidiaryType
string | null
RequiredEquipment
string[] | null
Temperature
object | null
PickupDate
string<date-time> | null
DeliveryDate
string<date-time> | null
PickedUpAt
string<date-time> | null
DeliveredAt
string<date-time> | null
CarrierAssignedAt
string<date-time> | null
ReleasedAt
string<date-time> | null
CarrierPaidAt
string<date-time> | null
DueDate
string<date-time> | null
Driver1
object | null
Driver2
object | null
OwnerOperator
object | null
ReleasedBy
string | null
DispatchedBy
string | null
DispatcherId
string | null
CarrierSalesAgentId
string | null
Carrier
object | null
UpdatedAt
string<date-time> | null
UpdatedBy
string | null
IsDeleted
boolean | null
References
object[] | null
Eta
object | null

Estimated time of arrival at the trip's final stop. Null when the trip has no stops or the final stop has no estimate.