Trucks
Search trucks
Search trucks with paginated POST filters — truck number, make and model, ownership, home terminal, current driver, and active or inactive status.
POST
Search trucks
This endpoint provides detailed information about each truck that matches the search criteria, facilitating efficient management and retrieval of truck records.
Parameter Type Required Description
Page Integer Yes The page number of the results to retrieve. PageSize Integer Yes The number of results per page.
PageSize must be greater than 0. Status Array of Strings No A list of truck statuses to filter by. TruckNumber String Conditionally The truck number to search for. This field is required if the other conditionally required fields are left empty. FleetName String Conditionally The fleet name to filter by. This field is required if the other conditionally required fields are left empty. VinNumber String Conditionally The Vehicle Identification Number (VIN) to search for. This field is required if the other conditionally required fields are left empty. IsActive Boolean Conditionally Filter by active status (true for active, false for inactive). This field is required if the other conditionally required fields are left empty. RegisteredName String Conditionally The registered name of the truck to search for. This field is required if the other conditionally required fields are left empty.

Request Parameters
The following parameter is required in the URL path:Request Body
The request body must include the following parameters to filter the search results.<Table>
PageSize must be greater than 0.
</Table>
Example CURL request
Use the Current API version number and make sure to replace the Authorization header value with your actual Bearer token for the request:Response Parameters
The following table lists the parameters included in the response for truck-related requests.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 without any parameters. The Curl command on the right side of the page will be automatically updated. Alternatively, you can directly edit the Curl command. Make sure to authorize yourself before trying a request.Authorizations
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>.
Path Parameters
API version (e.g., 1.0)
Example:
"1.0"