API Reference
API Pix: authenticationPOSTGet a token
Billing · AuthenticationPOSTGet a token (Billing)
Billing · NotificationsGETGet a notification
Keys, balance and settings

Save settings

PUT/v2/gn/config
Base URL: https://pix.efi.mimicr.dev · provider: https://pix-h.api.efipay.com.br

Saves 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/json
pixobjectrequired

Pix settings of the account.

Show child attributes
receberSemChavebooleanrequired

true: accepts Pix by bank details (without a key).

Example: true
chavesobjectrequired

Per-key configuration: each property is a Pix key of the account, with recebimento and envio.

Show child attributes
<chave>object

A Pix key of the account.

Show child attributes
recebimentoobject

Receiving rules of the key.

Show child attributes
txidObrigatorioboolean

true: only accepts Pix with a txid (charges).

qrCodeEstaticoobject

Static QR codes.

Show child attributes
recusarTodosboolean

true: refuses every Pix from a static QR code.

documentoPagadorIgualDevedorboolean

true: only accepts a charge payment when the payer is the debtor.

recusarTipoPessoastring

Refuses charge payments made by individuals (PF) or companies (PJ).

PFPJ
webhookobject

Content of the received Pix webhooks.

Show child attributes
notificacaoobject

Extra fields in gnExtras.

Show child attributes
tarifaboolean

true: adds gnExtras.tarifa.

pagadorboolean

true: adds gnExtras.pagador (name, document and bank).

notificarobject

Which Pix to notify.

Show child attributes
pixSemTxidboolean

true: also notifies Pix without a txid (key or static QR).

envioobject

Content of the sent Pix webhooks.

Show child attributes
webhookobject
Show child attributes
notificacaoobject
Show child attributes
tarifaboolean

true: adds gnExtras.tarifa.

favorecidoboolean

true: adds gnExtras.favorecido.

Responses

204Settings saved.
400json_invalido: the body does not match the schema (details in erros).
nomestringrequired

Error code in snake_case, for example cobranca_nao_encontrada.

Example: "cobranca_nao_encontrada"
mensagemstringrequired

Error message in Portuguese.

Example: "Nenhuma cobrança encontrada para o txid informado"
errosobject[]

Schema validation details (only on json_invalido).

Show child attributes
chavestring

Keyword of the violated rule, for example required, pattern or enum.

Example: "pattern"
caminhostring

Path of the invalid field, for example .body.valor.original.

Example: ".body.valor.original"
mensagemstring

Description of the violation.

401Missing, invalid or expired token, or a token issued for another API (invalid_token).
errorstringrequired

OAuth error code.

invalid_clientinvalid_tokeninsufficient_scopeunsupported_grant_type
error_descriptionstringrequired

Error description.

Example: "Access token has insufficient scope"
403The token lacks the required scope (insufficient_scope).
errorstringrequired

OAuth error code.

invalid_clientinvalid_tokeninsufficient_scopeunsupported_grant_type
error_descriptionstringrequired

Error description.

Example: "Access token has insufficient scope"