MED disputes
Look up Pix disputes for your account and submit evidence for BRPix review.
List disputes
Use GET /v1/infractions with the infractions:read scope. Paginate with page and limit. Pages start at 1 and the default limit is 20, with a maximum of 100. Closed disputes are excluded by default. Use status=CLOSED to list closed disputes. Use status=ACKNOWLEDGED to list acknowledged disputes separately from open ones (OPEN).
curl -sS "https://api.brpix.app/v1/infractions?page=1&limit=20" \ --cert cert.pem --key key.pem \ -H "Authorization: Bearer $ACCESS_TOKEN"
Use the id field of a list item as EVENT_ID in the defense routes.
Check whether a defense can be submitted
Use GET /v1/infractions/{eventId}/defense with infractions:read. The Gateway uses the latest status received by BRPix. If can_defend is true, you can submit a defense for an OPEN or ACKNOWLEDGED dispute for internal review. The Gateway checks the recorded status again on submission.
curl -sS "https://api.brpix.app/v1/infractions/$EVENT_ID/defense" \ --cert cert.pem --key key.pem \ -H "Authorization: Bearer $ACCESS_TOKEN"
Submit the defense
Use POST /v1/infractions/{eventId}/defense with the infractions:write scope. Generate a UUID for DEFENSE_REQUEST_ID and reuse it when retrying the same request after a network error.
Send multipart/form-data with a defense field of 1 to 4,000 characters. The optional files field accepts up to 3 PDF, PNG or JPEG attachments, up to 3 MiB each. The full request body, including fields and multipart framing, can be up to 10 MiB. Requests above that limit return 413. Repeat -F "files=@..." for additional attachments. If file scanning is unavailable, submissions with attachments return 503.
curl -sS -X POST "https://api.brpix.app/v1/infractions/$EVENT_ID/defense" \ --cert cert.pem --key key.pem \ -H "Authorization: Bearer $ACCESS_TOKEN" \ -H "Idempotency-Key: $DEFENSE_REQUEST_ID" \ -F "defense=The order was delivered, as shown in the attached receipt." \ -F "[email protected];type=application/pdf"
A defense_submitted value of true means the defense was registered in the BRPix Compliance review queue. The status field shows the latest dispute status received by BRPix. PratinaPay disputes are available for viewing and return defense_supported: false.
{
"status": "OPEN",
"can_defend": false,
"defense_submitted": true,
"review_status": "PENDING_REVIEW"
}
BRPix Compliance reviews the defense and confirms eligibility with Fyhub before forwarding it. When available, review_status shows the review stage.
| review_status | Meaning |
|---|---|
| PENDING_REVIEW | Awaiting Compliance review |
| SENDING | Submission to the acquirer in progress |
| SENT | Submission to the acquirer completed |
| REJECTED | Submission declined by Compliance |
| SEND_UNKNOWN | Submission outcome has yet to be confirmed |