The GET Loads API endpoint allows you to retrieve a comprehensive list of loads within the Alvys system. This endpoint provides detailed information about each load, facilitating effective load management and tracking.

The endpoint for retrieving loads requires specifying the API version in the URL path. Including the version number ensures that your application interacts with the correct version of the API, providing stability and compatibility as the API evolves. For more information on how versioning works and how to include it in your requests, please refer to the Versioning page.

Request Parameters

The version is required in the PATH parameters. The following parameters can be added as QUERY parameters to filter the results:

ParameterTypeRequiredDescription
versionStringStringThe API version to interact with.
idStringConditionallyThe unique Alvys identifier of the load. This field is required if the other conditionally required fields are left empty.
loadNumberStringConditionallyHuman-readable load number. This field is required if the other conditionally required fields are left empty.
orderNumberStringConditionallyAn optional external order number. This field is required if the other conditionally required fields are left empty.

Example CURL request

Example using Load ID:

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

Example using Load Number:

curl --location 'https://integrations.alvys.com/api/p/v{version}/loads?loadNumber={loadNumber}' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Example using Order Number:

curl --location 'https://integrations.alvys.com/api/p/v{version}/loads?orderNumber={orderNumber}' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Replace {version} with the API version number, {loadId}, {loadNumber}, and {orderNumber} with the actual values, and YOUR_ACCESS_TOKEN with your actual Bearer token:

Using Load ID:

curl --location 'https://integrations.alvys.com/api/p/v1/loads?id=12345678964a744d5bd543647e6106f52' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ...'

Using Load Number:

curl --location 'https://integrations.alvys.com/api/p/v1/loads?loadNumber=123456789' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ...'

Using Order Number:

curl --location 'https://integrations.alvys.com/api/p/v1/loads?orderNumber=GENEIC123456789' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ...'

Response Parameters

The following table lists the parameters included in the response for load-related requests.

ParameterTypeRequiredDescription
idStringYesThe unique identifier of the load.
loadNumberStringYesHuman-readable load number, unique by subsidiary.
orderNumberStringNoAn optional external order number.
poNumberStringNoAn optional external Purchase Order number.
customerIdStringYesThe internal Customer ID for the load.
customerNameStringNoNormalized customer name for reporting purposes; can be null for some historical data.
statusStringYesOne of the following: In Review, Open, Quoted, Reserved, Covered, Dispatched, In Transit, Delivered, TONU, Released, Queued, Invoiced, Financed, Completed, Paid, Cancelled.
contractIdStringNoOptional Customer Contract ID.
customerTypeListYesThe type of customer this load is associated with.
fleetObjectNoInformation about the fleet associated with the load.
fleet.idStringNoThe unique identifier of the fleet.
fleet.nameStringNoThe name of the fleet.
fleet.invoiceNumberPrefixStringNoThe invoice number prefix used by the fleet.
invoiceAsStringYesThe subsidiary or company information used when invoicing this load.
linehaulObjectNoThe cost of transporting the load, excluding additional fees such as fuel surcharges or accessorials.
linehaul.amountNumberNoThe numeric value of the linehaul charge.
linehaul.currencyStringNoThe currency of the linehaul charge.
fuelSurchargeObjectNoThe additional charge applied to cover fluctuating fuel costs.
fuelSurcharge.amountNumberNoThe numeric value of the fuel surcharge.
fuelSurcharge.currencyStringNoThe currency of the fuel surcharge.
customerAccessorialsObjectNoAdditional charges beyond the base rate and fuel surcharge, such as detention or lumper fees.
customerAccessorials.amountNumberNoThe numeric value of the accessorial charges.
customerAccessorials.currencyStringNoThe currency of the accessorial charges.
customerRateObjectNoInformation about the rate charged to the customer for the load.
customerRate.amountNumberNoThe numeric amount of the customer rate, which includes all applicable customer accessorials like Linehaul (LH) + Fuel Surcharge (FSC) + Accessorials (ACC).
customerRate.currencyStringNoThe currency of the customer rate.
customerMileageObjectNoInformation about the mileage associated with the load.
customerMileage.distanceObjectNoInformation about the distance details.
customerMileage.distance.valueNumberNoThe numeric value of the distance.
customerMileage.distance.unitOfMeasureStringNoThe unit of measure for the distance, e.g., Miles.
customerMileage.sourceStringNoThe source of the mileage data.
customerMileage.profileIdStringNoThe profile ID used for the mileage data.
customerMileage.profileNameStringNoThe profile name used for the mileage data.
invoicedAmountObjectNoInformation about the total amount invoiced for the load.
invoicedAmount.amountNumberNoThe numeric amount invoiced.
invoicedAmount.currencyStringNoThe currency of the invoiced amount.
weightObjectNoInformation about the weight of the load.
weight.valueNumberNoThe numeric value of the weight.
weight.unitOfMeasureStringNoThe unit of measure for the weight, e.g., Kilograms.
volumeObjectNoInformation about the volume of the load.
volume.valueNumberNoThe numeric value of the volume.
volume.unitOfMeasureStringNoThe unit of measure for the volume, e.g., Gallons.
scheduledPickupAtStringNoScheduled pick-up date and time.
scheduledDeliveryAtStringNoScheduled delivery date and time.
pickedUpAtStringNoActual pick-up time, always in UTC.
deliveredAtStringNoActual delivery time, always in UTC.
invoicedAtStringNoDate and time when the first invoice was generated.
referencesObjectNoInformation about references associated with the load.
references.idStringNoThe unique identifier of the reference.
references.nameStringNoThe name of the reference.
references.valueStringNoThe value of the reference.
references.typeStringNoThe data type of the reference, e.g., Text, Date, Bool, or List.
references.accessStringNoThe access level of the reference, e.g., Internal or Public.
customerAccountManagerIdStringNoThe unique identifier of the Customer Account Manager assigned to the load.
updatedAtStringNoThe date and time when the load was last updated.
updatedByStringNoThe user who last updated the load.

Example Response

On the right side, you can see examples of different error codes by clicking "Example" and selecting the response code.

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!