Webhooks
Remover Webhook
DELETE
/v1/users/webhooks/:idBase URL Produção:
https://api.validapay.com.brBase URL Sandbox:
https://sandbox.validapay.com.brAutenticação
bearerAuthorizationstring · header · obrigatório
Envie no header:
Authorization: Bearer {{token}}Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | string | Required | Id |
Remove um endereço de notificação da conta.
Deletar webhook
const url = 'https://sandbox.validapay.com.br/v1/users/webhooks/:id';
const options = {
method: 'DELETE',
headers: {
'Authorization': 'Bearer {{token}}'
},
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));Response Examples
200200
Deletado com sucesso404404
{
"code": "WEBHOOK_NOT_FOUND"
}