Skip to main content
POST
Record carrier quote
The Record Carrier Quote endpoint records what a carrier asks to haul a trip, for example a counter of $1,300 on a $1,000 load. It is the same as adding an interested carrier on the trip in Alvys, and the quote shows up in the trip’s interested carriers list. Recording a quote does not assign the carrier: to book it, use Assign trip. 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:update scope. See Authentication.

Carrier

CarrierId is the Alvys id of a carrier that already exists in your account. Find it by MC or DOT number with Search carriers. This endpoint does not create carriers: a carrier that is not in Alvys, or is deleted, is rejected with 404 Not Found. Add a new carrier in Alvys first. A carrier marked Do Not Load is rejected with 422 Unprocessable Entity. The carrier’s name, MC number, DOT number and status are taken from the carrier record in Alvys, not from your request.

One quote per carrier

A trip holds one quote per carrier. Sending a quote for a carrier that already quoted on the trip replaces its Amount, and its Notes, ContactPhone and ContactEmail when you send them:
  • Leave a field out to keep its current value.
  • Send an empty string to clear it.
  • The quote keeps its Id, CreatedAt and CreatedBy.
The latest call wins, including over an edit made in Alvys since your last call.

Retry safely

Sending the same terms again returns the stored quote and changes nothing, so a retry after a timeout is safe.

Trip status

An Open trip and its load move to Quoted, as they do in Alvys. Quotes can be recorded while the trip is Open, Quoted or Reserved and has no carrier.

Errors

Example cURL request

Example response (200 OK)


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

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

Id of a carrier already in Alvys. Find one by MC or DOT number with POST /carriers/search. A carrier marked Do Not Load is refused.

Amount
number<double> | null

Required. What the carrier asks to haul the trip, in dollars, from 0 up to the largest amount Alvys accepts (1,000,000 by default).

Notes
string | null

Free text shown with the quote in Alvys. When replacing a quote, leave it out to keep the current notes, or send an empty string to clear them.

ContactPhone
string | null

Phone number to reach the carrier about this quote. When replacing a quote, leave it out to keep the current one, or send an empty string to clear it.

ContactEmail
string | null

Email address to reach the carrier about this quote. When replacing a quote, leave it out to keep the current one, or send an empty string to clear it.

Response

OK

Id
string
required
CarrierId
string
required
Amount
number<double>
required
CreatedAt
string<date-time>
required

When the quote was first recorded. Replacing it keeps this time.

Source
string
required

Manual for a quote added in the app or through this API, Marketplace for a carrier's bid on the Alvys Marketplace, which is changed or removed through the Marketplace only.

Notes
string | null
ContactPhone
string | null
ContactEmail
string | null
CreatedBy
string | null

Id of the user or API client that first recorded the quote. Replacing it keeps this id.