API Reference
Create a charge with txid
/v2/cob/{txid}https://pix.efi.mimicr.dev · provider: https://pix-h.api.efipay.com.brCreates an immediate charge with the txid you choose. The body is the same as POST /v2/cob.
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.
Path parameters
Transaction id (^[a-zA-Z0-9]{26,35}$).
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.
"123.45"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:39:59.454Z"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}$).
"7978c0c97ea847e78e8849634473c1f1"Revision of the resource. Starts at 0 and increases on every change.
0Linked 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.
"123.45"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/435797fb907ddc8281611ac631b704bf5204000053039865802BR5912EXEMPLOS 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"409txid_duplicado: the txid was already used by another charge.
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.