curl --request GET \
--url https://fees.sandbox.lerian.net/v1/packages \
--header 'Content-Type: <content-type>' \
--header 'X-Organization-Id: <x-organization-id>'import requests
url = "https://fees.sandbox.lerian.net/v1/packages"
headers = {
"Content-Type": "<content-type>",
"X-Organization-Id": "<x-organization-id>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'Content-Type': '<content-type>', 'X-Organization-Id': '<x-organization-id>'}
};
fetch('https://fees.sandbox.lerian.net/v1/packages', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://fees.sandbox.lerian.net/v1/packages",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Content-Type: <content-type>",
"X-Organization-Id: <x-organization-id>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://fees.sandbox.lerian.net/v1/packages"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Content-Type", "<content-type>")
req.Header.Add("X-Organization-Id", "<x-organization-id>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://fees.sandbox.lerian.net/v1/packages")
.header("Content-Type", "<content-type>")
.header("X-Organization-Id", "<x-organization-id>")
.asString();require 'uri'
require 'net/http'
url = URI("https://fees.sandbox.lerian.net/v1/packages")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Content-Type"] = '<content-type>'
request["X-Organization-Id"] = '<x-organization-id>'
response = http.request(request)
puts response.read_body{
"items": [
{
"id": "0196251d-a93a-7c42-9eef-c9f463470e21",
"feeGroupLabel": "Package 1",
"description": "Package created for testing",
"transactionRoute": "019c96a0-10a0-72d2-9fb0-2b7de8093182",
"segmentId": "019c96a0-0b4e-7079-8be0-ab6bdccf975f",
"ledgerId": "019c96a0-0ac0-7de9-9f53-9cf842a2ee5a",
"minimumAmount": "3000.00",
"maximumAmount": "6000.00",
"waivedAccounts": [
"customer-brl-1"
],
"fees": {
"fee1": {
"feeLabel": "Administrative fee 1",
"calculationModel": {
"applicationRule": "maxBetweenTypes",
"calculations": [
{
"type": "flat",
"value": "15"
},
{
"type": "percentage",
"value": "2"
}
]
},
"referenceAmount": "originalAmount",
"priority": 1,
"isDeductibleFrom": false,
"creditAccount": "business-brl-1",
"routeFrom": "019c96a0-1071-7a0d-9916-a831221de252",
"routeTo": "019c96a0-108c-7a74-8e31-3789daffe1ed"
},
"fee2": {
"feeLabel": "Administrative fee 2",
"calculationModel": {
"applicationRule": "flatFee",
"calculations": [
{
"type": "flat",
"value": "5"
}
]
},
"referenceAmount": "originalAmount",
"priority": 2,
"isDeductibleFrom": false,
"creditAccount": "business-brl-2",
"routeFrom": "019c96a0-1071-7a0d-9916-a831221de252",
"routeTo": "019c96a0-108c-7a74-8e31-3789daffe1ed"
},
"fee3": {
"feeLabel": "Fee 3",
"calculationModel": {
"applicationRule": "percentual",
"calculations": [
{
"type": "percentage",
"value": "5"
}
]
},
"referenceAmount": "afterFeesAmount",
"priority": 3,
"isDeductibleFrom": true,
"creditAccount": "business-brl-3",
"routeFrom": "019c96a0-1071-7a0d-9916-a831221de252",
"routeTo": "019c96a0-108c-7a74-8e31-3789daffe1ed"
}
},
"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": "Package 2",
"description": "Second package created for testing",
"transactionRoute": "019c96a0-10a0-72d2-9fb0-2b7de8093182",
"segmentId": "019c96a0-0b4e-7079-8be0-ab6bdccf975f",
"ledgerId": "019c96a0-0ac0-7de9-9f53-9cf842a2ee5a",
"minimumAmount": "3000.00",
"maximumAmount": "6000.00",
"waivedAccounts": [],
"fees": {
"fee1": {
"feeLabel": "Administrative fee test 2",
"calculationModel": {
"applicationRule": "maxBetweenTypes",
"calculations": [
{
"type": "flat",
"value": "16"
},
{
"type": "percentage",
"value": "1"
}
]
},
"referenceAmount": "originalAmount",
"priority": 1,
"isDeductibleFrom": false,
"creditAccount": "business-brl-1",
"routeFrom": "019c96a0-1071-7a0d-9916-a831221de252",
"routeTo": "019c96a0-108c-7a74-8e31-3789daffe1ed"
}
},
"enable": true,
"createdAt": "2025-04-11T13:56:02.814Z",
"updatedAt": "2025-04-11T13:56:02.814Z",
"deletedAt": null
}
],
"page": 1,
"limit": 5,
"total": 3
}Listar Pacotes
Use este endpoint para recuperar todos os pacotes registrados junto com suas taxas associadas.
curl --request GET \
--url https://fees.sandbox.lerian.net/v1/packages \
--header 'Content-Type: <content-type>' \
--header 'X-Organization-Id: <x-organization-id>'import requests
url = "https://fees.sandbox.lerian.net/v1/packages"
headers = {
"Content-Type": "<content-type>",
"X-Organization-Id": "<x-organization-id>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'Content-Type': '<content-type>', 'X-Organization-Id': '<x-organization-id>'}
};
fetch('https://fees.sandbox.lerian.net/v1/packages', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://fees.sandbox.lerian.net/v1/packages",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Content-Type: <content-type>",
"X-Organization-Id: <x-organization-id>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://fees.sandbox.lerian.net/v1/packages"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Content-Type", "<content-type>")
req.Header.Add("X-Organization-Id", "<x-organization-id>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://fees.sandbox.lerian.net/v1/packages")
.header("Content-Type", "<content-type>")
.header("X-Organization-Id", "<x-organization-id>")
.asString();require 'uri'
require 'net/http'
url = URI("https://fees.sandbox.lerian.net/v1/packages")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Content-Type"] = '<content-type>'
request["X-Organization-Id"] = '<x-organization-id>'
response = http.request(request)
puts response.read_body{
"items": [
{
"id": "0196251d-a93a-7c42-9eef-c9f463470e21",
"feeGroupLabel": "Package 1",
"description": "Package created for testing",
"transactionRoute": "019c96a0-10a0-72d2-9fb0-2b7de8093182",
"segmentId": "019c96a0-0b4e-7079-8be0-ab6bdccf975f",
"ledgerId": "019c96a0-0ac0-7de9-9f53-9cf842a2ee5a",
"minimumAmount": "3000.00",
"maximumAmount": "6000.00",
"waivedAccounts": [
"customer-brl-1"
],
"fees": {
"fee1": {
"feeLabel": "Administrative fee 1",
"calculationModel": {
"applicationRule": "maxBetweenTypes",
"calculations": [
{
"type": "flat",
"value": "15"
},
{
"type": "percentage",
"value": "2"
}
]
},
"referenceAmount": "originalAmount",
"priority": 1,
"isDeductibleFrom": false,
"creditAccount": "business-brl-1",
"routeFrom": "019c96a0-1071-7a0d-9916-a831221de252",
"routeTo": "019c96a0-108c-7a74-8e31-3789daffe1ed"
},
"fee2": {
"feeLabel": "Administrative fee 2",
"calculationModel": {
"applicationRule": "flatFee",
"calculations": [
{
"type": "flat",
"value": "5"
}
]
},
"referenceAmount": "originalAmount",
"priority": 2,
"isDeductibleFrom": false,
"creditAccount": "business-brl-2",
"routeFrom": "019c96a0-1071-7a0d-9916-a831221de252",
"routeTo": "019c96a0-108c-7a74-8e31-3789daffe1ed"
},
"fee3": {
"feeLabel": "Fee 3",
"calculationModel": {
"applicationRule": "percentual",
"calculations": [
{
"type": "percentage",
"value": "5"
}
]
},
"referenceAmount": "afterFeesAmount",
"priority": 3,
"isDeductibleFrom": true,
"creditAccount": "business-brl-3",
"routeFrom": "019c96a0-1071-7a0d-9916-a831221de252",
"routeTo": "019c96a0-108c-7a74-8e31-3789daffe1ed"
}
},
"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": "Package 2",
"description": "Second package created for testing",
"transactionRoute": "019c96a0-10a0-72d2-9fb0-2b7de8093182",
"segmentId": "019c96a0-0b4e-7079-8be0-ab6bdccf975f",
"ledgerId": "019c96a0-0ac0-7de9-9f53-9cf842a2ee5a",
"minimumAmount": "3000.00",
"maximumAmount": "6000.00",
"waivedAccounts": [],
"fees": {
"fee1": {
"feeLabel": "Administrative fee test 2",
"calculationModel": {
"applicationRule": "maxBetweenTypes",
"calculations": [
{
"type": "flat",
"value": "16"
},
{
"type": "percentage",
"value": "1"
}
]
},
"referenceAmount": "originalAmount",
"priority": 1,
"isDeductibleFrom": false,
"creditAccount": "business-brl-1",
"routeFrom": "019c96a0-1071-7a0d-9916-a831221de252",
"routeTo": "019c96a0-108c-7a74-8e31-3789daffe1ed"
}
},
"enable": true,
"createdAt": "2025-04-11T13:56:02.814Z",
"updatedAt": "2025-04-11T13:56:02.814Z",
"deletedAt": null
}
],
"page": 1,
"limit": 5,
"total": 3
}Cabeçalhos
O token de autorização no formato 'Bearer '.
Importante: Este header é obrigatório se o seu ambiente possui o Access Manager habilitado. Para mais informações, consulte a documentação do Access Manager.
O tipo de mídia do recurso. Deve ser application/json.
"application/json"
O identificador único da Organização associada à requisição.
"019c96a0-0a98-7287-9a31-786e0809c769"
Parâmetros de consulta
Número da página a ser retornada.
Número de registros retornados.
A ordem utilizada para classificar os resultados.
A rota contábil principal que define a natureza da transação. Ajuda a agrupar operações relacionadas no ledger.
Se true, indica que o pacote está ativo.
A data inicial do período que você deseja recuperar. Deve ser usada junto com o end_date.
A data final do período que você deseja recuperar. Deve ser usada junto com o start_date.
Identificador do Ledger.
"019c96a0-0ac0-7de9-9f53-9cf842a2ee5a"
Identificador único do produto ou categoria ao qual as taxas estão vinculadas. Este campo está associado ao Midaz Ledger.
"019c96a0-0b4e-7079-8be0-ab6bdccf975f"
Esta página foi útil?

