Ir al contenido

Comparendos de la organización

GET
/api/v1/infractions
curl --request GET \
--url 'https://notiauto.co/api/v1/infractions?status=active&per_page=20' \
--header 'X-API-Key: <X-API-Key>'

Requiere el scope infractions.read. Incluye comparendos asociados por vehículo o por conductor. Los elementos vienen en data.data.

status
string
Example
active

active excluye los pagados, all no filtra, o un estado exacto como Pagado o Pendiente.

per_page
integer
default: 20

Listado paginado, más recientes primero

Media typeapplication/json
object
success
boolean
data
object
data
Array<object>
object
id
integer
numero_comparendo
string
placa
string
infractor
string
codigo_infraccion
string
descripcion_infraccion
string
value
number format: float
estado_comparendo
string
is_pay
boolean
meta
PaginationMeta
object
current_page

Top-level OpenAPI document: info, servers, the API-key scheme, shared schemas and the endpoints that live in routes/api.php as closures rather than on a controller.

Everything here describes what the code actually returns, including the paginator-inside-data shape of the list endpoints — that is the published contract and consumers depend on it.

integer
total
integer
per_page
integer
last_page
integer
Example
{
"success": true,
"data": {
"data": [
{
"id": 55,
"numero_comparendo": "11001000000042962607",
"placa": "ABC123",
"infractor": "ANA GOMEZ",
"codigo_infraccion": "C29",
"value": 572600,
"estado_comparendo": "Pendiente",
"is_pay": false
}
]
},
"meta": {
"current_page": 1,
"total": 42,
"per_page": 20,
"last_page": 3
}
}