Skip to main content

GET Vehicles

This endpoint allows you to retrieve a paginated and filtered list of vehicles from the Sync platform. You can filter by multiple criteria including identification fields, vehicle details, and processing status for various resources.

This endpoint retrieves vehicles from the Sync platform with support for advanced filtering, pagination, and sorting capabilities.

Request

HTTP request

GET https://api-sync-resser.azurewebsites.net/api/vehicles

Parameters

The following table lists the parameters that this query supports. All parameters are optional query parameters unless specified otherwise.

Vehicle Identification

ParameterTypeMax LengthDescription
customIdstring50Vehicle's customId
platestring15Vehicle's plate
vinstring17Vehicle Identification Number (VIN)

Vehicle Details

ParameterTypeMax LengthDescription
stateIdinteger-Filter by state/region ID. For a complete list of valid IDs, refer to the Available States reference.
assetStatusIdinteger-Filter by vehicle status ID. For a complete list of valid IDs, refer to the Vehicle Statuses reference.
rfcNamestring300RFC name of the vehicle owner
taxIdentifierstring128Tax identifier of the vehicle owner
lessorNamestring300Name of the lessor/leasing company
brandNamestring150Vehicle brand/make
modelNamestring150Vehicle model
countrystring150Country of registration
classstring150Vehicle class
typestring150Vehicle type
doorsinteger-Number of doors (0-30)
variationstring150Vehicle variation
cilindersstring150Number of cylinders
axesstring150Number of axes
vehicleColorstring150Vehicle color
versionstring50Vehicle version
assemblyPlacestring150Place where vehicle was assembled
supplementaryDatastring150Additional supplementary data
registrationInstitutionstring150Registration institution
plateEntitystring50Entity/state of plate registration
registrationSheetstring150Registration sheet number
observationsstring150General observations about the vehicle
ownerNamestring150Name of the vehicle owner
engineNumberstring50Engine number
yearinteger-Manufacturing year (1950-current year+1)

Resource Status Filters

Filter vehicles by their processing status in different Sync resources. Each status field accepts integer values.

ParameterTypeDescription
stolenStatusintegerStolen vehicle verification status
tenenciaStatusintegerProperty tax (Tenencia) status
ticketStatusintegerTraffic tickets status
insuranceStatusintegerInsurance verification status
cardStatusintegerCirculation card status
miscStatusintegerMiscellaneous status
repuveStatusintegerREPUVE registry status
ticketsCDMXStatusintegerMexico City tickets status
ticketsEnvStatusintegerEnvironmental tickets status
refrendoStatusintegerLicense renewal (Refrendo) status
inspectionStatusintegerVehicle inspection status
violationStatusintegerTraffic violations status
plateStatusintegerLicense plate status
Status Values

Vehicle processing uses explicit status IDs to reflect their current state. Please refer to the Available Statuses reference for the complete list of status meanings and definitions.

Pagination and Sorting

ParameterTypeRequiredDefaultDescription
pageintegerNo1Page number (must be ≥ 1)
pageSizeintegerNo10Results per page (1-100)
sortOrderintegerNo0Sort order: 0 = Ascending, 1 = Descending
sortBystringNocustomIdField to sort by. Valid values: customId, plate, vin, rfcName, lessorName, taxIdentifier, brandName, modelName, country, class, type, doors, variation, cilinders, axes, vehicleColor, version, assemblyPlace, registrationInstitution, plateEntity, registrationSheet, ownerName, engineNumber, year

Response

If successful, the method returns a paginated list of matching vehicles:

{
"data": [
{
"customId": "306705",
"vin": "3BKHLN9X0FF306705",
"plate": "RJ41853",
"stateId": 19,
"stateName": "Nuevo León",
"brandName": "KIA",
"modelName": "RIO",
"year": 2019,
"assetStatusId": 1
// ... other detailed vehicle fields
}
],
"pagination": {
"currentPage": 1,
"pageSize": 10,
"totalCount": 1,
"totalPages": 1,
"hasPrevious": false,
"hasNext": false,
"sortBy": "customId",
"sortOrder": "asc"
}
}
PropertyTypeDescription
dataarrayArray of vehicle objects
paginationobjectPagination and sorting metadata

Pagination Metadata

The following fields are returned inside the pagination object in the API response to help you navigate through the records.

