Skip to content

Listar configuraciones de costos incluyendo historial

GET
/costs-old

Obtiene la lista completa de configuraciones de costos incluyendo versiones históricas.
Útil para auditoría y análisis de cambios en las configuraciones de costos a lo largo del tiempo.

Authorizations

bearerAuth

JWT token de autenticación. Utilice este esquema para autenticar solicitudes con un token JWT.

TypeHTTP (bearer)

Parameters

Query Parameters

include_archived

Incluir configuraciones archivadas

Typeboolean
Exampletrue
defaulttrue
from_date

Filtrar configuraciones desde fecha específica

Typestring
Example2024-01-01
formatdate
to_date

Filtrar configuraciones hasta fecha específica

Typestring
Example2024-12-31
formatdate

Responses

Lista de costos con historial obtenida exitosamente
application/json
JSON
{
"status": "success",
"data": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Comisión por Originación",
"description": "Comisión fija actual por originación de crédito",
"amount": 55000,
"type": "FIXED",
"category": "ORIGINATION",
"is_active": true,
"is_archived": false,
"version": 2,
"effective_from": "2024-01-15T10:30:00Z",
"effective_to": null,
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T14:45:00Z"
},
{
"id": "123e4567-e89b-12d3-a456-426614174001",
"name": "Comisión por Originación",
"description": "Comisión fija anterior por originación de crédito",
"amount": 50000,
"type": "FIXED",
"category": "ORIGINATION",
"is_active": false,
"is_archived": true,
"version": 1,
"effective_from": "2024-01-01T00:00:00Z",
"effective_to": "2024-01-15T10:30:00Z",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-15T10:30:00Z"
},
{
"id": "456e7890-e89b-12d3-a456-426614174000",
"name": "Comisión por Procesamiento",
"description": "Comisión del 2% sobre el monto del crédito",
"amount": 2,
"type": "PERCENTAGE",
"category": "PROCESSING",
"is_active": true,
"is_archived": false,
"version": 1,
"effective_from": "2024-01-10T09:15:00Z",
"effective_to": null,
"created_at": "2024-01-10T09:15:00Z",
"updated_at": "2024-01-12T14:22:00Z"
}
]
}

Playground

Server
Authorization
Variables
Key
Value

Samples

Powered by VitePress OpenAPI