Webhook — Infrações

Cria um webhook para receber notificações sobre novas infrações Pix abertas contra contas do seu cliente.

POST/webhooks/infractions

Exemplo de requisição

curl -X POST https://api.pix.nixfin.com.br/webhooks/infractions \
  -H "Authorization: Bearer $BS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
       "url": "https://api.cliente.com/wh/infractions",
       "secret": "whsec_xxx"
     }'

Exemplo de resposta

{ "id": "wh_in_001", "event": "infraction.opened", "url": "https://api.cliente.com/wh/infractions" }