This endpoint allows you to get detailed information about a specific maintenance record using its unique ID. The data retrieved includes the maintenance details such as description, amount, repair shop information, and reminders.

The GET Maintenance by ID API endpoint allows you to retrieve detailed information about a specific maintenance record using its unique ID. This endpoint provides comprehensive data about the maintenance record, facilitating effective asset management and tracking within the Alvys system.

Request Parameters

The following parameters are required in the URL path:

ParameterTypeRequiredDescription
versionStringYesThe API version to use.
idStringYesThe unique identifier of the maintenance record.

Example CURL request

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

Replace {version} with the API version number, {id} with the actual maintenance ID, and YOUR_ACCESS_TOKEN with your actual Bearer token:

curl --location 'https://integrations.alvys.com/api/p/v1/maintenance/123456789a-00b0-00ae-0000-0e01234567e6f' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...'

Response Parameters

The following table lists the parameters included in the response for maintenance-related requests:

ParameterTypeRequiredDescription
idStringYesThe unique identifier of the maintenance record.
poStringNoThe purchase order number associated with the maintenance.
referenceStringNoA reference string for the maintenance record.
relatedAssetObjectNoDetails about the related asset for the maintenance.
relatedAsset.assetIdStringNoThe unique identifier of the asset.
relatedAsset.assetNumberStringNoThe asset number.
relatedAsset.assetTypeStringNoThe type of asset (e.g., Truck, Trailer).
categoryObjectNoThe category of the maintenance work.
category.idStringNoThe unique identifier of the category.
category.nameStringNoThe name of the category.
descriptionStringNoA description of the maintenance work.
commentsStringNoAdditional comments or notes about the maintenance.
amountObjectNoThe total amount for the maintenance work.
amount.amountNumberNoThe amount value.
amount.currencyStringNoThe currency of the amount.
repairShopObjectNoInformation about the repair shop.
repairShop.idStringNoThe unique identifier of the repair shop.
repairShop.nameStringNoThe name of the repair shop.
remindersArrayNoA list of reminders associated with the maintenance.
reminders.idStringNoThe unique identifier of the reminder.
reminders.dueDateString (Date-Time)NoThe due date for the reminder.
createdAtString (Date-Time)YesThe date and time when the maintenance record was created.
createdByStringNoThe user who created the maintenance record.
modifiedAtString (Date-Time)NoThe date and time when the maintenance record was last modified.
modifiedByStringNoThe user who last modified the maintenance record.

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 providing the driver ID in the URL path. As you fill out the 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.

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