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

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

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](https://docs.alvys.com/en/api/guides/versioning.md) page.

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

### 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, returns `200 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](https://docs.alvys.com/en/api/reference/loads/get-load.md).

### 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](https://docs.alvys.com/en/api/guides/rate-limits.md). |

#### Missing equipment

A `400 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:

```bash theme={null}
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
}'
```

To release every Delivered or TONU trip on the load, send the request with no body.

### Example response (200 OK)

Abbreviated. The full load has the same fields as [Get load](https://docs.alvys.com/en/api/reference/loads/get-load.md).

```json theme={null}
{
  "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](https://docs.alvys.com/en/api/guides/rate-limits.md) section.


## OpenAPI

````yaml POST /api/p/v{version}/loads/{loadNumber}/release
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}/loads/{loadNumber}/release:
    post:
      tags:
        - Loads
      summary: Release load to billing
      description: >-
        Moves every Delivered or TONU trip on the load to Released, or only
        tripId when given, and the load follows once all of its trips are in
        billing. The company's required documents and required equipment
        settings apply as they do in the app: a missing required document is a
        400, and a trip missing its truck, trailer or driver is a 400 with
        errorCode equipment_release_warning (send acknowledgeMissingEquipment:
        true to release anyway) or equipment_release_blocked. A load or trip
        that is already Released or further along in billing is returned
        unchanged, so a retry is safe. 409 when no trip requested is Delivered,
        TONU or already released. 404 for a trip number in place of the load
        number, a tripId that is not an active trip of the load, or a load or
        trip outside the credential's subsidiaries.
      parameters:
        - name: loadNumber
          in: path
          required: true
          schema:
            type: string
        - name: version
          in: path
          description: API version (e.g., 2.0)
          required: true
          schema:
            type: string
            default: '2.0'
            example: '2.0'
      requestBody:
        content:
          application/json-patch+json:
            schema:
              allOf:
                - $ref: '#/components/schemas/Alvys.Models.Loads.LoadReleaseRequest'
          application/json:
            schema:
              allOf:
                - $ref: '#/components/schemas/Alvys.Models.Loads.LoadReleaseRequest'
          text/json:
            schema:
              allOf:
                - $ref: '#/components/schemas/Alvys.Models.Loads.LoadReleaseRequest'
          application/*+json:
            schema:
              allOf:
                - $ref: '#/components/schemas/Alvys.Models.Loads.LoadReleaseRequest'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Alvys.Models.Loads.LoadResponse'
        '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'
        '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.Loads.LoadReleaseRequest:
      type: object
      properties:
        TripId:
          type: string
          description: >-
            Release only this trip of the load. Omit to release every Delivered
            or TONU trip on the load.
          nullable: true
        AcknowledgeMissingEquipment:
          type: boolean
          description: >-
            Confirms the release when the company is set to warn about a trip
            missing its truck, trailer or driver. Has no effect when the company
            blocks the release instead.
          nullable: true
      additionalProperties: false
    Alvys.Models.Loads.LoadResponse:
      required:
        - CreatedAt
        - CreatedBy
        - CustomerId
        - CustomerType
        - Id
        - InvoiceAs
        - LoadNumber
        - LoadType
        - Notes
        - OrderNumber
        - References
        - Status
        - Stops
      type: object
      properties:
        Id:
          type: string
        LoadNumber:
          type: string
        OrderNumber:
          type: string
        PONumber:
          type: string
          nullable: true
        CustomerId:
          type: string
        CustomerName:
          type: string
          nullable: true
        CustomerNumber:
          type: string
          nullable: true
        Status:
          type: string
        LoadType:
          type: string
          deprecated: true
        ContractId:
          type: string
          nullable: true
        CustomerType:
          type: array
          items:
            type: string
        Stops:
          type: array
          items:
            $ref: '#/components/schemas/Alvys.Models.Trips.StopResponse'
        Fleet:
          allOf:
            - $ref: '#/components/schemas/FleetResponse'
          nullable: true
        InvoiceAs:
          type: string
        OfficeId:
          type: string
          nullable: true
        Linehaul:
          allOf:
            - $ref: '#/components/schemas/Alvys.Money'
          nullable: true
        FuelSurcharge:
          allOf:
            - $ref: '#/components/schemas/Alvys.Money'
          nullable: true
        CustomerAccessorials:
          allOf:
            - $ref: '#/components/schemas/Alvys.Money'
          nullable: true
        CustomerAccessorialsDetails:
          type: array
          items:
            $ref: >-
              #/components/schemas/Alvys.Models.Accessorials.CustomerAccessorialResponse
          nullable: true
        CustomerRate:
          allOf:
            - $ref: '#/components/schemas/Alvys.Money'
          nullable: true
        CustomerMileage:
          allOf:
            - $ref: '#/components/schemas/Alvys.Models.Loads.LoadResponseMileage'
          nullable: true
        InvoicedAmount:
          allOf:
            - $ref: '#/components/schemas/Alvys.Money'
          nullable: true
        Weight:
          allOf:
            - $ref: '#/components/schemas/Alvys.Weight'
          nullable: true
        Volume:
          allOf:
            - $ref: '#/components/schemas/Alvys.Volume'
          nullable: true
        ScheduledPickupAt:
          type: string
          format: date-time
          nullable: true
        ScheduledDeliveryAt:
          type: string
          format: date-time
          nullable: true
        PickedUpAt:
          type: string
          format: date-time
          nullable: true
        DeliveredAt:
          type: string
          format: date-time
          nullable: true
        InvoicedAt:
          type: string
          format: date-time
          nullable: true
        LastInvoiceSentAt:
          type: string
          format: date-time
          nullable: true
        Notes:
          type: array
          items:
            $ref: '#/components/schemas/Alvys.Models.Notes.NoteDto'
        CreatedAt:
          type: string
          format: date-time
        CreatedBy:
          type: string
        CancelledAt:
          type: string
          format: date-time
          nullable: true
        CancelledBy:
          type: string
          nullable: true
        References:
          type: array
          items:
            $ref: '#/components/schemas/Alvys.Models.References.ReferenceResponse'
        CustomerServiceRepId:
          type: string
          nullable: true
        CustomerSalesAgentId:
          type: string
          nullable: true
        CustomerSalesManagerId:
          type: string
          nullable: true
        CustomerLoadPlannerId:
          type: string
          nullable: true
        UpdatedAt:
          type: string
          format: date-time
          nullable: true
        UpdatedBy:
          type: string
          nullable: true
        CustomerAccountManagerId:
          type: string
          nullable: true
        PaidAt:
          type: string
          format: date-time
          nullable: true
        TotalPaid:
          allOf:
            - $ref: '#/components/schemas/Alvys.Money'
          nullable: true
        Payments:
          type: array
          items:
            $ref: '#/components/schemas/Alvys.Models.Loads.LoadResponsePaymentDto'
          nullable: true
        TenderId:
          type: string
          nullable: true
        IsDeleted:
          type: boolean
          nullable: true
        RequiredEquipment:
          type: array
          items:
            type: string
          nullable: true
        Origin:
          allOf:
            - $ref: '#/components/schemas/Alvys.Models.Loads.LoadEndpointAddress'
          description: >-
            Address of the stop a load's Origin or Destination was derived from
            (first pickup / last delivery), with the identity of the physical
            location at that stop.
          nullable: true
        Destination:
          allOf:
            - $ref: '#/components/schemas/Alvys.Models.Loads.LoadEndpointAddress'
          description: >-
            Address of the stop a load's Origin or Destination was derived from
            (first pickup / last delivery), with the identity of the physical
            location at that stop.
          nullable: true
      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: {}
    Alvys.Models.Trips.StopResponse:
      required:
        - $type
      type: object
      oneOf:
        - $ref: '#/components/schemas/Alvys.Models.Trips.AppointmentStopResponse'
        - $ref: '#/components/schemas/Alvys.Models.Trips.DeliveryWindowStopResponse'
        - $ref: '#/components/schemas/Alvys.Models.Trips.WaypointStopResponse'
      properties:
        $type:
          type: string
          description: Type discriminator for polymorphic serialization
      additionalProperties: false
      discriminator:
        propertyName: $type
        mapping:
          appointment: '#/components/schemas/Alvys.Models.Trips.AppointmentStopResponse'
          delivery_window: '#/components/schemas/Alvys.Models.Trips.DeliveryWindowStopResponse'
          waypoint: '#/components/schemas/Alvys.Models.Trips.WaypointStopResponse'
    FleetResponse:
      type: object
      properties:
        Id:
          type: string
          nullable: true
        Name:
          type: string
          nullable: true
        InvoiceNumberPrefix:
          type: string
          nullable: true
      additionalProperties: false
    Alvys.Money:
      required:
        - Amount
      type: object
      properties:
        Amount:
          type: number
          format: double
        Currency:
          type: integer
          format: int32
          nullable: true
      additionalProperties: false
    Alvys.Models.Accessorials.CustomerAccessorialResponse:
      required:
        - Id
        - Quantity
        - Rate
        - RateType
        - Total
        - Type
        - Uom
      type: object
      properties:
        Id:
          type: string
        Type:
          type: string
        Total:
          allOf:
            - $ref: '#/components/schemas/Alvys.Money'
        Rate:
          allOf:
            - $ref: '#/components/schemas/Alvys.Money'
        RateType:
          type: string
        Uom:
          type: string
        Quantity:
          type: number
          format: double
        IsPaid:
          type: boolean
          nullable: true
        CreatedAt:
          type: string
          format: date-time
          nullable: true
        CreatedBy:
          type: string
          nullable: true
        UpdatedAt:
          type: string
          format: date-time
          nullable: true
        UpdatedBy:
          type: string
          nullable: true
        ExternalId:
          type: string
          nullable: true
      additionalProperties: false
    Alvys.Models.Loads.LoadResponseMileage:
      required:
        - Distance
      type: object
      properties:
        Distance:
          allOf:
            - $ref: '#/components/schemas/Alvys.Distance'
        Source:
          type: string
          nullable: true
        ProfileId:
          type: string
          nullable: true
        ProfileName:
          type: string
          nullable: true
      additionalProperties: false
    Alvys.Weight:
      required:
        - UnitOfMeasure
        - Value
      type: object
      properties:
        Value:
          type: number
          format: double
        UnitOfMeasure:
          allOf:
            - $ref: '#/components/schemas/Alvys.WeightWeightUnits'
      additionalProperties: false
    Alvys.Volume:
      required:
        - UnitOfMeasure
        - Value
      type: object
      properties:
        Value:
          type: number
          format: double
        UnitOfMeasure:
          allOf:
            - $ref: '#/components/schemas/Alvys.VolumeVolumeUnits'
      additionalProperties: false
    Alvys.Models.Notes.NoteDto:
      required:
        - Description
        - id
        - NoteType
        - User
      type: object
      properties:
        id:
          type: string
        Description:
          type: string
        NoteType:
          type: string
        Time:
          type: string
          format: date-time
          nullable: true
        User:
          type: string
        UserId:
          type: string
          nullable: true
      additionalProperties: false
    Alvys.Models.References.ReferenceResponse:
      required:
        - Name
        - Value
      type: object
      properties:
        Id:
          type: string
          nullable: true
        ReferenceId:
          type: string
          nullable: true
        Name:
          type: string
        Value:
          type: string
        Type:
          type: string
          nullable: true
        Access:
          type: string
          nullable: true
        Origin:
          type: string
          nullable: true
      additionalProperties: false
    Alvys.Models.Loads.LoadResponsePaymentDto:
      required:
        - Amount
        - Id
      type: object
      properties:
        Id:
          type: string
        Amount:
          allOf:
            - $ref: '#/components/schemas/Alvys.Money'
        PaidAt:
          type: string
          format: date-time
          nullable: true
      additionalProperties: false
    Alvys.Models.Loads.LoadEndpointAddress:
      required:
        - City
        - State
        - Street
        - ZipCode
      type: object
      properties:
        Street:
          type: string
        City:
          type: string
        State:
          type: string
        ZipCode:
          type: string
        Country:
          type: string
          description: >-
            ISO 3166-1 alpha-2 country code where the recorded value is a
            recognized spelling of United States, Canada or Mexico; otherwise
            the country exactly as recorded, which for addresses created before
            this field existed may be any string. Omitted when no country is
            recorded; an absent Country must NOT be interpreted as US.
          nullable: true
        CompanyId:
          type: string
          description: >-
            Alvys identifier of the company at the load stop this field was
            derived from. Stable across address spelling changes for the same
            facility, so it can be used as a location key for reporting. Omitted
            when that stop has no company assigned. Read from the load's own
            stop record, which is normally but not guaranteeably the same record
            behind the corresponding entry in Stops[].
          nullable: true
        Coordinates:
          allOf:
            - $ref: '#/components/schemas/Alvys.Models.Coordinates'
          description: >-
            Latitude/longitude recorded for the address of the load stop this
            field was derived from. Omitted when that address has not been
            geocoded.
          nullable: true
      additionalProperties: false
      description: >-
        Address of the stop a load's Origin or Destination was derived from
        (first pickup / last delivery), with the identity of the physical
        location at that stop.
    Alvys.Models.Trips.AppointmentStopResponse:
      required:
        - AppointmentConfirmed
        - AppointmentRequested
        - Id
        - References
        - ScheduleType
        - StopType
      type: object
      properties:
        AppointmentRequested:
          type: boolean
        AppointmentConfirmed:
          type: boolean
        AppointmentDate:
          type: string
          format: date-time
          nullable: true
        ScheduleType:
          type: string
        LoadingType:
          type: string
          nullable: true
        Id:
          type: string
        Address:
          allOf:
            - $ref: '#/components/schemas/Alvys.Features.Locations.ShortAddress'
          nullable: true
        Coordinates:
          allOf:
            - $ref: '#/components/schemas/Alvys.Models.Coordinates'
          nullable: true
        Status:
          type: string
          nullable: true
        StopType:
          type: string
        ArrivedAt:
          type: string
          format: date-time
          nullable: true
        DepartedAt:
          type: string
          format: date-time
          nullable: true
        References:
          type: array
          items:
            $ref: '#/components/schemas/Alvys.Models.References.ReferenceResponse'
        CompanyId:
          type: string
          nullable: true
        CompanyNumber:
          type: string
          nullable: true
        CompanyName:
          type: string
          nullable: true
        Eta:
          allOf:
            - $ref: '#/components/schemas/Alvys.Models.Trips.EtaResponse'
          nullable: true
          description: >-
            Estimated time of arrival at this stop. Null when no estimate
            exists.
      additionalProperties: false
    Alvys.Models.Trips.DeliveryWindowStopResponse:
      required:
        - Id
        - References
        - ScheduleType
        - StopType
      type: object
      properties:
        StopWindow:
          allOf:
            - $ref: '#/components/schemas/Alvys.Models.Trips.DateTimeWindowDto'
          nullable: true
        ScheduleType:
          type: string
        LoadingType:
          type: string
          nullable: true
        Id:
          type: string
        Address:
          allOf:
            - $ref: '#/components/schemas/Alvys.Features.Locations.ShortAddress'
          nullable: true
        Coordinates:
          allOf:
            - $ref: '#/components/schemas/Alvys.Models.Coordinates'
          nullable: true
        Status:
          type: string
          nullable: true
        StopType:
          type: string
        ArrivedAt:
          type: string
          format: date-time
          nullable: true
        DepartedAt:
          type: string
          format: date-time
          nullable: true
        References:
          type: array
          items:
            $ref: '#/components/schemas/Alvys.Models.References.ReferenceResponse'
        CompanyId:
          type: string
          nullable: true
        CompanyNumber:
          type: string
          nullable: true
        CompanyName:
          type: string
          nullable: true
        Eta:
          allOf:
            - $ref: '#/components/schemas/Alvys.Models.Trips.EtaResponse'
          nullable: true
          description: >-
            Estimated time of arrival at this stop. Null when no estimate
            exists.
      additionalProperties: false
    Alvys.Models.Trips.WaypointStopResponse:
      required:
        - $type
        - Id
        - References
        - StopType
      type: object
      properties:
        StopWindow:
          allOf:
            - $ref: '#/components/schemas/Alvys.Models.Trips.DateTimeWindowDto'
          nullable: true
        Id:
          type: string
        Address:
          allOf:
            - $ref: '#/components/schemas/Alvys.Features.Locations.ShortAddress'
          nullable: true
        Coordinates:
          allOf:
            - $ref: '#/components/schemas/Alvys.Models.Coordinates'
          nullable: true
        Status:
          type: string
          nullable: true
        StopType:
          type: string
        ArrivedAt:
          type: string
          format: date-time
          nullable: true
        DepartedAt:
          type: string
          format: date-time
          nullable: true
        References:
          type: array
          items:
            $ref: '#/components/schemas/Alvys.Models.References.ReferenceResponse'
        CompanyId:
          type: string
          nullable: true
        CompanyNumber:
          type: string
          nullable: true
        CompanyName:
          type: string
          nullable: true
        $type:
          enum:
            - waypoint
          type: string
          description: Type discriminator for polymorphic serialization
        Eta:
          allOf:
            - $ref: '#/components/schemas/Alvys.Models.Trips.EtaResponse'
          nullable: true
          description: >-
            Estimated time of arrival at this stop. Null when no estimate
            exists.
      additionalProperties: false
    Alvys.Distance:
      required:
        - UnitOfMeasure
        - Value
      type: object
      properties:
        Value:
          type: number
          format: double
        UnitOfMeasure:
          allOf:
            - $ref: '#/components/schemas/Alvys.DistanceDistanceUnits'
      additionalProperties: false
    Alvys.WeightWeightUnits:
      enum:
        - Kilograms
        - Grams
        - Pounds
        - Ounces
        - Tons
        - CWT
        - MetricTon
        - LongTon
      type: string
    Alvys.VolumeVolumeUnits:
      enum:
        - Gallons
        - Liters
        - Bushels
        - CubicFoot
        - CubicMeter
        - Quarts
      type: string
    Alvys.Models.Coordinates:
      required:
        - Latitude
        - Longitude
      type: object
      properties:
        Latitude:
          type: string
        Longitude:
          type: string
      additionalProperties: false
    Alvys.Features.Locations.ShortAddress:
      required:
        - City
        - State
        - Street
        - ZipCode
      type: object
      properties:
        Street:
          type: string
        City:
          type: string
        State:
          type: string
        ZipCode:
          type: string
        Country:
          type: string
          description: >-
            ISO 3166-1 alpha-2 country code where the recorded value is a
            recognized spelling of United States, Canada or Mexico; otherwise
            the country exactly as recorded, which for addresses created before
            this field existed may be any string. Omitted when no country is
            recorded; an absent Country must NOT be interpreted as US.
          nullable: true
      additionalProperties: false
    Alvys.Models.Trips.EtaResponse:
      type: object
      properties:
        Planned:
          type: string
          format: date-time
          nullable: true
          description: >-
            ETA from route planning, computed when the trip is planned or
            re-planned. Null when the trip has not been route-planned.
        Live:
          type: string
          format: date-time
          nullable: true
          description: >-
            ETA recalculated from the latest vehicle location while the trip is
            in transit. Accounts for the driver's remaining hours of service
            when the location source supplies them. Null until location updates
            start arriving.
        Manual:
          type: string
          format: date-time
          nullable: true
          description: >-
            ETA entered by a user or integration, or defaulted from the stop
            date or appointment. Null when never set.
      additionalProperties: false
      description: >-
        Estimated time of arrival at a stop. Planned and Live are populated only
        for tenants with HOS-aware ETAs (Growth or Scale package, or the Samsara
        Premium add-on); Manual is available on every plan.
    Alvys.Models.Trips.DateTimeWindowDto:
      required:
        - Begin
        - End
      type: object
      properties:
        Begin:
          type: string
          format: date-time
        End:
          type: string
          format: date-time
      additionalProperties: false
    Alvys.DistanceDistanceUnits:
      enum:
        - Miles
        - Kilometers
        - Meters
        - Feet
      type: string
  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>`.

````