Documentation Index Fetch the complete documentation index at: https://docs.yabetoopay.com/llms.txt
Use this file to discover all available pages before exploring further.
Endpoint
GET https://pay.sandbox.yabetoopay.com/v1/account/{accountId}/webhooks # Sandbox
GET https://pay.api.yabetoopay.com/v1/account/{accountId}/webhooks # Production
Authentification
Utilisez votre clé secrète dans l’en-tête Authorization :
Authorization: Bearer YOUR_SECRET_KEY
Paramètres de chemin
Paramètre Type Description accountIdstringVotre ID de compte
Paramètres de requête
Paramètre Type Description limitintegerNombre d’éléments par page (défaut: 10, max: 100) pageintegerNuméro de la page (commence à 1) statusstringFiltrer par statut
Exemple de requête
cURL
JavaScript
Python
PHP
Java
curl "https://pay.sandbox.yabetoopay.com/v1/account/YOUR_ACCOUNT_ID/webhooks?limit=10&page=1" \
-H "Authorization: Bearer YOUR_SECRET_KEY"
Réponse
200 OK
{
"data" : [
{
"id" : "whk_123456789" ,
"object" : "webhook" ,
"url" : "https://example.com/webhooks" ,
"description" : "Webhook de production" ,
"status" : "active" ,
"enabled_events" : [
"intent.completed" ,
"disbursement.completed"
],
"metadata" : {
"environment" : "production"
},
"created_at" : "2023-05-12T10:12:32Z" ,
"last_error" : null ,
"stats" : {
"successful_deliveries" : 150 ,
"failed_deliveries" : 2 ,
"average_response_time" : 245
}
}
],
"meta" : {
"total" : 25 ,
"page" : 1 ,
"limit" : 10 ,
"pages" : 3
}
}
Filtres de statut disponibles
Statut Description activeWebhooks actifs disabledWebhooks désactivés manuellement failedWebhooks désactivés après échecs
401 Non autorisé
{
"message" : "Unauthorized"
}