Preloader
Desenvolvedor

MEDs (Infrações)

O módulo MED permite listar infrações e enviar defesa diretamente pela API.

1) Listar infrações
GET /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'
2) Responder infração
POST /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"
    ]
  }'
Status de infração
  • WAITING_PSP: aguardando sua defesa.
  • ACCEPTED: infração aceita.
  • REJECTED: infração rejeitada.
  • CANCELLED: infração cancelada.