API Reference
API Pix: authenticationPOSTGet a token
Billing · AuthenticationPOSTGet a token (Billing)
Billing · NotificationsGETGet a notification
MED and reports

Defend a MED infraction

POST/v2/gn/infracoes/{idInfracao}/defesa
Base URL: https://pix.efi.mimicr.dev · provider: https://pix-h.api.efipay.com.br

Submits the defense of a MED infraction within the deadline. The infraction moves to EM_DEFESA. Answers 201 with the text "Defesa de infração MED criada".

Scope: gn.infractions.write.

Authorization

Bearer token in the Authorization: Bearer <token> header. See Authentication.

Path parameters

idInfracaostringrequired

Infraction id (UUID).

Body

application/json
analisestringrequired

Result of your analysis. Use rejeitado to contest the infraction.

rejeitado
Example: "rejeitado"
justificativastringrequired

Defense justification (up to 1000 characters).

Example: "O cliente reconhece a compra."

Responses

201MED infraction defense created.
string
Example: "Defesa de infração MED criada"
400InfracoesConsultaInvalida: invalid id, analise or justificativa.
typestringrequired

URI that identifies the problem type, under https://pix.bcb.gov.br/api/v2/error/.

Example: "https://pix.bcb.gov.br/api/v2/error/NaoEncontrado"
titlestringrequired

Short title of the problem.

Example: "Não Encontrado"
statusintegerrequired

HTTP status code of the problem.

Example: 404
detailstringrequired

Description of the problem.

Example: "Entidade não encontrada."
violacoesobject[]

Violations found in the request.

Show child attributes
razaostring

Reason for the violation.

propriedadestring

Property that caused 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"
404InfracaoNaoEncontrada: infraction not found.
typestringrequired

URI that identifies the problem type, under https://pix.bcb.gov.br/api/v2/error/.

Example: "https://pix.bcb.gov.br/api/v2/error/NaoEncontrado"
titlestringrequired

Short title of the problem.

Example: "Não Encontrado"
statusintegerrequired

HTTP status code of the problem.

Example: 404
detailstringrequired

Description of the problem.

Example: "Entidade não encontrada."
violacoesobject[]

Violations found in the request.

Show child attributes
razaostring

Reason for the violation.

propriedadestring

Property that caused the violation.

409InfracaoOperacaoInvalida: the defense was already created.
typestringrequired

URI that identifies the problem type, under https://pix.bcb.gov.br/api/v2/error/.

Example: "https://pix.bcb.gov.br/api/v2/error/NaoEncontrado"
titlestringrequired

Short title of the problem.

Example: "Não Encontrado"
statusintegerrequired

HTTP status code of the problem.

Example: 404
detailstringrequired

Description of the problem.

Example: "Entidade não encontrada."
violacoesobject[]

Violations found in the request.

Show child attributes
razaostring

Reason for the violation.

propriedadestring

Property that caused the violation.

422InfracaoOperacaoInvalida: the defense deadline was exceeded.
typestringrequired

URI that identifies the problem type, under https://pix.bcb.gov.br/api/v2/error/.

Example: "https://pix.bcb.gov.br/api/v2/error/NaoEncontrado"
titlestringrequired

Short title of the problem.

Example: "Não Encontrado"
statusintegerrequired

HTTP status code of the problem.

Example: 404
detailstringrequired

Description of the problem.

Example: "Entidade não encontrada."
violacoesobject[]

Violations found in the request.

Show child attributes
razaostring

Reason for the violation.

propriedadestring

Property that caused the violation.