Get payment by ID
Returns one payment by its ID, with full detail, including the DARF fields when they apply.
How it works
X-Organization-Idis required. A payment of another organization gets404, the same as one that does not exist.
Planned changes
- Lerian (PCR): boleto payment through Lerian (PCR) is planned. The payment gains
antifraud,requestedAmountandreturn, and the statusRETURNED. - Payment scheduling: a future
scheduledDateis sent to the provider on its effective date (first business day on or after it), once. AddsscheduledDate(DARF too),effectiveScheduledDate,effectiveAfterDueDate,amountIsEstimated,executedAt,failureReason, thePROCESSINGstatus and new error codes. This change will be specified again before it applies. payee.taxId(the CPF or CNPJ of the slipβs beneficiary) will be masked, as the consult already masks it. Today it is returned in full, even onFAILEDorREJECTEDpayments.
Headers
Path Parameters
Response
OK.
The payment's current status: UNCONFIRMED, CREATED, SCHEDULED, PENDING_APPROVAL, APPROVED, EXECUTED, SETTLED, REJECTED, FAILED or CANCELED. UNCONFIRMED means the outcome at the payment provider is not known yet: every payment starts there, and one whose initiation was answered 202 stays there until it resolves. Treat the list as open: a value added later must not break a client.
Planned: status gains RETURNED, reached only by the Lerian-provider payment flow; PENDING_APPROVAL also means the payment waits for the antifraud partner's final decision.
Due date, YYYY-MM-DD. A DARF payment carries the one its creation request named, if any. A BANKSLIP payment carries the slip's due date as the payment provider's pre-payment consult reported it: absent when the consult reported none, and on bank-slip payments created before the due date was recorded. UTILITIES payments do not carry it.
The product error code a FAILED payment was recorded with, when its failure has one. PBP-0211: the payment provider provably never received the payment, nothing was paid, and its reservation is cancelled. PBP-0212: the payment provider refused the payment because it arrived outside the hours it accepts payments, nothing was paid, and its reservation is cancelled. PBP-0014: the payment provider refused what it was sent. Absent on every other status, and on a failure recorded without a code. Treat the list as open.
"PBP-0211"
Reference this API sends to the payment provider when it instructs this payment, exactly as sent. Which of providerId and providerRequestId the provider accepts for a lookup depends on the provider and on the payment type, so quote both when you contact the provider. It is recorded when the payment is created, before the instruction, so it is present on a payment the provider never received too: one FAILED with failureCode PBP-0211, or FAILED without a code after the ledger refused its funds. The provider holds no payment under it then, and a payment retried under the same Idempotency-Key after a refusal for funds carries the same reference as the refused attempt. Absent when the payment carries no such reference.
Antifraud analysis of the payment. Present on every payment the client's antifraud partner evaluated (ALLOW or REVIEW), also after the final decision, as its audit record. Absent when the tenant has the check off and on payments created before the antifraud check existed. The partner's reasons and score are recorded but not exposed.
Return of a settled payment after the issuing institution cancelled the write-off. While state is PENDING the payment is still SETTLED and the amount goes back at scheduledFor: 08:20 (America/Sao_Paulo), the first SILOC settlement of the business day after the notice. At that moment the amount is credited back to the funding account, the payment becomes RETURNED, state becomes POSTED and PAYMENT_RETURNED is sent. Only Lerian-provider payments carry it.
Planned. Date on which you want the payment to run, YYYY-MM-DD, with no time or time zone. Without it, the payment runs immediately.
- It is not the date the payment runs. On a non-business day the payment runs on
effectiveScheduledDate: always read that field. - Valid window:
tomorrow β€ scheduledDate β€ min(dueDate, today + 30 calendar days). Outside it, creation is refused with one of the window codes. - In the first phase, a date on a non-business day is refused with
PBP-0006.
"2026-09-16"
Planned. Business day on which the payment runs, YYYY-MM-DD. Read this date to know when the money goes out.
- Computed at acceptance as the first business day on or after
scheduledDate. Equal to it when the requested date is a business day. - Fixed at acceptance: a later calendar change does not move it.
- Only one thing moves it: when the provider refuses the execution for cutoff or time window, the payment is rescheduled to the next business day, up to the attempt limit. A rescheduled payment leaves the
effectiveScheduledDateFrom/effectiveScheduledDateTointerval it was in and enters the next one. - Present only in scheduled payments. Absent in an immediate payment.
"2026-09-14"
Planned. true when the effective date rolled past the title's due date; false otherwise, including in an immediate payment.
- The window is checked on the requested date (
tomorrow β€ scheduledDate β€ min(dueDate, today + 30 days)). The roll to the next business day happens after that check, so it can pass the due date: a boleto due on a Saturday, scheduled for that day, runs on Monday. - This case is accepted, not refused, and has no error code. Use the field to warn whoever scheduled the payment.
- If the title does not accept payment on the next business day without a change in value, the amount can rise. See
amountIsEstimated. - In the first phase there is no roll: a requested date on a non-business day is refused with
PBP-0006, so the field is alwaysfalse.
false
Planned. Instant the scheduled payment was executed on its day, when the provider accepted the payment call. Null until the execution happens, and stays null for a scheduled payment canceled or failed before it reached the provider.
- There is no separate scheduling instant: a scheduled payment is created in
SCHEDULED, socreatedAtis that instant. - Do not confuse with
effectiveScheduledDate:executedAtis when it ran,effectiveScheduledDateis when it was due to run.
"2026-09-14T06:00:47Z"
Planned. Why the execution of a scheduled payment failed terminally. Present only when status is FAILED and the payment was scheduled. An immediate payment that fails is described only by errorMessage.
- In every terminal case the reservation in the ledger is released.
statusdecides whether the payment ended, never this field. The field is not returned outsideFAILED.
INSUFFICIENT_FUNDS, BILL_NO_LONGER_PAYABLE, PROVIDER_REJECTED, PROVIDER_UNAVAILABLE, RETRY_LIMIT_EXCEEDED, MALFORMED_RECORD, LEDGER_CONTEXT_MISSING, CUTOFF_WINDOW_MISSED "RETRY_LIMIT_EXCEEDED"

