curl --request DELETE \
--url https://api.onepay.la/v1/webhooks/{webhook_id} \
--header 'Authorization: Bearer <token>'// Sin contenido - la eliminación fue exitosa
curl --request DELETE \
--url https://api.onepay.la/v1/webhooks/{webhook_id} \
--header 'Authorization: Bearer <token>'// Sin contenido - la eliminación fue exitosa
curl https://api.onepay.la/v1/webhooks/9e5ccd4a-d2f0-49dd-87fc-a0da752bd166 \
-X DELETE \
-H "Authorization: Bearer sk_test_xxx"
import fetch from 'node-fetch';
const webhookId = '9e5ccd4a-d2f0-49dd-87fc-a0da752bd166';
const response = await fetch(`https://api.onepay.la/v1/webhooks/${webhookId}`, {
method: 'DELETE',
headers: {
Authorization: 'Bearer sk_test_xxx'
}
});
if (response.status === 204) {
console.log('Webhook eliminado exitosamente');
}
import requests
webhook_id = "9e5ccd4a-d2f0-49dd-87fc-a0da752bd166"
response = requests.delete(
f"https://api.onepay.la/v1/webhooks/{webhook_id}",
headers={
"Authorization": "Bearer sk_test_xxx"
},
timeout=15
)
response.raise_for_status()
if response.status_code == 204:
print("Webhook eliminado exitosamente")
// Sin contenido - la eliminación fue exitosa
{
"message": "No query results for model [Modules\\Developer\\App\\Models\\Webhook]."
}
Was this page helpful?