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

The Get Carrier by ID endpoint retrieves detailed information for a specific carrier or subsidiary using its unique ID. This is helpful when you need a complete view of a single entity, including address, MC and DOT numbers, insurance information, and current status.


Request Parameters

The following parameter is required in the URL path:

ParameterTypeRequiredDescription
versionStringYesThe version of the API being requested.
idStringYesThe unique identifier of the carrier.

Example CURL Request

curl --location 'https://integrations.alvys.com/api/p/v{version}/carriers/{id}' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Replace {version} with the API version number, {Id} with the actual carrier ID, and YOUR_ACCESS_TOKEN with your actual Bearer token.

Response Parameters

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

ParameterTypeDescription
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

    {
      "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!