Ir para o conteúdo
Infopago Developersv1.0.3
Referência da APIAPI de ContasWebhooks

Consultar webhook.

Consulta um webhook pelo `webhookId`: tipo, URL e se continua habilitado. Se o identificador não existir, a API responde `404`.

GET
/webhooks/{webhookId}

Autorização

OAuth2 webhook.read
headerAuthorizationBearer <token>

Escopo: webhook.read

Parâmetros de caminho

webhookId*string

ID do webhook.

Formatouuid

Corpo da resposta

Sucesso

application/json
  1. response
id?string
Formatouuid
type?WebhookType
Value in"TRANSFER""RECEIVE""REFUND""CASHOUT""INFRACTION""INVOICE""CRYPTO"
uri?string
Formatouri
enabled?boolean
Exemplo de requisição
curl -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}