Documentation
Create a Pix charge
Generate a Pix charge with a QR code and copy-and-paste code paid straight into the organization's bank account.
Before you start
The charge is issued straight into the organization's bank account, through the integration with the bank. Pix is Brazil's instant payment system. Register the bank credential in the dashboard under Banking → Credenciais (Banking → Credentials) and use an organization token.
Each credential has its own key, the credential key, which you copy from the credentials list (menu ⋯ → Copiar chave da credencial, Copy credential key). It says which credential issues the charge and goes in the X-Credential-Key header. The organization can have more than one credential, including from the same bank.
| Header | Required | Value |
|---|---|---|
Authorization | yes | Bearer <organization token> |
X-Credential-Key | no | key of the credential that issues the charge |
Without X-Credential-Key, the charge goes out through the organization's first active credential (the oldest). If the body sends integrationType, the first active credential of that bank is used.
| Bank | integrationType |
|---|---|
| Sicoob | SICOOB |
| Sicredi | SICREDI |
| Banco do Brasil | BANCODOBRASIL |
| Bradesco | BRADESCO |
| Santander | SANTANDER |
| Inter | INTER |
Create the charge
curl -X POST https://api.intopays.com/v1/pixs \
-H "Authorization: Bearer $INTOPAYS_TOKEN" \
-H "X-Credential-Key: $INTOPAYS_CREDENTIAL_KEY" \
-H "Content-Type: application/json" \
-d '{
"amountOriginal": 95.40,
"calendarExpiration": 900,
"payerRequest": "Pedido #1042",
"debtorName": "Maria Silva",
"debtorDocument": "12345678909"
}'
| Field | Required | Values |
|---|---|---|
amountOriginal | yes | amount in Brazilian reais, greater than zero, with up to two decimal places |
calendarExpiration | yes | how long the charge is valid, in seconds, from 1 |
payerRequest | yes | message shown to the payer, up to 140 characters |
debtorName | no | payer's name |
debtorDocument | no | payer's CPF or CNPJ (individual or company taxpayer ID) |
pixKey | no | receiving Pix key; without it, the credential's key is used |
amountModificationType | no | 0 fixed amount (default), 1 the payer can change the amount |
additionalInfos | no | up to 50 items { "name": "...", "value": "..." } shown to the payer |
integrationType | no | the bank, as in the table above. Only used without X-Credential-Key, to pick the first active credential of that bank. With the key, if sent, it must be the credential's bank |
Response
The API answers 201 with the charge issued at the bank:
{
"id": "200000",
"publicId": "019a8c2e-5b1d-7f3a-9c4e-2d6b8a0f1e37",
"transactionId": "XXXINTOPAYSXXXSICOOBXXXPIX0000000200000",
"status": "ACTIVE",
"integrationType": "SICOOB",
"amountOriginal": 95.4,
"amountModificationType": 0,
"calendarExpiration": 900,
"payerRequest": "Pedido #1042",
"debtorName": "Maria Silva",
"debtorDocument": "12345678909",
"pixKey": "[email protected]",
"qrcode": "00020101021226950014br.gov.bcb.pix2573…",
"url": "https://intopays.com/payment/019a8c2e-5b1d-7f3a-9c4e-2d6b8a0f1e37/pix",
"additionalInfos": [],
"createdAt": "2026-11-15T14:20:06.153Z",
"updatedAt": "2026-11-15T14:20:06.153Z"
}
| Field | Use |
|---|---|
qrcode | the Pix copy-and-paste code; generate the QR code from this text |
transactionId | the charge's identifier at the bank (txid) |
id | the charge's identifier at Intopays, to look it up later |
url | public payment page, with the QR code and the copy-and-paste code. You can send it to the payer |
publicId | identifier of the payment page, the same one that appears in url |
The url page needs no sign-in: anyone with the link sees the amount and the QR code, never the payer's data. It opens by publicId; id and transactionId do not open the page. Links of older charges, which carried the transactionId, keep working.
Status
status | Meaning |
|---|---|
ACTIVE | Waiting for payment |
COMPLETED | Paid |
REMOVED_BY_USER_RECEIVER | Removed by the receiver |
REMOVED_BY_PSP | Removed by the bank, usually because it expired |
To track the payment, register a webhook under Integração → Webhooks (Integration → Webhooks); see Webhooks. Intopays sends the pix.update event when the status changes. You can also read the charge at any time (see Look up Pix charges):
curl https://api.intopays.com/v1/pixs/200000 \
-H "Authorization: Bearer $INTOPAYS_TOKEN"
Errors
| Status | Response | Fix |
|---|---|---|
400 | Param is Missing: <campo> | Send the required field named in the message |
400 | name of the invalid field, such as amountOriginal | Fix the value according to the fields table |
401 | invalid token or inactive subscription | See Authentication |
400 | Bank credential not found for the provided X-Credential-Key | Use the key of a credential of this organization |
400 | The bank credential of the provided X-Credential-Key is inactive | Activate the credential in Credenciais or use another one |
400 | integrationType ... does not match the credential of the provided X-Credential-Key | Remove integrationType or send the credential's bank |
403 | Você precisa criar uma credencial para: SICOOB ("you need to create a credential for: SICOOB") | Register or activate a credential of that bank in Credenciais |
403 | Você precisa criar uma credencial bancária ativa ("you need to create an active bank credential") | Register or activate a credential in Credenciais |
Missing something on this page? Contact support from the dashboard and we'll update the docs.
