Skip to main content

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

Production only, for now

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"
}
}
]
}
Amounts are not cents here

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​

modelFee of a transaction
FIXEDamount
PERCENTAGEpercent of the transaction amount plus fixedAmount, from the tier it falls in, limited by minAmount and maxAmount when present
TIEREDamount of the tier it falls in
  • chargeTiming: REALTIME is debited with the transaction, PREPAID from a package paid in advance, and POSTPAID later, in an invoice.
  • Dates have no fraction of a second, and the change may happen at any point of the second shown. freeUntil is 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:

tierBasisWhat is accumulatedUnit of from and to
TRANSACTION_COUNTThe number of transactionsTransactions
TRANSACTION_AMOUNTTheir 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 1 and without to, means the same terms for every transaction. tierBasis and tierPeriod are 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.
  • PREPAID is not fully described by this route: it has no tierPeriod, because its tiers are not counted by period, and validUntil may 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​

statusWhat it means
ACTIVEThere is a fee in effect. It may be zero: "amount": "0.00"
NOT_CONFIGUREDThere 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

HTTPError codeDescription
500InternalErrorFailed to retrieve the current fees
503ServiceNotAvailableFee service timeout or unavailable. Retry later

See HTTP errors for the codes shared by every route.