FieldTypeDescription
currentPageintegerCurrent page number
pageSizeintegerNumber of results per page
totalCountintegerTotal number of records matching the filters
totalPagesintegerTotal number of available pages
hasPreviousbooleanIndicates whether a previous page exists
hasNextbooleanIndicates whether a next page exists
sortBystringField used to sort results
sortOrderstringSort direction (asc or desc)

Vehicle Object

The following fields are returned for each vehicle inside the data array.

FieldTypeDescription
customIdstringVehicle custom identifier
vinstringVehicle Identification Number (VIN)
platestringVehicle plate number
stateIdintegerState/region identifier. See Available States reference.
stateNamestringState/region name
rfcNamestringRFC name associated with the vehicle
taxIdentifierstringTax identifier associated with the vehicle
lessorNamestringName of the lessor/leasing company
brandNamestringVehicle brand/make
modelNamestringVehicle model
yearintegerManufacturing year
assetStatusIdintegerVehicle asset status identifier. See Vehicle Statuses reference.
axesstringNumber of axes
classstringVehicle class
typestringVehicle type
doorsintegerNumber of doors
countrystringCountry of registration
variationstringVehicle variation
cilindersstringEngine cylinder configuration
vehicleColorstringVehicle color
versionstringVehicle version
engineNumberstringEngine number
plateEntitystringState/entity where the plate was registered
plateDatestringVehicle plate registration date in ISO 8601 format
assemblyPlacestringPlace where the vehicle was assembled
observationsstringGeneral observations related to the vehicle
registrationDatedatetimeVehicle registration date
registrationInstitutionstringRegistration institution
registrationSheetstringRegistration sheet/reference number
supplementaryDatastringAdditional supplementary information
ownerNamestringVehicle owner name
tagsarrayCollection of tags associated with the vehicle
statusSummaryobjectSummary object containing the latest processing statuses for different vehicle validations and services

Status Summary Object

Status Summary Freshness

The values returned inside the statusSummary object are cached summary statuses used by the Sync platform for quick visualization and filtering purposes.

These statuses are only updated when a vehicle is processed directly through the Sync platform. Because of this, the values may not always reflect the latest available vehicle information.

If a vehicle was processed externally, imported manually, or contains historical records that have not been synchronized through the Sync processing flow, the statusSummary values may be outdated or incomplete.

To retrieve the latest real-time vehicle information (tickets, violations, tenencia, inspections, REPUVE, etc.), please consult the corresponding scraping endpoints available in the Scraped Information category.

The statusSummary object contains summarized processing statuses for different services and validations.

Status Values

Vehicle processing uses explicit status IDs to represent the current processing state of each service or validation.

Please refer to the Available Statuses reference for the complete list of status definitions and meanings.

FieldTypeDescription
cardStatusintegerVehicle card/document status
insuranceStatusintegerInsurance validation status
miscStatusintegerMiscellaneous validation status
refrendoStatusintegerRefrendo/payment validation status
stolenStatusintegerStolen vehicle validation status
repuveStatusintegerREPUVE validation status
tenenciaStatusintegerTenencia validation status
ticketStatusintegerTraffic tickets validation status
ticketsCDMXStatusintegerMexico City traffic tickets validation status
ticketsEnvStatusintegerEnvironmental tickets validation status
inspectionStatusintegerVehicle inspection status
violationStatusintegerViolations validation status
plateStatusintegerPlate validation status

Errors

The following table provides a list of potential error messages that the API may return in response to a call to this method. For more detailed information, please refer to the error message documentation.

Error TypeError DetailDescription
badRequest (400)BadRequest- Invalid parameter values (exceeds max length, invalid type)
- page must be ≥ 1
- pageSize must be between 1-100
- sortOrder must be 0 or 1
- year must be between 1950 and current year+1
- doors must be between 0-30
- Invalid sortBy value
- Invalid status field value (must be a valid status ID from the statuses reference).
- Invalid assetStatusId value (must be a valid status ID from the vehicle status reference).
unauthorized (401)UnauthorizedThe requester is not allowed to use this request.
forbidden (403)ForbiddenRequester does not have permission to perform this operation.
Notes
  • All string parameters are trimmed automatically
  • Values passed to sortBy are case-insensitive
  • Empty or null parameters are ignored
  • Multiple filters can be combined to narrow down results
  • Default assetStatusId is 1 (Active) if not specified
  • Status values of -1 typically indicate "unprocessed" state in that resource