PayZuDocs

Stuck on a Bacen acronym or a field that came back in the response? Here are the terms, statuses, and codes that show up in day-to-day integration, explained in English.

General concepts

TermDefinition
PixBrazilian Central Bank's instant payment system. Runs 24/7, settlement in seconds.
DICTDirectory of Transactional Account Identifiers. Bacen database that maps Pix key → account. Query it before paying.
EMV / BR CodeInternational standard used by Pix to generate copy-and-paste QR Codes. Strings starting with 00020126....
Dynamic QRQR Code with id and (optionally) amount per charge.
Static QRReusable QR Code, the same code for multiple payments.
MEDSpecial Return Mechanism. Bacen process to dispute a Pix in case of fraud or error. Becomes an infraction at PayZu.
Bearer tokenAuthentication token sent in the Authorization: Bearer YOUR_TOKEN header. PayZu's only auth method.
Callback / WebhookPOST that PayZu sends to your callbackUrl when a transaction changes status. Retries up to 40 times with backoff.
IdempotencyGuarantee that running the same operation multiple times has the same effect as running it once. Use clientReference on creation.
Exponential backoffRetry strategy where the interval between attempts doubles (1s, 2s, 4s, 8s). Used by PayZu and recommended for your retry on 5xx/429.
JitterRandom variation added to backoff to avoid the "thundering herd" (clients all hitting at once).

Transaction types (type)

ValueWhat it is
DEPOSITPix charge, money coming into your account.
WITHDRAWPix payment, money going out to a Pix key or QR Code.
COMMISSIONCommission entry credited to the account. May appear in listings and reports.

Transaction method (method)

ValueWhat it is
PIXOperation settled via Pix.
BANK_SLIPOperation via bank slip (boleto).
INTERNAL_TRANSFERTransfer between PayZu accounts, instant. Each leg arrives with type WITHDRAW (payer) or DEPOSIT (receiver).

Transaction status (status)

Status varies by type. Full list:

StatusMeaning
PENDINGAwaiting payment (charge) or processing (Pix payment).
COMPLETEDSuccessfully completed. On deposit: customer paid. On Pix payment: money went out.
CANCELEDCanceled before completion (manually or by rule).
WAITING_FOR_REFUNDAwaiting refund processing (usually after an accepted MED).
REFUNDEDRefunded, amount returned to the payer.
EXPIREDCharge expired without payment (past expiresIn).
ERRORTechnical error during the operation. See cancellationReason in the payload.

Refund status (refundStatus)

ValueMeaning
PENDINGRefund in processing queue.
COMPLETEDRefund processed, amount returned.
CANCELEDRefund canceled before completion.

Pix key types (pixType)

The five key types (cpf, cnpj, phone, email, evp), with the format and an example of each, are in Pix key types.

Infraction / MED

Status (infraction.status)

ValueDescription
WAITING_PSPAwaiting provider response.
OPENInfraction active and under analysis.
ACKNOWLEDGEDAcknowledged by the institution.
DEFENDEDDefense has been submitted.
ANSWEREDAdditional information provided.
WAITING_ADJUSTMENTSAwaiting documentation.
CLOSEDResolved with final decision (see analysisResult).
CANCELLEDCanceled before resolution.

Type (infraction.type)

ValueDescription
REFUND_REQUESTStandard refund request.
FRAUDSecurity-related complaint.
REFUND_CANCELLEDCancellation of a previous refund.

Analysis result (infraction.analysisResult)

ValueDescription
AGREEDInfraction accepted. Refund will be processed.
DISAGREEDInfraction rejected. No refund, transaction maintained.

Reported by (infraction.reportedBy)

ValueDescription
DEBITED_PARTICIPANTPayer's institution opened it.
CREDITED_PARTICIPANTReceiver's institution opened it.

Common API fields

We keep the English names because that's how they go in the JSON.

Identification

FieldWhat it's for
idUnique transaction identifier at PayZu. Environment prefix + UTC date (YYYYMMDD) + random segment + 6 digits derived from the account. Treat as opaque: to date or sort, use createdAt and paidAt, never slice the id.
clientReferenceExternal identifier that you define. Comes back in every callback. Max 64 characters.
virtualAccountVirtual subaccount (up to 50 chars) for multi-tenant (stores, branches, marketplaces). Returned in the callback.
endToEndIdUnique identifier of the operation at Bacen. Format E + 32 characters. Useful in disputes.
requestIdUnique ID of the call at PayZu. Appears in every error response (4xx and 5xx). Always log and send it when opening support, investigation traces directly. See Error format.
accountNumberPayZu account number (6 digits). Identifies the account in internal transfers and in the transaction payload.

Amounts

FieldWhat it's for
amountValue in reais (BRL). Ex: 10.90 is R$ 10.90.
serviceFeeChargedFee charged by PayZu on the operation, in reais.

Generated charge

FieldWhat it's for
qrCodeTextPix copy-and-paste code (EMV BR Code). Use in an input with a copy button.
qrCodeUrlPublic URL that renders the QR as PNG. Use directly in <img>.
qrCodeBase64QR Code image in Base64.
generatedNameReference name associated with the charge.
generatedDocumentCPF or CNPJ associated with the charge.
generatedEmailEmail linked to the charge.
expiresInCharge expiration time in seconds. Max 172000 (47h).

Payer

FieldWhat it's for
payerNamePayer's name (arrives in the callback after payment).
payerDocumentPayer's CPF/CNPJ.
payerInstitutionIspbISPB of the payer's bank (8 digits).
payerInstitutionNamePayer's bank name.
payerAccountNumberPayer's PayZu account (in Pix payments and internal transfers).

Receiver

FieldWhat it's for
receiverNameRecipient's name (in Pix payments).
receiverDocumentRecipient's CPF/CNPJ.
receiverInstitutionIspbISPB of the recipient's bank.
receiverInstitutionNameRecipient's bank name.
receiverAccountNumberRecipient's PayZu account (in deposits and internal transfers).

Pix payment by key

FieldWhat it's for
pixKeyRecipient's Pix key. Format depends on pixType.
pixTypeKey type: cpf, cnpj, phone, email, evp.
withdrawPixKeyKey used in the Pix payment (in the callback).
withdrawPixTypeType of the key used in the Pix payment.

Settlement and refund

FieldWhat it's for
paidAtPayment timestamp (ISO 8601). Present after COMPLETED.
cancellationReasonCancellation reason.
refundEndToEndIdEndToEnd ID of the refund.
refundAmountRefunded amount.
refundStatusRefund status: PENDING, COMPLETED, CANCELED.
refundReasonRefund reason.
refundDescriptionRefund description.
refundedAtRefund timestamp (ISO 8601).

Others

FieldWhat it's for
callbackUrlURL where PayZu posts transaction updates.
descriptionFree text for the transaction; on internal transfers, up to 500 characters.
createdAtTransaction creation timestamp (ISO 8601).
updatedAtLast update (ISO 8601).
infractionObject present in the callback when the transaction becomes a MED dispute.

HTTP codes

The full list of HTTP codes and how to react to each is in Error codes.

Additional acronyms (Bacen / Pix)

AcronymExpansion
BacenBrazilian Central Bank.
PSPPayment Services Provider. Each bank/fintech is a PSP.
ISPBBrazilian Payment System Identifier. 8-digit code that identifies each PSP.
SPIInstant Payment System. The Bacen infrastructure that processes Pix.
CACCChecking account (ISO 20022 nomenclature used by Bacen).
SVGSSavings account.
TRANPayment account (transitional).
CUIDUnique string identifier used by PayZu in internal resources (e.g. infraction id).

Next steps

On this page