Fees
Query the Pix fees in effect for your account: one for received Pix (IN) and one for sent
Pix (OUT). Use it to compute the expected fee of each transaction and compare it with your
statement.
API: GET /v2/fees/current
This route is available in production. The sandbox does not have it yet, so calls to
api.sdb.lbpay.com.br, like the one below, return an error there.
curl --request GET \
--url "https://api.sdb.lbpay.com.br/v2/fees/current" \
--header "Authorization: DPoP $TOKEN" \
--header "DPoP: $DPOP_PROOF"
There are no parameters: the account is the one of the credential. Both profiles, read_only
and full_access, can call it.
{
"accountNumber": "1234567",
"currency": "BRL",
"asOf": "2026-11-24T09:00:00-03:00",
"fees": [
{
"service": "PIX",
"direction": "IN",
"status": "ACTIVE",
"terms": {
"model": "PERCENTAGE",
"chargeTiming": "REALTIME",
"maxAmount": "5.00",
"tierBasis": "TRANSACTION_COUNT",
"tierPeriod": "DAILY",
"tiers": [
{ "from": 1, "to": 1000, "percent": "1.5", "fixedAmount": "0.00" },
{ "from": 1001, "percent": "1", "fixedAmount": "0.00" }
],
"validFrom": "2026-11-01T00:00:00-03:00"
}
},
{
"service": "PIX",
"direction": "OUT",
"status": "ACTIVE",
"terms": {
"model": "FIXED",
"chargeTiming": "REALTIME",
"amount": "0.30",
"validFrom": "2026-11-01T00:00:00-03:00"
}
}
]
}
In this route, amounts are decimal strings in BRL ("0.30"), because a fee may have
fractions of a cent ("0.0125"). The other routes use integer cents. Parse them as decimals,
never as floating point.
Reading the terms
model | Fee of a transaction |
|---|---|
FIXED | amount |
PERCENTAGE | percent of the transaction amount plus fixedAmount, from the tier it falls in, limited by minAmount and maxAmount when present |
TIERED | amount of the tier it falls in |
chargeTiming:REALTIMEis debited with the transaction,PREPAIDfrom a package paid in advance, andPOSTPAIDlater, in an invoice.- Dates have no fraction of a second, and the change may happen at any point of the second
shown.
freeUntilis the last second without a fee, and is present only during a free period. - Fractions of a cent: the fee debited is an integer number of cents. The fraction is carried to the next fee, so the total over time is exact.
Tiers
from and to are inclusive, and the last tier has no to. The whole transaction pays the
tier it falls in, according to what was accumulated in tierPeriod (DAILY, WEEKLY,
MONTHLY or YEARLY). tierBasis tells what is accumulated, and the unit of from and to:
tierBasis | What is accumulated | Unit of from and to |
|---|---|---|
TRANSACTION_COUNT | The number of transactions | Transactions |
TRANSACTION_AMOUNT | Their total amount in BRL, rounded to the nearest whole real (0.50 rounds up) | Whole reais, not cents |
- Neighboring tiers with the same fee come as one, so a single tier, from
1and withoutto, means the same terms for every transaction.tierBasisandtierPeriodare still present in that case. - What counts: the current transaction and the previous ones that were charged a fee. A transaction with a zero fee does not count, so an initial tier with a zero fee never ends.
- The exact start of the period is not guaranteed: transactions in its first hours may not count toward the next ones.
- Outside every tier, the fee cannot be computed, and the transaction may be rejected.
PREPAIDis not fully described by this route: it has notierPeriod, because its tiers are not counted by period, andvalidUntilmay be in the past.
The response does not say how much was accumulated. Use the terms to check fees already charged, not to predict the tier of the next transaction.
Status
status | What it means |
|---|---|
ACTIVE | There is a fee in effect. It may be zero: "amount": "0.00" |
NOT_CONFIGURED | There is no fee in effect, and terms is absent. It does not mean the operation is free — contact support before operating |
Freshness
The response may be up to 60 seconds old, and asOf tells when the fees were read. Fees
change rarely: query on startup and once a day, not once per transaction.
Error codes
Route: GET /v2/fees/current
| HTTP | Error code | Description |
|---|---|---|
500 | InternalError | Failed to retrieve the current fees |
503 | ServiceNotAvailable | Fee service timeout or unavailable. Retry later |
See HTTP errors for the codes shared by every route.