Consultar webhook.
Consulta um webhook pelo `webhookId`: tipo, URL e se continua habilitado. Se o identificador não existir, a API responde `404`.
GET
OAuth2 webhook.readheader
AuthorizationBearer <token>Escopo: webhook.read
webhookId*stringID do webhook.
Formato
uuidSucesso
application/json- response
id?stringFormato
uuidtype?WebhookTypeValue in
"TRANSFER""RECEIVE""REFUND""CASHOUT""INFRACTION""INVOICE""CRYPTO"uri?stringFormato
urienabled?booleancurl -X GET 'https://cashout.infopago.com.br/api/v2/webhooks/497f6eca-6276-4993-bfeb-53cbbbba6f08'Exemplo de resposta
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "type": "TRANSFER", "uri": "http://example.com", "enabled": true}Listar webhooks cadastrados. GET
Lista as URLs de notificação cadastradas na conta, com tipo e se estão ativas. Use para conferir o que já está configurado antes de criar outro webhook.
Remover um webhook. DELETE
Remove um webhook cadastrado. Depois disso, novas notificações daquele tipo deixam de ser enviadas à URL. O `webhookId` vem da criação ou da listagem.