API Reference
Save settings
/v2/gn/confighttps://pix.efi.mimicr.dev · provider: https://pix-h.api.efipay.com.brSaves the account's Pix settings: receiving without a key, the rules of each key and the webhook content (gnExtras.tarifa, gnExtras.pagador, Pix without txid). It replaces the whole configuration and answers 204. In Mimicr, receberSemChave, txidObrigatorio, qrCodeEstatico.recusarTodos and recusarTipoPessoa apply to Pix without a charge from the pix.receive action (a refused Pix never arrives), and documentoPagadorIgualDevedor and recusarTipoPessoa to charge payments.
Scope: gn.settings.write.
Authorization
Bearer token in the Authorization: Bearer <token> header. See Authentication.
Body
application/jsonPix settings of the account.
Show child attributes
true: accepts Pix by bank details (without a key).
truePer-key configuration: each property is a Pix key of the account, with recebimento and envio.
Show child attributes
A Pix key of the account.
Show child attributes
Receiving rules of the key.
Show child attributes
true: only accepts Pix with a txid (charges).
Static QR codes.
Show child attributes
true: refuses every Pix from a static QR code.
true: only accepts a charge payment when the payer is the debtor.
Refuses charge payments made by individuals (PF) or companies (PJ).
PFPJContent of the received Pix webhooks.
Show child attributes
Extra fields in gnExtras.
Show child attributes
true: adds gnExtras.tarifa.
true: adds gnExtras.pagador (name, document and bank).
Which Pix to notify.
Show child attributes
true: also notifies Pix without a txid (key or static QR).
Content of the sent Pix webhooks.
Show child attributes
Show child attributes
Show child attributes
true: adds gnExtras.tarifa.
true: adds gnExtras.favorecido.
Responses
204Settings saved.
400json_invalido: the body does not match the schema (details in erros).
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"