Guides
Pix send
Send Pix by key or by bank details, pay QR codes and follow the result through the paying key's webhook.
The Pix send (PUT /v3/gn/pix/:idEnvio) takes money out of the account balance. The response only confirms the request was accepted (EM_PROCESSAMENTO); the result, REALIZADO or NAO_REALIZADO, arrives through the paying key's webhook.
Before sending
The key in pagador.chave must belong to the account and have a webhook registered with PUT /v2/webhook/:chave. Without a webhook the send happens, but the result only shows when you query. See Pix webhooks.
Send by key
The idEnvio is yours (^[a-zA-Z0-9]{1,35}$) and is the send's idempotency key:
curl --request PUT \
--url https://pix.efi.mimicr.dev/v3/gn/pix/envio0001 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"valor": "7.50",
"pagador": { "chave": "<chave>", "infoPagador": "Segue o pagamento da conta" },
"favorecido": { "chave": "joao@exemplo.com.br" }
}'{
"idEnvio": "envio0001",
"e2eId": "E09089356202610212340API71276f98",
"valor": "7.50",
"horario": { "solicitacao": "2026-10-21T23:40:23.550Z" },
"status": "EM_PROCESSAMENTO",
"endToEndId": "E09089356202610212340API71276f98"
}Efí's docs show e2eId and the Node SDK expects endToEndId: Mimicr returns both. To check the key's owner, also send favorecido.cpf or favorecido.cnpj; if it does not match, 400 chave_nao_pertence_ao_documento.
Send by bank details
{
"valor": "12.34",
"pagador": { "chave": "<chave>" },
"favorecido": {
"contaBanco": {
"nome": "JOSE CARVALHO",
"cpf": "10519952057",
"codigoBanco": "09089356",
"agencia": "1",
"conta": "123453",
"tipoConta": "cacc"
}
}
}codigoBanco is the ISPB (8 digits), agencia goes without check digit, conta with check digit and no hyphen, tipoConta is cacc or svgs.
The result
About 3 seconds later, the send is decided by the homologation table and the paying key's webhook receives:
{
"pix": [
{
"endToEndId": "E09089356202610212340API71276f98",
"chave": "<chave>",
"tipo": "SOLICITACAO",
"status": "REALIZADO",
"valor": "7.50",
"horario": "2026-10-21T23:40:27.099Z",
"gnExtras": { "idEnvio": "envio0001" }
}
]
}| Amount | Outcome |
|---|---|
| Up to R$ 10.00 | REALIZADO |
| R$ 10.01 to R$ 20.00 | NAO_REALIZADO, with gnExtras.erro (code AC03) |
| Above R$ 20.00 | 422 pagamento_negado right away, no webhook |
| R$ 4.00 and R$ 5.00 | REALIZADO, then received refunds (2 × R$ 2.00 or 1 × R$ 5.00) |
See Homologation rules for Mimicr's differences. With envioRules off, you decide: npx mimicr action efi pix.decide_envio idEnvio=envio0001 ok=false.
Idempotency and queries
- Repeating the
PUTwith the sameidEnvioand the same body returns the same send, without debiting again. With another body,409 id_envio_duplicado. - After a 5xx or a timeout, query Get a sent Pix by idEnvio before trying again.
- There is also Get a sent Pix by e2eId and List sent Pix.
- Every v3 response carries
Bucket-Sizewith the tokens left. In Mimicr it is 100 sends per minute; after that,429 balde_fichas_vaziowithRetry-After.
The old route PUT /v2/gn/pix/:idEnvio still works, with the same body and no Bucket-Size. The same-ownership send only exists in production and answers 403.
Pay a QR code
PUT /v2/gn/pix/:idEnvio/qrcode pays a dynamic QR code with the balance:
{
"pagador": { "chave": "<chave>", "infoPagador": "Pagamento do pedido" },
"pixCopiaECola": "00020101021226830014BR.GOV.BCB.PIX2561qrcodespix.efi.mimicr.dev/v2/…"
}If the QR belongs to an ATIVA charge of the sandbox itself, the charge becomes CONCLUIDA: a way to test receiving and sending together. The amount table does not apply to QR code payments. To read the QR before paying, use Detail a QR code.
Common errors
| Status | nome | When |
|---|---|---|
| 400 | chave_invalida | The paying key is not the account's, or the payee is a key of the account itself |
| 400 | saldo_insuficiente | The amount exceeds the available balance |
| 404 | chave_favorecido_nao_encontrada | In Mimicr, keys ending in @inexistente.com |
| 409 | id_envio_duplicado | idEnvio repeated with another body |
| 422 | pagamento_negado | Above R$ 20.00 in homologation |
Reference: Send a Pix.