Skip to main content
Error format The Payments API answers every failed request with an RFC 9457 problem document on the application/problem+json media type, whichever endpoint you called and wherever the service catches the failure. A request that goes past the rate limit answers 429 with PBP-0009.
Problem document
Field definitions
  • type – A URI that identifies the error in the Lerian error catalog. Built as https://errors.lerian.studio/v1/<code>.
  • title – The HTTP status text, for example Unprocessable Entity.
  • status – The HTTP status code.
  • detail – Text about this occurrence of the condition. The wording comes from the branch that raised it.
  • code – A stable identifier for the condition. Branch on this value.
  • errors – Optional list of per-field validation details, each with a message, a location, and the value found there.
  • instance – The trace identifier of the request, when it has one.
At status 500, 502 and 503 the detail member carries a fixed text instead of a description of your request, so read code to identify the condition.

Platform errors


These codes are not specific to one rail. The transport layer, the request pipeline and the handlers raise them.

Provider errors


These codes carry the payment provider’s answer. What is safe to resend depends on the operation, so read the operation’s error descriptions in the API reference before you resend.

Boleto errors


These codes answer the boleto rail: issuance, installments, batches, cancellation and PDF retrieval.

Payment errors


These codes answer the bill payment rail: bankslip, utilities, DARF and the bill consult.

Ledger errors


These codes carry the ledger’s side of a payment. What is safe to resend depends on the operation, so read the operation’s error descriptions in the API reference before you resend.

Webhook configuration errors


These codes answer a request that configures where this API pushes event notifications.

Inbound provider webhook errors


These four codes answer the payment provider that posts settlement events to the webhook endpoint. They tell that caller which repair its delivery needs.