Make a Pix payment

Creates a PIX payment request to a destination PIX key.

This endpoint allows PIX transfers to individuals or businesses using CPF/CNPJ, email, phone number, or random key (EVP).

  • The PIX key must match the format defined in pix_key_type.
  • The CPF/CNPJ provided in document_number must be valid.
  • The birth_date field is required for merchants authorized to process transactions involving minors. If provided:
    • If it matches the CPF submitted, the payment will be created normally.
    • If it does not match, a validation error will be returned.
  • When used, the bank_accounts_allowed field restricts the banks authorized to settle the transaction.

PIX Key types reference

KeyDescription
documentUse a Brazilian document as a key. It could be a CPF or CNPJ document. (also known as Personal ID)
emailUse an email as key. It should be a valid email.
phoneUse a phone number as PIX Key, format: XXYYYYYYYYY. XX - first 2 numbers being the code area YYYYYYYYY - last 9 numbers being phone itself
randomUse a random key as PIX Key in UUID format.

Business Rule Notes

  • pix_key_value auto-fill: if omitted but document_number is provided, the system automatically uses document_number as the PIX key.
  • PIX key normalization (transparent to the client):
    • phone: +55 is added automatically if not present
    • email: converted to lowercase
    • document: non-numeric characters are removed
  • Ownership validation (isSameTaxId): the system queries the processor's DICT and verifies whether the document_number provided matches the PIX key holder. If it does not match → 422.
  • Invalid PIX key: if the key does not exist in the DICT → 422 with pix_key_value.
  • Blocked ISPB: if the destination financial institution is on the merchant's blocklist → 422.
  • Duplicate transaction (VelocityControl): same credentials within a short interval → 409.
  • bank_accounts_allowed: restricts the payment to specific bank accounts. Accepted fields are ispb, account_number, and branch.

Important: internally, this endpoint performs two operations with the provider. First, a DICT query is made to decode the provided PIX key — this is where all validations occur: key existence, match between the payer's document_number and the key holder, and ISPB block check. Only after this query succeeds is the second operation executed: the payment settlement request to the provider. This means errors related to the PIX key (pix_key_value) are returned before any financial movement is initiated.

Body Params
float
required

Decimal value of the amount being charged (in R$)

string
required

Transaction id on the side of the merchant

string

Type of PIX key used.

string

Destination PIX key value.

string

Message sent along with the PIX payment.

string

First name of the one being charged. Highly recommended

string

Last name of the one being charged. Highly recommended

string
required

Document number for the one being charged. Usually CPF for people and CNPJ for companies.

string

Email address for the one being charged. Highly recommended

string

IP address of the one being charged

string

The player's account number on the platform

string

Phone number of the one being charged

bank_accounts_allowed
array of objects

Bank accounts authorized to receive the payment.

bank_accounts_allowed
string

Format: yyyy-mm-dd. Available only for businesses authorized to transact with minors.

string

Depends on merchant config.

For betting merchants: Tag for categorizing transactions, free to use by the merchant.

For other merchants: Required field. Must contain the CNPJ of the establishment responsible for the transaction.

Responses

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json