Remover o webhook
DELETE
/v1/webhooks
const url = 'https://sandbox-api.eagleix-corban.com.br/v1/webhooks';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://sandbox-api.eagleix-corban.com.br/v1/webhooks \ --header 'Authorization: Bearer <token>'Remove o webhook e as entregas pendentes dele.
Autorizações
Seção intitulada “Autorizações”Respostas
Seção intitulada “Respostas”Removido.
Token ausente, inválido ou expirado.
Tipo de mídiaapplication/json
object
code
required
Código estável, para tratamento programático.
string
message
required
Mensagem legível (pt-BR).
string
requestId
Id da requisição, igual ao header X-Request-Id.
string
Example
{ "code": "unauthorized", "message": "token inválido ou expirado", "requestId": "8d1f0c2a9b7e4c3d2a1b0f9e"}Headers
Seção intitulada “Headers”WWW-Authenticate
string
Example
Bearer error="invalid_token"Nenhum webhook cadastrado (nao_encontrado).
Tipo de mídiaapplication/json
object
code
required
Código estável, para tratamento programático.
string
message
required
Mensagem legível (pt-BR).
string
requestId
Id da requisição, igual ao header X-Request-Id.
string
Example
{ "code": "unauthorized"}