MagenMagen Docs

Infractions (MED)

When a payer disputes a Pix via Bacen's MED (Special Refund Mechanism), an infraction is created in your account. Use these endpoints to list, investigate and submit a defense.

When to use each one

QuestionEndpoint
Which open infractions are in my account?GET /user/infractions
Detail of a specific infractionGET /user/infractions/{id}
I want to contest the disputePOST /user/infractions/{id}/defenses
Which defenses have I already submitted for it?GET /user/infractions/{id}/defenses
Detail of a specific defenseGET .../defenses/{defenseId}

The deadline to respond to an infraction is set by Bacen, usually 72h. Without a defense within the deadline, the amount may be refunded automatically. Configure an internal alert when receiving the infraction via callback.

Examples

Dispute flow

Tutorials and best practices

On this page