Eventos

Inscreva-se neste evento através do endpoint de Criar URL.

Todos os eventos são enviados através de uma requisição HTTP/HTTPS POST com o formato JSON no payload.

Seu endpoint precisa retornar um status code de sucesso na resposta, sendo (2xx) um formato válido, assim consideraremos como entregue. Caso contrário, vamos retentar entregar a notificação mais 2 vezes, depois disso, não vamos mais tentar entregar a notificação deste evento.

O exemplo abaixo é um exemplo de um payload de evento que enviamos.

Infraction

Webhook contendo informações sobre a infração recebida.

{
  "id": "1eff300e-c16e-6d8c-a8e4-cea46f1daf1c",             // Event ID
  "version": "v1",                                          // Event payload schema version
  "account_id": "7ebe2e53-ef21-4e72-a67f-05616f4b6b35",     // Event digital account ID
  "object": "Infraction",                                   // Event object type
  "date": "2025-02-24T22:44:35.824987215Z",                 // Event date and time
  "data": {                                                 // Event payload
    "id": "1eff300e-c113-6a7e-a8e4-f8c7d2c22fce",           // Infraction review ID
    "status": "agreed",                                     // Infraction status ("agreed", "disagreed", "canceled", "pending")
    "analysis_status": "accepted",                          // Infraction review analysis status ("pending", "accepted", "rejected", "delayed", "canceled")
    "analysis_due_date": "2025-02-27T19:33:59.054219-03:00",// Infraction review analysis due date
    "analysis_date": "2025-02-24T22:44:35.824987215Z",      // Infraction review analysis date and time
    "analysis_description": "review description",           // Infraction review analysis description
    "situation_type": "scam",                               // Infraction situation type ("scam", "account_takeover", "coercion", "fraudulent_access", "other", "unknown")
    "transaction_id": "E22896431202502081506NN8NLTestGa" ,  // Infraction transaction end to end ID
    "amount": 1000,                                         // Infraction transaction amount (in cents)
    "infraction_date": "2025-02-24T19:33:59.054219-03:00",  // Infraction date
    "infraction_description": "Detalhes infração",          // Infraction description
    "payer_name": "João da Silva",                          // Infraction payer name
    "payer_tax_id": "59136846058",                          // Infraction payer tax ID   
    "contested_at": null,                                   // Infraction email contestation date time 
    "refund": {                                             // Infraction refund data
      "status": "pending",                                  // Infraction refund status ("pending", "closed", "canceled") 
      "analysis_status": "totally_accepted",                // Infraction refund analysis status ("totally_accepted", "partially_accepted", "rejected")
      "transaction_id": "E22896431202502081506NRKDLTestGa", // Infraction refund transaction end to end ID
      "refunded_amount": 1000,                              // Infraction refund amount (in cents)
      "refund_date":"2025-02-24T19:33:59.054219-03:00",     // Infraction refund date and time
      "rejection_reason": null                              // Infraction refund rejection reason 
    },
    "user": { "name": "Maria da Silva" },                   // User responsible for reviewing the infraction
    "txid": "6e43085c2bee41cb83029bb898f90da6"              // Infraction transaction tx ID
  }
}