API Reference
Create a charge
/v2/cobhttps://pix.efi.mimicr.dev · provider: https://pix-h.api.efipay.com.brCreates an immediate charge. Efí sets the txid (32 hexadecimal characters). The response carries the location and the pixCopiaECola to build the QR code.
In homologation, charges from R$ 0.01 to R$ 10.00 are paid on their own within a few seconds and trigger the /pix webhook; above that they stay ATIVA.
Scope: cob.write.
Authorization
Bearer token in the Authorization: Bearer <token> header. See Authentication.
Body
application/jsonDates of the charge.
Show child attributes
Lifetime of the charge in seconds, counted from calendario.criacao. Must be greater than zero; the default is 86400 (24 hours).
3600Individual or company that owes the charge. Send cpf or cnpj, never both.
Show child attributes
CPF, digits only (11 digits).
"12345678909"Debtor's name.
"Francisco da Silva"Amounts of the charge.
Show child attributes
Original amount in BRL (\d{1,10}\.\d{2}), greater than zero.
"5.00"Pix key of the authenticated Efí account that receives the payment.
"d01efe21-d811-41a0-9634-6bb4e7802852"Text shown to the payer (up to 140 characters).
"Cobrança dos serviços prestados."Additional information shown to the payer (nome and valor, up to 50 items).
Show child attributes
Field name (up to 50 characters).
Field value (up to 200 characters).
Show child attributes
Location created with POST /v2/loc and tipoCob cob.
Responses
201Charge created.
Dates of the charge.
Show child attributes
Creation date and time (RFC 3339).
"2026-10-21T23:40:00.109Z"Lifetime of the charge in seconds, counted from calendario.criacao. Must be greater than zero; the default is 86400 (24 hours).
3600Transaction id: alphanumeric, 26 to 35 characters (^[a-zA-Z0-9]{26,35}$).
"f57c97eae45caa148f94074813876865"Revision of the resource. Starts at 0 and increases on every change.
0Linked location (payload).
Show child attributes
Location id.
2Payload URL, without the scheme, used in the QR code.
"qrcodespix.efi.mimicr.dev/v2/613636811a17d1bdd4eabb8716cde048"Charge type of the location: cob or cobv.
"cob"Creation date and time (RFC 3339).
"2026-10-21T23:40:00.070Z"Payload URL, without the scheme, used in the QR code.
"qrcodespix.efi.mimicr.dev/v2/613636811a17d1bdd4eabb8716cde048"Charge status: ATIVA, CONCLUIDA, REMOVIDA_PELO_USUARIO_RECEBEDOR or REMOVIDA_PELO_PSP.
ATIVACONCLUIDAREMOVIDA_PELO_USUARIO_RECEBEDORREMOVIDA_PELO_PSP"ATIVA"Individual or company that owes the charge. Send cpf or cnpj, never both.
Show child attributes
CPF, digits only (11 digits).
"12345678909"Debtor's name.
"Francisco da Silva"Amounts of the charge.
Show child attributes
Original amount in BRL (\d{1,10}\.\d{2}), greater than zero.
"5.00"Pix key of the authenticated Efí account that receives the payment.
"d01efe21-d811-41a0-9634-6bb4e7802852"Text shown to the payer (up to 140 characters).
"Cobrança dos serviços prestados."BR Code (Pix Copy and Paste) of the charge.
"00020101021226830014BR.GOV.BCB.PIX2561qrcodespix.efi.mimicr.dev/v2/613636811a17d1bdd4eabb8716cde0485204000053039865802BR5912EXEMPLOS EFI6008SAOPAULO62070503*..."400chave_invalida, valor_invalido (amount, expiration, CPF or CNPJ), documento_bloqueado or json_invalido.
Error code in snake_case, for example cobranca_nao_encontrada.
"cobranca_nao_encontrada"Error message in Portuguese.
"Nenhuma cobrança encontrada para o txid informado"Schema validation details (only on json_invalido).
Show child attributes
Keyword of the violated rule, for example required, pattern or enum.
"pattern"Path of the invalid field, for example .body.valor.original.
".body.valor.original"Description of the violation.
401Missing, invalid or expired token, or a token issued for another API (invalid_token).
OAuth error code.
invalid_clientinvalid_tokeninsufficient_scopeunsupported_grant_typeError description.
"Access token has insufficient scope"403The token lacks the required scope (insufficient_scope).
OAuth error code.
invalid_clientinvalid_tokeninsufficient_scopeunsupported_grant_typeError description.
"Access token has insufficient scope"