O módulo MED permite listar infrações e enviar defesa diretamente pela API.
/api/meds/infractions/list?page=1&perPage=20
curl -X GET 'https://api.vexuspay.com/api/meds/infractions/list?page=1&perPage=10' \ --header 'ci: seu_client_id' \ --header 'cs: seu_client_secret'
/api/meds/infractions/{infractionId}/defense
curl -X POST 'https://api.vexuspay.com/api/meds/infractions/42/defense' \
--header 'ci: seu_client_id' \
--header 'cs: seu_client_secret' \
--header 'Content-Type: application/json' \
--data '{
"analise": "rejeitado",
"justificativa": "Transação legítima, titular reconheceu a operação.",
"proofs": [
"https://seusistema.com/provas/comprovante-1.png"
]
}'