API Reference
Get a charge
/v2/cob/{txid}https://pix.efi.mimicr.dev · provider: https://pix-h.api.efipay.com.brGets an immediate charge. Once paid, status is CONCLUIDA and pix lists the received Pix and its refunds. As in Efí's docs, calendario.expiracao comes as a string on reads.
Scope: cob.read.
Authorization
Bearer token in the Authorization: Bearer <token> header. See Authentication.
Path parameters
Transaction id (^[a-zA-Z0-9]{26,35}$).
Query parameters
Revision to fetch. Without it, the latest one.
Responses
200Charge.
Dates of the charge.
Show child attributes
Creation date and time (RFC 3339).
"2026-10-21T23:39:59.454Z"Lifetime of the charge in seconds, counted from calendario.criacao. Must be greater than zero; the default is 86400 (24 hours).
"3600"Transaction id: alphanumeric, 26 to 35 characters (^[a-zA-Z0-9]{26,35}$).
"7978c0c97ea847e78e8849634473c1f1"Revision of the resource. Starts at 0 and increases on every change.
1Linked location (payload).
Show child attributes
Location id.
1Payload URL, without the scheme, used in the QR code.
"qrcodespix.efi.mimicr.dev/v2/435797fb907ddc8281611ac631b704bf"Charge type of the location: cob or cobv.
"cob"Creation date and time (RFC 3339).
"2026-10-21T23:39:59.435Z"Payload URL, without the scheme, used in the QR code.
"qrcodespix.efi.mimicr.dev/v2/435797fb907ddc8281611ac631b704bf"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.
"150.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).
"Informe o número do pedido."BR Code (Pix Copy and Paste) of the charge.
"00020101021226830014BR.GOV.BCB.PIX2561qrcodespix.efi.mimicr.dev/v2/435797fb907ddc8281611ac631b704bf5204000053039865802BR5912EXEMPLOS EFI6008SAOPAULO62070503*..."400cobranca_nao_encontrada: no charge with this txid.
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"