How Versioning Works
Alvys uses a versioning system to manage changes in our API, especially when those changes are not backward-compatible. This approach ensures that your applications can continue to operate reliably, even as we introduce new features and improvements. Our versions follow a semantic versioning format, marked as v{major}.{minor}.{patch} (e.g., v1.2.0). Below are the key highlights of our versioning strategy:- When new endpoints are added to the API, they are accessible by all existing API versions by default. This ensures that new features can be adopted without requiring immediate changes to version numbers.
- Getting an access token does not select a version. You choose the version in the request path.
Current API Versions
The reference page for each endpoint shows the version to use in its path.v2.0: Loads endpoints (including load notes, documents, and references), trip check calls, andGET /references.v1.0: all other endpoints, such as drivers, trips, trip references, stop references, trucks, trailers, customers, carriers, and invoices.- Example:
POST /api/p/v2.0/loads/searchandGET /api/p/v1.0/drivers
Use the version shown on the reference page for the endpoint you are calling.
Understanding Semantic Versioning
- Major Version (for example
v1): Introduced for backward-incompatible changes. Examples include removing or renaming fields, changing response structures, or altering existing functionality that could break existing integrations. - Minor Version (
v1.1,v1.2): Used for backward-compatible feature additions or enhancements that do not break existing functionality. Examples include adding new optional parameters or endpoints. - Patch Version (
v1.0.1,v1.0.2): Issued for backward-compatible bug fixes or minor changes that do not affect API functionality.
Changing API Versions
You select the version with the version segment in the request path:/api/p/v{version}/{resource}. Every request must include it.
Example URL format
- Loads search:
https://integrations.alvys.com/api/p/v2.0/loads/search - Drivers:
https://integrations.alvys.com/api/p/v1.0/drivers
Backwards Incompatible Changes
Alvys uses major version changes for the API for any of the following types of changes:- Adding required request body fields, request body field values, or query parameters.
- Removing allowed request body fields, request body field values, query parameters, or query parameter values.
- Reducing documented rate limits per endpoint, per token, or per organization.
- Renaming request/response body fields, request body field values, query parameters, or query parameter values.
- Renaming or removing valid values for enumerated fields (e.g., different options for types of safety events).
- Changing the data type of a field (e.g., from string to int).
- Changing the nested JSON structure of requests/responses.
- Changing the expected payload of a response (e.g., returning active and inactive drivers versus just active).
- Deprecating access to certain endpoints.
Backwards Compatible Changes
Alvys does not version the API for the following types of changes. This list is not exhaustive and explains the most common non-breaking changes:- Changing the error message of an API endpoint’s error.
- Changing the structure of a field’s string value returned in a response body.
- Introducing additional optional (nullable) structure fields.