Previsualizar los importes de impuesto de la jurisdicción
curl --request POST \
--url https://lender.sandbox.lerian.net/api/v1/br/tax/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"disbursementDate": "2026-06-14T12:00:00Z",
"finalDueDate": "2026-06-14T12:00:00Z",
"grossAmount": "100000.00",
"jurisdictionCode": "BR",
"taxRegime": "<string>",
"netDeliveredAmount": "99949.66"
}
'import requests
url = "https://lender.sandbox.lerian.net/api/v1/br/tax/preview"
payload = {
"disbursementDate": "2026-06-14T12:00:00Z",
"finalDueDate": "2026-06-14T12:00:00Z",
"grossAmount": "100000.00",
"jurisdictionCode": "BR",
"taxRegime": "<string>",
"netDeliveredAmount": "99949.66"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
disbursementDate: '2026-06-14T12:00:00Z',
finalDueDate: '2026-06-14T12:00:00Z',
grossAmount: '100000.00',
jurisdictionCode: 'BR',
taxRegime: '<string>',
netDeliveredAmount: '99949.66'
})
};
fetch('https://lender.sandbox.lerian.net/api/v1/br/tax/preview', 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://lender.sandbox.lerian.net/api/v1/br/tax/preview",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'disbursementDate' => '2026-06-14T12:00:00Z',
'finalDueDate' => '2026-06-14T12:00:00Z',
'grossAmount' => '100000.00',
'jurisdictionCode' => 'BR',
'taxRegime' => '<string>',
'netDeliveredAmount' => '99949.66'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://lender.sandbox.lerian.net/api/v1/br/tax/preview"
payload := strings.NewReader("{\n \"disbursementDate\": \"2026-06-14T12:00:00Z\",\n \"finalDueDate\": \"2026-06-14T12:00:00Z\",\n \"grossAmount\": \"100000.00\",\n \"jurisdictionCode\": \"BR\",\n \"taxRegime\": \"<string>\",\n \"netDeliveredAmount\": \"99949.66\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://lender.sandbox.lerian.net/api/v1/br/tax/preview")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"disbursementDate\": \"2026-06-14T12:00:00Z\",\n \"finalDueDate\": \"2026-06-14T12:00:00Z\",\n \"grossAmount\": \"100000.00\",\n \"jurisdictionCode\": \"BR\",\n \"taxRegime\": \"<string>\",\n \"netDeliveredAmount\": \"99949.66\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://lender.sandbox.lerian.net/api/v1/br/tax/preview")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"disbursementDate\": \"2026-06-14T12:00:00Z\",\n \"finalDueDate\": \"2026-06-14T12:00:00Z\",\n \"grossAmount\": \"100000.00\",\n \"jurisdictionCode\": \"BR\",\n \"taxRegime\": \"<string>\",\n \"netDeliveredAmount\": \"99949.66\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"cofins": "0.00",
"grossAmount": "100000.00",
"iofAdditional": "38.00",
"iofDaily": "12.34",
"jurisdictionCode": "BR",
"netDeliveredAmount": "99949.66",
"pis": "0.00",
"profileVersion": "1.0.0",
"rateTableSnapshotId": "550e8400-e29b-41d4-a716-446655440002",
"taxRegime": "<string>",
"totalIof": "50.34",
"totalTax": "50.34"
}
}{
"code": "ERR-0001",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}Previsualizar los importes de impuesto de la jurisdicción
Calcula los importes del impuesto IOF de desembolso usando el perfil de jurisdicción compilado activo sin persistir datos.
POST
/
api
/
v1
/
br
/
tax
/
preview
Previsualizar los importes de impuesto de la jurisdicción
curl --request POST \
--url https://lender.sandbox.lerian.net/api/v1/br/tax/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"disbursementDate": "2026-06-14T12:00:00Z",
"finalDueDate": "2026-06-14T12:00:00Z",
"grossAmount": "100000.00",
"jurisdictionCode": "BR",
"taxRegime": "<string>",
"netDeliveredAmount": "99949.66"
}
'import requests
url = "https://lender.sandbox.lerian.net/api/v1/br/tax/preview"
payload = {
"disbursementDate": "2026-06-14T12:00:00Z",
"finalDueDate": "2026-06-14T12:00:00Z",
"grossAmount": "100000.00",
"jurisdictionCode": "BR",
"taxRegime": "<string>",
"netDeliveredAmount": "99949.66"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
disbursementDate: '2026-06-14T12:00:00Z',
finalDueDate: '2026-06-14T12:00:00Z',
grossAmount: '100000.00',
jurisdictionCode: 'BR',
taxRegime: '<string>',
netDeliveredAmount: '99949.66'
})
};
fetch('https://lender.sandbox.lerian.net/api/v1/br/tax/preview', 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://lender.sandbox.lerian.net/api/v1/br/tax/preview",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'disbursementDate' => '2026-06-14T12:00:00Z',
'finalDueDate' => '2026-06-14T12:00:00Z',
'grossAmount' => '100000.00',
'jurisdictionCode' => 'BR',
'taxRegime' => '<string>',
'netDeliveredAmount' => '99949.66'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://lender.sandbox.lerian.net/api/v1/br/tax/preview"
payload := strings.NewReader("{\n \"disbursementDate\": \"2026-06-14T12:00:00Z\",\n \"finalDueDate\": \"2026-06-14T12:00:00Z\",\n \"grossAmount\": \"100000.00\",\n \"jurisdictionCode\": \"BR\",\n \"taxRegime\": \"<string>\",\n \"netDeliveredAmount\": \"99949.66\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://lender.sandbox.lerian.net/api/v1/br/tax/preview")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"disbursementDate\": \"2026-06-14T12:00:00Z\",\n \"finalDueDate\": \"2026-06-14T12:00:00Z\",\n \"grossAmount\": \"100000.00\",\n \"jurisdictionCode\": \"BR\",\n \"taxRegime\": \"<string>\",\n \"netDeliveredAmount\": \"99949.66\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://lender.sandbox.lerian.net/api/v1/br/tax/preview")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"disbursementDate\": \"2026-06-14T12:00:00Z\",\n \"finalDueDate\": \"2026-06-14T12:00:00Z\",\n \"grossAmount\": \"100000.00\",\n \"jurisdictionCode\": \"BR\",\n \"taxRegime\": \"<string>\",\n \"netDeliveredAmount\": \"99949.66\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"cofins": "0.00",
"grossAmount": "100000.00",
"iofAdditional": "38.00",
"iofDaily": "12.34",
"jurisdictionCode": "BR",
"netDeliveredAmount": "99949.66",
"pis": "0.00",
"profileVersion": "1.0.0",
"rateTableSnapshotId": "550e8400-e29b-41d4-a716-446655440002",
"taxRegime": "<string>",
"totalIof": "50.34",
"totalTax": "50.34"
}
}{
"code": "ERR-0001",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}Autorizaciones
JWT bearer token issued by the identity provider.
Cuerpo
application/json
Disbursement date (RFC3339).
Ejemplo:
"2026-06-14T12:00:00Z"
Final due date (RFC3339).
Ejemplo:
"2026-06-14T12:00:00Z"
Gross disbursement amount in major currency units (e.g. "100000.00").
Ejemplo:
"100000.00"
ISO 3166-1 alpha-2 jurisdiction code (e.g. "BR").
Required string length:
2Ejemplo:
"BR"
Tax regime selector understood by the jurisdiction tax engine.
Optional net delivered amount in major currency units.
Ejemplo:
"99949.66"
Respuesta
OK
The computed tax-preview result (IOF, PIS, COFINS, and net delivered amount) for the requested disbursement.
Show child attributes
Show child attributes
¿Esta página le ayudó?

