Guides
API Pix

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:

bash
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" }
  }'
json
{
  "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

json
{
  "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:

json
{
  "pix": [
    {
      "endToEndId": "E09089356202610212340API71276f98",
      "chave": "<chave>",
      "tipo": "SOLICITACAO",
      "status": "REALIZADO",
      "valor": "7.50",
      "horario": "2026-10-21T23:40:27.099Z",
      "gnExtras": { "idEnvio": "envio0001" }
    }
  ]
}
AmountOutcome
Up to R$ 10.00REALIZADO
R$ 10.01 to R$ 20.00NAO_REALIZADO, with gnExtras.erro (code AC03)
Above R$ 20.00422 pagamento_negado right away, no webhook
R$ 4.00 and R$ 5.00REALIZADO, 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 PUT with the same idEnvio and 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-Size with the tokens left. In Mimicr it is 100 sends per minute; after that, 429 balde_fichas_vazio with Retry-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:

json
{
  "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

StatusnomeWhen
400chave_invalidaThe paying key is not the account's, or the payee is a key of the account itself
400saldo_insuficienteThe amount exceeds the available balance
404chave_favorecido_nao_encontradaIn Mimicr, keys ending in @inexistente.com
409id_envio_duplicadoidEnvio repeated with another body
422pagamento_negadoAbove R$ 20.00 in homologation

Reference: Send a Pix.