> ## Documentation Index
> Fetch the complete documentation index at: https://tech.sedierp.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Combustibles de vehículos

El servicio permite a los usuarios consultar el listado de combustibles de vehículos en línea en formato JSON.

El método de solicitud es POST y se requiere un encabezado "Authorization" para la autenticación, que debe contener un token **JWT** obtenido previamente del servicio de [autenticación](https://tech.sedierp.com/quickstart.md).

## Prerequisitos

Antes de realizar la consulta de combustibles de vehículos, se debe contar con los siguientes datos:

* Token solicitado mediante el API de [autenticación](https://tech.sedierp.com/quickstart.md)

## Consultar combustibles de vehículos

**Request URL:** https\://\{\{Ambiente}}/API\_SIS/api/CombustiblesVehiculos/CombustiblesVehiculosConsultar\
**Tipo:** POST \
**Content Type:** application/json

**Page** `int`

Página de consulta, por defecto (1).

**Rows** `int`

Cantidad de registros por página de consulta, por defecto (10).

**CombustibleVehiculoID** `int`

Filtro de búsqueda por código único del combustible del vehículo (ID).

**Nombre** `string`

Filtro de búsqueda por nombre del combustible del vehículo.

```bash theme={null}
curl --location 'https://nsx.sedierp.com/API_SIS/api/CombustiblesVehiculos/CombustiblesVehiculosConsultar' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <TOKEN_JWT>' \
--data '{
	"Page": 1,
	"Rows": 10,
	"CombustibleVehiculoID": null,
	"Nombre": null
}'
```

```json Request theme={null}
{
  "Page": 1,
  "Rows": 10,
  "CombustibleVehiculoID": null,
  "Nombre": null
}
```

```json Response theme={null}
{
    "total": 5,
    "rows": [
        {
            "CombustibleVehiculoID": 1,
            "Nombre": "GASOLINA",
            "TotalRows": 5
        },
        {
            "CombustibleVehiculoID": 2,
            "Nombre": "DIESEL",
            "TotalRows": 5
        },
        {
            "CombustibleVehiculoID": 3,
            "Nombre": "GAS NATURAL",
            "TotalRows": 5
        },
        {
            "CombustibleVehiculoID": 4,
            "Nombre": "ELECTRICO",
            "TotalRows": 5
        },
        {
            "CombustibleVehiculoID": 5,
            "Nombre": "HIBRIDO",
            "TotalRows": 5
        }
    ],
    "result": 1
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.