/api/p/v{version}/loads

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

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.
customerNumberStringNoThe customer number associated with the load.
statusStringYesOne of the following: In Review, Open, Quoted, Reserved, Covered, Dispatched, In Transit, Delivered, TONU, Released, Queued, Invoiced, Financed, Completed, Paid, Cancelled.
tenderIdStringNoThe identifier of the inbound EDI tender that created this load. null if the load was created manually or through a non-tender channel.
contractIdStringNoOptional Customer Contract ID.
customerTypeList <String>YesThe type of customer this load is associated with.
stopsArray of ObjectsYesList of stops associated with the load.
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.
officeIdStringNoThis value corresponds to the internal Office ID associated with the 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.
lastInvoiceSentAtString (DateTime)NoThe timestamp of the most recent successful submission of an invoice from the Load Details page.
notesArray of ObjectsYesList of notes associated with the load.
createdAtString (DateTime)YesThe date and time when the load was created.
createdByStringYesThe user who created the load.
cancelledAtString (DateTime)NoThe date and time when the load was cancelled.
cancelledByStringNoThe user who cancelled the load.
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.
customerServiceRepIdStringNoThe unique identifier of the Customer Service Representative assigned to the load.
customerSalesAgentIdStringNoThe unique identifier of the Customer Sales Agent assigned to the load.
customerSalesManagerIdStringNoThe unique identifier of the Customer Sales Manager assigned to the load.
customerLoadPlannerIdStringNoThe unique identifier of the Customer Load Planner assigned to the load.
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.
paidAtString (DateTime)NoTimestamp when a customer payment was recorded against this load.
totalPaidObjectNoTotal amount paid by the customer to date.
totalPaid.amountNumberNoThe numeric total amount paid by the customer to date.
totalPaid.currencyStringNoThe currency of the total paid amount.
paymentsArray of ObjectsNoArray of individual customer payment records.
payments[].idStringNoThe unique identifier of the payment record.
payments[].amount.amountNumberNoThe numeric amount of the payment.
payments[].amount.currencyStringNoThe currency of the payment amount.
payments[].paidAtString (DateTime)NoThe date and time when the payment was recorded.
tenderIdStringNoThe identifier of the inbound EDI tender that created this load. null if the load was created manually or through a non-tender channel.
isDeletedBooleanNoIndicates whether the load is deleted.
requiredEquipmentList <String>NoThe required equipment for this load.
loadTypeStringNoThe LoadType field indicates whether a load is "Revenue" or "Non-Revenue".
customerAccessorialsDetailsArray of ObjectsNoList of accessorial charges for the customer on the load.
customerAccessorialsDetails[].idStringNoUnique ID of the accessorial.
customerAccessorialsDetails[].typeStringNoType of accessorial (e.g., Detention, Layover, Fuel Surcharge).
customerAccessorialsDetails[].total.amountNumberNoTotal charge amount of the accessorial.
customerAccessorialsDetails[].total.currencyStringNoCurrency of the total amount (e.g., USD).
customerAccessorialsDetails[].rate.amountNumberNoUnit rate applied to the accessorial.
customerAccessorialsDetails[].rate.currencyStringNoCurrency of the unit rate.
customerAccessorialsDetails[].rateTypeStringNoHow the rate is calculated (e.g., Flat, PerHour, PerMile).
customerAccessorialsDetails[].uomStringNoUnit of measure (e.g., Hour, Mile, Stop).
customerAccessorialsDetails[].quantityNumberNoQuantity multiplied by the rate to compute the total.
customerAccessorialsDetails[].isPaidBooleanNoIf present, indicates whether the accessorial has been paid.
customerAccessorialsDetails[].stopIdStringNoID of the related stop, if the accessorial is stop-specific (e.g., Detention).
customerAccessorialsDetails[].createdAtString (DateTime)NoTimestamp when the accessorial was created (UTC).
customerAccessorialsDetails[].updatedAtString (DateTime)NoTimestamp when the accessorial was last updated (UTC).

404 Not Found

404 Not Found is returned in two cases:

  1. No load with the given ID exists for your tenant.
  2. A load record exists but has no associated trips (abandoned creation). These loads are treated as non-existent by the API.

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.

Path Params
string
required
Defaults to 2.0
Query Params
string
string
string
Headers
string
enum
Defaults to application/json
Allowed:
Responses

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
application/problem+json