/api/p/v{version}/carriers/search

The Search Carriers API endpoint allows you to search for carriers and subsidiaries within the Alvys system based on specific filters.

The Search Carriers API endpoint helps users retrieve carrier or subsidiary details efficiently by filtering through available data using IDs, MC numbers, DOT numbers, and Status. This functionality provides quick access to essential carrier information without needing to query the full dataset.


Request Parameters

The following parameter is required in the URL path:

ParameterTypeRequiredDescription
versionStringYesThe version of the API being requested.

Request Body

The request body must include the following parameters:

ParameterTypeRequiredDescription
pageNumberYesThe page number for pagination (starts from 0).
pageSizeNumberYesThe number of results per page. PageSize must be greater than 0.
statusArray of StringsConditionallyFilter by carrier or subsidiary status (e.g., Pending, Active, Packet Completed). This field is required if the other conditionally required fields are left empty.
idsArray of Strings (UUID)ConditionallyFilter by specific carrier or subsidiary IDs. This field is required if the other conditionally required fields are left empty.
mcNumbersArray of StringsConditionallyFilter by MC (Motor Carrier) numbers. This field is required if the other conditionally required fields are left empty.
dotNumbersArray of StringsConditionallyFilter by USDOT numbers. This field is required if the other conditionally required fields are left empty.

At least one filter field (status, ids, mcNumbers, dotNumbers) must be provided along with pagination fields.

Example CURL Request

Use the current API version number and replace the Authorization header value with your actual Bearer token:

curl --location 'https://integrations.alvys.com/api/p/v1/carriers/search' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ....' \
--header 'Content-Type: application/json' \
--data-raw '{
  "page": 0,
  "pageSize": 100,
  "status": ["Active", "Pending"],
  "ids": ["2e17c4d3-202d-4f27-b2fa-711c57435c5b"],
  "mcNumbers": ["1269221"],
  "dotNumbers": ["4204692"]
}'

Response Parameters

The response contains a list of carriers or subsidiaries matching the search criteria, each represented by the following parameters:

ParameterTypeDescription
pageNumberThe current page number.
pageSizeNumberThe number of items per page.
totalNumberThe total number of matching items.
idString (UUID)The unique identifier of the carrier or subsidiary.
nameStringThe name of the carrier or subsidiary.
addressObjectThe address details (Street, City, State, ZipCode).
address.streetStringThe street of the carrier’s address.
address.cityStringThe city of the carrier’s address.
address.stateStringThe state of the carrier’s address.
address.zipCodeStringThe zip code of the carrier’s address.
mcNumStringThe MC (Motor Carrier) number.
usDotNumStringThe USDOT number.
typeStringType of the entity (e.g., Carrier, Subsidiary).
statusStringCurrent status of the carrier or subsidiary (e.g., Active, Pending).
createdAtString (Date-Time)The creation date of the carrier/subsidiary record.
insuranceInfoArray of ObjectsA list of insurance policies associated with the carrier.
insuranceInfo.typeStringThe type of insurance (e.g., Auto, Cargo, General, Workers Compensation).
insuranceInfo.policyNumberStringThe insurance policy number.
insuranceInfo.expirationDateString (Date-Time)The expiration date of the insurance policy.
insuranceInfo.amountNumberThe coverage amount of the insurance policy.
insuranceInfo.agentObjectInformation about the insurance agent.
insuranceInfo.agent.companyStringThe name of the agent’s company.
insuranceInfo.agent.nameStringThe name of the insurance agent.
insuranceInfo.notesStringNotes associated with the insurance policy.

Example Response

{
  "page": 0,
  "pageSize": 100,
  "total": 1,
  "items": [
    {
      "id": "6c7f5ee3-f44c-4c19-92bf-89cfbd5d87a0",
      "name": "EVENT PRO LOGISTICS",
      "address": {
        "street": "3749 E 150 S",
        "city": "TIPTON",
        "state": "IN",
        "zipCode": "46072"
      },
      "mcNum": "63504",
      "usDotNum": "4204692",
      "type": "Subsidiary",
      "status": "Active",
      "createdAt": "2024-04-02T08:42:31.269118+00:00"
       "insuranceInfo": [
        {
          "type": "Auto",
          "policyNumber": "2445",
          "expirationDate": "2030-11-14T00:00:00+00:00",
          "amount": 0.0,
          "agent": {
            "company": "PG Company",
            "name": ""
          },
          "notes": ""
        }
      ]
    }
  ]
}

Rate Limits

All endpoints are subject to rate limits to protect the API from traffic spikes. For detailed information on rate limits, please refer to the Rate Limits section.

This page is interactive, allowing you to try a request by completing the fields for the parameters below. As you fill out the parameters, the CURL command on the right side of the page will be automatically updated. Alternatively, you can fork our Public API Postman Collection directly. Make sure to authorize yourself before trying a request.

Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!