Skip to main content
POST
Generate carrier rate confirmation
The Generate Carrier Rate Confirmation endpoint creates the carrier rate confirmation for a trip, the same document as Generate in the Tender panel in Alvys, and returns it with a download link. For more information on how versioning works and how to include it in your requests, please refer to the Versioning page. It does not email the carrier or request a signature. Download the PDF from DownloadUrl and send it the way you already do.
This endpoint requires the trip:update scope. See Authentication.

Request parameters

The request has no body.

Before you call it

The trip must be ready for a carrier rate confirmation. Each of these returns 422 Unprocessable Content and stores nothing:
  • The trip has no carrier. Assign one first.
  • The trip is run by an owner operator. Only carrier rate confirmations can be generated through the API.
  • The trip is tendered to one of your own carrier subsidiaries. Rate confirmations can be generated here for brokered carriers only.
  • The trip has no dispatcher, or its dispatcher is no longer an active user. Set one with dispatcherId on Assign trip.
The contact printed on the rate confirmation is the trip’s dispatcher, not your API credential.

Where the document is stored

The rate confirmation is stored on the trip’s load, not on the trip: ParentType is Load and ParentId is the load number. List load documents lists it and List trip documents does not.

Retry safely

Without an Idempotency-Key, every call stores a new rate confirmation, so a retry after a timeout can leave two on the load. With an Idempotency-Key, the key is tied to this trip:
  • The first call generates and stores the rate confirmation.
  • A call with the same key returns that rate confirmation with a new download link and generates nothing.
  • The key is also tied to the trip’s carrier, owner operator and carrier rate. After any of them changes, the same key goes through every check again and generates a new rate confirmation.
  • Other trip edits do not change what the key returns. Send a new key to get a rate confirmation that shows them.
  • If the rate confirmation stored for a key was deleted, the same key returns 409 Conflict with a type ending in IdempotencyKeyReused. Send a new key.
An empty key, or one over 100 characters, returns 400 Bad Request.

Response

200 OK with the rate confirmation. Fields with no value are left out of the response.

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>.

Headers

Idempotency-Key
string

Path Parameters

tripId
string
required
version
string
default:1.0
required

API version (e.g., 1.0)

Example:

"1.0"

Response

OK

id
string
required
AttachmentPath
string
required
AttachmentType
string
required
ParentId
string
required
ParentType
string
required
AttachmentSize
integer<int64> | null
UploadedAt
string<date-time> | null
UploadedBy
string | null
DownloadUrl
string | null
ExpiresAt
string<date-time> | null