> ## Documentation Index
> Fetch the complete documentation index at: https://docs.alvys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Record carrier quote

> Record what a carrier asks to haul an open trip, the same as adding an interested carrier in Alvys, with one quote per carrier and safe retries.

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](https://docs.alvys.com/en/api/reference/trips/assign-trip.md). For more information on how versioning works and how to include it in your requests, please refer to the [Versioning](https://docs.alvys.com/en/api/guides/versioning.md) page.

> [!NOTE]
>
> This endpoint requires the `trip:update` scope. See [Authentication](https://docs.alvys.com/en/api/guides/authentication-1.md).

### 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](https://docs.alvys.com/en/api/reference/carriers/search-carriers.md). 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

| Status | When |
| - | - |
| `400 Bad Request` | `CarrierId` or `Amount` is missing, `Amount` is negative or above the largest amount Alvys accepts (1,000,000 by default), a text field is too long, or `ContactEmail` is not an email address. |
| `404 Not Found` | The trip does not exist or your credential cannot access it, or the carrier is not in Alvys or is deleted. |
| `409 Conflict` | The trip kept changing while the quote was being saved, and part of it may have been saved. Read the quotes again with [List trip carrier quotes](https://docs.alvys.com/en/api/reference/trips/list-trip-carrier-quotes.md) and retry. |
| `422 Unprocessable Entity` | Nothing was written. The trip already has a carrier, or it is not Open, Quoted or Reserved (`TripNotOpenForQuotes`); the trip is tendered as one of your own carrier subsidiaries; the carrier is marked Do Not Load (`CarrierDoNotLoad`); or the carrier's quote on the trip is its Alvys Marketplace bid (`QuoteFromMarketplace`). |

### Example cURL request

```bash theme={null}
curl --location 'https://integrations.alvys.com/api/p/v{version}/trips/{tripId}/carrier-quotes' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--data-raw '{
  "carrierId": "714698b2-956d-4511-a1ed-4b907b47b4ef",
  "amount": 1300,
  "notes": "Counter on 1,000",
  "contactPhone": "555-0100",
  "contactEmail": "dispatch@example.com"
}'
```

### Example response (200 OK)

```json theme={null}
{
  "Id": "1a5fa437-c902-42f1-955d-1dfd8a09c8d5",
  "CarrierId": "714698b2-956d-4511-a1ed-4b907b47b4ef",
  "Amount": 1300.0,
  "Notes": "Counter on 1,000",
  "ContactPhone": "555-0100",
  "ContactEmail": "dispatch@example.com",
  "CreatedAt": "2026-11-26T15:47:43.0689498+00:00",
  "CreatedBy": "BYnMgXWF6d3fDxSB0GWr2Seo7yfeCzvv",
  "Source": "Manual"
}
```

***

### Rate limits

All endpoints are subject to rate limits to protect the API from traffic spikes.
For detailed information, see the [Rate Limits](https://docs.alvys.com/en/api/guides/rate-limits.md) section.


## OpenAPI

````yaml POST /api/p/v{version}/trips/{tripId}/carrier-quotes
openapi: 3.0.1
info:
  title: Alvys
  description: >-
    Alvys provides a robust set of REST APIs to allow you to integrate Alvys
    into virtually any platform. These APIs cover most of Alvys' major product
    areas with additional endpoints being added regularly based on customer
    requests.
  contact:
    name: Alvys Support
    url: https://www.alvys.com/resources/contact/
  version: v1
servers:
  - url: https://integrations.alvys.com
    description: Public API Server
  - url: https://api.alvys.com/
    description: Public API Server
security:
  - Public: []
tags:
  - name: Authentication
    description: Obtain an OAuth 2.0 access token for the Alvys Public API.
  - name: Carrier Settlement Statements
    description: >-
      Search carrier settlement statements and retrieve a single statement by
      number.
  - name: Carriers
    description: Read carrier records, search carriers, and manage carrier documents.
  - name: Customers
    description: Create, read, update, delete, and search customer records.
  - name: Deductions
    description: >-
      Create one-time deductions and search or delete existing deduction
      records.
  - name: DispatchPreferences
    description: Dispatch preferences endpoints for reading dispatch rules and preferences.
  - name: Driver Settlement Statements
    description: >-
      Search driver settlement statements and retrieve a single statement by
      number.
  - name: Drivers
    description: >-
      Read driver records, search drivers and driver events, and manage driver
      documents.
  - name: Fuel
    description: Read and search fuel transactions.
  - name: Invoices
    description: >-
      Read invoices, create carrier invoices, and record carrier and customer
      payments.
  - name: Loads
    description: >-
      Read, update, and search loads; manage load documents, notes, and custom
      references.
  - name: Locations
    description: Read and search company location details.
  - name: Maintenance
    description: Read and search maintenance records.
  - name: References
    description: >-
      List tenant custom reference definitions and create or update values on
      existing loads, stops, and trips.
  - name: Subsidiaries
    description: >-
      List your company's subsidiaries and read a single subsidiary, so an
      integration can resolve a subsidiary id to a recognizable name.
  - name: Tenders
    description: Create, accept, reject, cancel, update, and search inbound EDI tenders.
  - name: Tolls
    description: Read and search toll transactions.
  - name: Tracking
    description: >-
      Record an asset's current location or telemetry from a third-party source,
      such as an external ELD or a self-reporting vehicle.
  - name: Trailers
    description: Read trailers, search trailer events, and manage trailer documents.
  - name: Trips
    description: >-
      Read and search trips; manage trip documents, stop appointments, arrivals,
      departures, and stop and trip custom references.
  - name: Trucks
    description: Read trucks, search truck events, and manage truck documents.
  - name: Users
    description: List and search users.
  - name: Visibility
    description: >-
      Read inbound and outbound visibility history and search outbound
      visibility errors.
  - name: Webhooks
    description: >-
      Create, read, update, delete, enable, disable, verify, test, and rotate
      secrets for webhook subscriptions; read event types, delivery logs, and
      health metrics.
  - name: Accessorials
  - name: Credits
paths:
  /api/p/v{version}/trips/{tripId}/carrier-quotes:
    post:
      tags:
        - Trips
      summary: Record carrier quote
      description: >-
        Records what a carrier asks to haul a trip, the same as adding an
        interested carrier in the app.


        **One quote per carrier.** Sending a quote for a carrier that already
        quoted on the trip replaces its amount, and its notes and contact when
        you send them: leave a field out to keep it, send an empty string to
        clear it. The quote keeps its id and the time and user it was first
        recorded with. The latest call wins, including over an edit made in the
        app since. Sending the same terms again returns the stored quote and
        changes nothing, so a retry after a timeout is safe.


        **Status.** An Open trip and its load move to Quoted, as they do in the
        app. Recording a quote does not assign the carrier: that is `POST
        /trips/{tripId}/assign`.


        **Refused with 422, nothing written,** when the trip already has a
        carrier or is not Open, Quoted or Reserved, when it is tendered as one
        of your own carrier subsidiaries, when the carrier is marked Do Not
        Load, or when the carrier's quote on the trip is its Alvys Marketplace
        bid. A carrier that is not in Alvys or is deleted is a 404. A 409 means
        the trip kept changing while the quote was being saved, and part of it
        may have been saved: read the quotes again and retry.
      parameters:
        - name: tripId
          in: path
          required: true
          schema:
            type: string
        - name: version
          in: path
          description: API version (e.g., 1.0)
          required: true
          schema:
            type: string
            default: '1.0'
            example: '1.0'
      requestBody:
        content:
          application/json-patch+json:
            schema:
              allOf:
                - $ref: >-
                    #/components/schemas/Alvys.Models.Trips.Request.CarrierQuoteRequest
          application/json:
            schema:
              allOf:
                - $ref: >-
                    #/components/schemas/Alvys.Models.Trips.Request.CarrierQuoteRequest
          text/json:
            schema:
              allOf:
                - $ref: >-
                    #/components/schemas/Alvys.Models.Trips.Request.CarrierQuoteRequest
          application/*+json:
            schema:
              allOf:
                - $ref: >-
                    #/components/schemas/Alvys.Models.Trips.Request.CarrierQuoteRequest
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Alvys.Models.Trips.CarrierQuoteResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Microsoft.AspNetCore.Mvc.ValidationProblemDetails
            application/problem+json:
              schema:
                $ref: >-
                  #/components/schemas/Microsoft.AspNetCore.Mvc.ValidationProblemDetails
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails'
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails'
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails'
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails'
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails'
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails'
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails'
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails'
        '429':
          description: Too Many Requests
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails'
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails'
      security:
        - Public: []
components:
  schemas:
    Alvys.Models.Trips.Request.CarrierQuoteRequest:
      required:
        - CarrierId
      type: object
      properties:
        CarrierId:
          type: string
          description: >-
            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:
          type: number
          description: >-
            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).
          format: double
          nullable: true
        Notes:
          type: string
          description: >-
            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.
          nullable: true
        ContactPhone:
          type: string
          description: >-
            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.
          nullable: true
        ContactEmail:
          type: string
          description: >-
            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.
          nullable: true
      additionalProperties: false
    Alvys.Models.Trips.CarrierQuoteResponse:
      required:
        - Amount
        - CarrierId
        - CreatedAt
        - Id
        - Source
      type: object
      properties:
        Id:
          type: string
        CarrierId:
          type: string
        Amount:
          type: number
          format: double
        Notes:
          type: string
          nullable: true
        ContactPhone:
          type: string
          nullable: true
        ContactEmail:
          type: string
          nullable: true
        CreatedAt:
          type: string
          description: When the quote was first recorded. Replacing it keeps this time.
          format: date-time
        CreatedBy:
          type: string
          description: >-
            Id of the user or API client that first recorded the quote.
            Replacing it keeps this id.
          nullable: true
        Source:
          type: string
          description: >-
            `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.
      additionalProperties: false
    Microsoft.AspNetCore.Mvc.ValidationProblemDetails:
      required:
        - Errors
      type: object
      properties:
        Errors:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
        Type:
          type: string
          nullable: true
        Title:
          type: string
          nullable: true
        Status:
          type: integer
          format: int32
          nullable: true
        Detail:
          type: string
          nullable: true
        Instance:
          type: string
          nullable: true
      additionalProperties: {}
    Microsoft.AspNetCore.Mvc.ProblemDetails:
      type: object
      properties:
        Type:
          type: string
          nullable: true
        Title:
          type: string
          nullable: true
        Status:
          type: integer
          format: int32
          nullable: true
        Detail:
          type: string
          nullable: true
        Instance:
          type: string
          nullable: true
      additionalProperties: {}
  securitySchemes:
    Public:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        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>`.

````