Comparendos de la organización
GET
/api/v1/infractions
const url = 'https://notiauto.co/api/v1/infractions?status=active&per_page=20';const options = {method: 'GET', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Sección titulada «Authorizations»Parameters
Sección titulada «Parameters»Query Parameters
Sección titulada «Query Parameters»status
string
Example
activeactive excluye los pagados, all no filtra, o un estado exacto como Pagado o Pendiente.
per_page
integer
Responses
Sección titulada «Responses»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 }}