Saltar al contenido principal
GET
/
v1
/
packages
Listar paquetes
curl --request GET \
  --url https://fees.sandbox.lerian.net/v1/packages \
  --header 'Content-Type: <content-type>' \
  --header 'X-Organization-Id: <x-organization-id>'
{
"items": [
{
"id": "0196251d-a93a-7c42-9eef-c9f463470e21",
"feeGroupLabel": "Paquete 1",
"description": "Paquete creado para pruebas",
"transactionRoute": "bde4a930-1ffe-40bf-9e4d-17c28cc9295e",
"segmentId": "01962516-d221-7340-b481-2e52d0dea76b",
"ledgerId": "01962515-e02a-7eac-b616-5d0df19c3400",
"minimumAmount": "3000.00",
"maximumAmount": "6000.00",
"waivedAccounts": [
"@account1"
],
"fees": {
"fee1": {
"feeLabel": "Tasa administrativa 1",
"calculationModel": {
"applicationRule": "maxBetweenTypes",
"calculations": [
{
"type": "flat",
"value": "15"
},
{
"type": "percentage",
"value": "2"
}
]
},
"referenceAmount": "originalAmount",
"priority": 1,
"isDeductibleFrom": false,
"creditAccount": "@fee1",
"routeFrom": "d35a121f-a638-4d2d-966b-65657a049f12",
"routeTo": "d35a121f-a638-4d2d-966b-65657a049f12"
},
"fee2": {
"feeLabel": "Tasa administrativa 2",
"calculationModel": {
"applicationRule": "flatFee",
"calculations": [
{
"type": "flat",
"value": "5"
}
]
},
"referenceAmount": "originalAmount",
"priority": 2,
"isDeductibleFrom": false,
"creditAccount": "@fee2",
"routeFrom": "d35a121f-a638-4d2d-966b-65657a049f12",
"routeTo": "d35a121f-a638-4d2d-966b-65657a049f12"
},
"fee3": {
"feeLabel": "Tasa 3",
"calculationModel": {
"applicationRule": "percentual",
"calculations": [
{
"type": "percentage",
"value": "5"
}
]
},
"referenceAmount": "afterFeesAmount",
"priority": 3,
"isDeductibleFrom": true,
"creditAccount": "@fee3",
"routeFrom": "d35a121f-a638-4d2d-966b-65657a049f12",
"routeTo": "d35a121f-a638-4d2d-966b-65657a049f12"
}
},
"enable": true,
"createdAt": "2025-04-11T13:50:23.034Z",
"updatedAt": "2025-04-11T13:50:23.034Z",
"deletedAt": null
},
{
"id": "01962522-d87e-7120-80bf-c55b770df818",
"feeGroupLabel": "Paquete 2",
"description": "Segundo paquete creado para pruebas.",
"transactionRoute": "bde4a930-1ffe-40bf-9e4d-17c28cc9295e",
"segmentId": "01962516-d221-7340-b481-2e52d0dea76b",
"ledgerId": "01962515-e02a-7eac-b616-5d0df19c3400",
"minimumAmount": "3000.00",
"maximumAmount": "6000.00",
"waivedAccounts": [],
"fees": {
"fee1": {
"feeLabel": "Prueba de tasas administrativas 2",
"calculationModel": {
"applicationRule": "maxBetweenTypes",
"calculations": [
{
"type": "flat",
"value": "16"
},
{
"type": "percentage",
"value": "1"
}
]
},
"referenceAmount": "originalAmount",
"priority": 1,
"isDeductibleFrom": false,
"creditAccount": "@fee1",
"routeFrom": "d35a121f-a638-4d2d-966b-65657a049f12",
"routeTo": "d35a121f-a638-4d2d-966b-65657a049f12"
}
},
"enable": true,
"createdAt": "2025-04-11T13:56:02.814Z",
"updatedAt": "2025-04-11T13:56:02.814Z",
"deletedAt": null
}
],
"page": 1,
"limit": 5,
"total": 3
}

Headers

Authorization
string

The authorization token in the 'Bearer <token>' format.
Important: This header is required if your environment has Access Manager enabled. For more information, refer to the Access Manager documentation.

Content-Type
string
required

Tipo de medio del recurso. Debe ser application/json.

Example:

"application/json"

X-Organization-Id
string
required

Identificador único de la organización asociada a la solicitud.

Example:

"0195fb87-eeb6-7487-bc58-659255a23ef1"

Query Parameters

page
integer

Número de página que se devolverá.

limit
integer

Cantidad de registros devueltos.

total
integer

Cantidad de elementos devueltos.

sortOrder
string

Orden utilizado para clasificar los resultados.

transactionRoute
string

La ruta contable principal que define la naturaleza de la transacción. Ayuda a agrupar operaciones relacionadas en el Ledger.

enable
boolean

Si true, indica que el paquete está activo.

startDate
string

Fecha de finalización del período que deseas recuperar. Debes usar también start_date.

endDate
string

Fecha de inicio del período que deseas recuperar. Debes usar también end_date.

ledgerId
string

Identificador del Ledger.

Example:

"0195156e-a4ce-7774-8c65-f2d1bf268989"

segmentId
string

Identificador único del producto o categoría a la que están vinculadas las tarifas. Este campo está asociado al Ledger de Midaz.

Example:

"0195156e-26e2-708e-aa8f-1ca3266f6347"

Response

Indica que el recurso se creó correctamente y que la operación se completó según lo esperado.

items
object[]

Lista con los elementos devueltos.

page
integer

Número de página devuelto.

limit
integer

Cantidad de registros devueltos.

total
integer

Cantidad de elementos devueltos.