Saltar al contenido principal
Listar paquetes
curl --request GET \
  --url http://127.0.0.1:4002/v1/packages \
  --header 'Content-Type: <content-type>' \
  --header 'X-Organization-Id: <x-organization-id>'
{
  "items": [
    {
      "id": "0195b3c3-9926-785d-a220-9488a4abe9c7",
      "feeGroupLabel": "Prueba de cálculo",
      "description": "prueba habilitada",
      "chartOfAccounts": null,
      "segmentId": "0195b02d-7552-7b96-8e80-af64fc6efab2",
      "ledgerId": "0195aaf2-f0b9-75a2-bf83-2448407e943c",
      "minimumAmount": 200,
      "maximumAmount": 10000,
      "minimumAmountScale": 2,
      "maximumAmountScale": 2,
      "waivedAccounts": [
        "@sane",
        "@teste"
      ],
      "fees": {
        "iof": {
          "feeLabel": "Ajuste cuenta de crédito",
          "calculationModel": {
            "applicationRule": "percentual",
            "calculations": [
              {
                "type": "percentage",
                "value": 600,
                "valueScale": 2
              }
            ]
          },
          "referenceAmount": "originalAmount",
          "priority": 1,
          "isDeductibleFrom": true,
          "creditAccount": "iof"
        },
        "taxaAdminPercent": {
          "feeLabel": "TARIFA FIJA",
          "calculationModel": {
            "applicationRule": "flatFee",
            "calculations": [
              {
                "type": "flat",
                "value": 1600,
                "valueScale": 2
              }
            ]
          },
          "referenceAmount": "afterFeesAmount",
          "priority": 2,
          "isDeductibleFrom": false,
          "creditAccount": "deb"
        }
      },
      "enable": false,
      "createdAt": "2025-03-20T13:34:55.27Z",
      "updatedAt": "2025-03-20T17:35:40.866Z",
      "deletedAt": null
    },
    {
      "id": "0195b569-0cf7-71dd-ac1b-a4f68f1a5b24",
      "feeGroupLabel": "Tarifas para pruebas",
      "description": "Tarifas diversas",
      "chartOfAccounts": "teste-cred",
      "segmentId": "0195b02d-7552-7b96-8e80-af64fc6efab2",
      "ledgerId": "0195aaf2-f0b9-75a2-bf83-2448407e943c",
      "minimumAmount": 900,
      "maximumAmount": 10000,
      "mininumAmountScale": 2,
      "maximumAmountScale": 2,
      "waivedAccounts": [
        "@TESTE"
      ],
      "fees": {
        "iof": {
          "feeLabel": "taxa IOF",
          "calculationModel": {
            "applicationRule": "percentual",
            "calculations": [
              {
                "type": "percentage",
                "value": 600,
                "valueScale": 2
              }
            ]
          },
          "referenceAmount": "originalAmount",
          "priority": 1,
          "isDeductibleFrom": true,
          "creditAccount": "deb"
        },
        "taxaAdminPercent": {
          "feeLabel": "Taxa fixa",
          "calculationModel": {
            "applicationRule": "flatFee",
            "calculations": [
              {
                "type": "flat",
                "value": 1700,
                "valueScale": 2
              }
            ]
          },
          "referenceAmount": "afterFeesAmount",
          "priority": 2,
          "isDeductibleFrom": false,
          "creditAccount": "deb"
        }
      },
      "enable": false,
      "createdAt": "2025-03-20T21:15:15.575Z",
      "updatedAt": "2025-03-20T21:15:15.575Z",
      "deletedAt": null
    }
  ],
  "page": 1,
  "limit": 10,
  "total": 2
}

Encabezados

Authorization
string

El token de autorización. Este encabezado es obligatorio si tu entorno tiene habilitado el plugin Access Manager.

Content-Type
string
requerido

El tipo de contenido de la solicitud.

X-Organization-Id
string
requerido

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

X-lerian-Id
string

Identificador único del cliente de Lerian.

Parámetros de consulta

page
integer

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

limit
integer

Número de registros devueltos.

total
integer

Cantidad de elementos devueltos.

chartOfAccounts
string

Identificador del plan contable; por ejemplo, para operaciones de débito podemos tener debit-type-transaction y para operaciones de crédito, credit-type-transaction.

segmentId
string

Identificador único del producto o categoría a la que están vinculados los impuestos. Este campo está asociado al Midaz Ledger.

ledgerId
string

Identificador del libro contable.

Respuesta

200 - application/json
items
object[]
requerido

Lista con los elementos devueltos.

page
integer
requerido

Número de página devuelto.

limit
integer
requerido

Número de registros devueltos.

total
integer
requerido

Cantidad de elementos devueltos.