API Reference
Defend a MED infraction
/v2/gn/infracoes/{idInfracao}/defesahttps://pix.efi.mimicr.dev · provider: https://pix-h.api.efipay.com.brSubmits 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
Infraction id (UUID).
Body
application/jsonResult of your analysis. Use rejeitado to contest the infraction.
rejeitado"rejeitado"Defense justification (up to 1000 characters).
"O cliente reconhece a compra."Responses
201MED infraction defense created.
"Defesa de infração MED criada"400InfracoesConsultaInvalida: invalid id, analise or justificativa.
URI that identifies the problem type, under https://pix.bcb.gov.br/api/v2/error/.
"https://pix.bcb.gov.br/api/v2/error/NaoEncontrado"Short title of the problem.
"Não Encontrado"HTTP status code of the problem.
404Description of the problem.
"Entidade não encontrada."Violations found in the request.
Show child attributes
Reason for the violation.
Property that caused 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"404InfracaoNaoEncontrada: infraction not found.
URI that identifies the problem type, under https://pix.bcb.gov.br/api/v2/error/.
"https://pix.bcb.gov.br/api/v2/error/NaoEncontrado"Short title of the problem.
"Não Encontrado"HTTP status code of the problem.
404Description of the problem.
"Entidade não encontrada."Violations found in the request.
Show child attributes
Reason for the violation.
Property that caused the violation.
409InfracaoOperacaoInvalida: the defense was already created.
URI that identifies the problem type, under https://pix.bcb.gov.br/api/v2/error/.
"https://pix.bcb.gov.br/api/v2/error/NaoEncontrado"Short title of the problem.
"Não Encontrado"HTTP status code of the problem.
404Description of the problem.
"Entidade não encontrada."Violations found in the request.
Show child attributes
Reason for the violation.
Property that caused the violation.
422InfracaoOperacaoInvalida: the defense deadline was exceeded.
URI that identifies the problem type, under https://pix.bcb.gov.br/api/v2/error/.
"https://pix.bcb.gov.br/api/v2/error/NaoEncontrado"Short title of the problem.
"Não Encontrado"HTTP status code of the problem.
404Description of the problem.
"Entidade não encontrada."Violations found in the request.
Show child attributes
Reason for the violation.
Property that caused the violation.