Baloom
  1. Webhooks
Baloom
  • Developers
    • Créer une nouvelle application développeur
      POST
    • Lister toutes les applications développeur
      GET
    • Obtenir une application par ID
      GET
    • Mettre à jour une application
      PATCH
    • Supprimer une application
      DELETE
    • Créer une clé API pour une application
      POST
    • Lister les clés API d'une application
      GET
    • Révoquer une clé API
      POST
  • Webhooks
    • Créer un endpoint webhook
      POST
    • Lister les endpoints webhooks
      GET
    • Obtenir un endpoint webhook par ID
      GET
    • Mettre à jour un endpoint webhook
      PATCH
    • Supprimer un endpoint webhook
      DELETE
    • Obtenir l'historique des événements webhooks
      GET
  • API
    • Lister les produits
      GET
    • Obtenir un produit par ID
      GET
    • Lister les catégories
      GET
    • Obtenir une catégorie par ID
      GET
    • Lister les commandes
      GET
    • Obtenir une commande par ID
      GET
    • Lister les clients
      GET
    • Obtenir un client par ID
      GET
    • Lister les factures
      GET
    • Obtenir une facture par ID
      GET
  • Schemas
    • CreateApplicationDto
    • UpdateApplicationDto
    • DeveloperApplication
    • CreateApiKeyDto
    • ApiKey
    • Product
    • Category
    • Order
    • Customer
    • Invoice
    • PaginatedResponse
    • CreateWebhookEndpointDto
    • UpdateWebhookEndpointDto
    • WebhookEndpoint
    • WebhookEvent
    • WebhookPayload
    • Error
  1. Webhooks

Créer un endpoint webhook

POST
/developers/webhooks/endpoints
Crée un nouvel endpoint webhook. Le secret est affiché uniquement à la création.

Request

Authorization
JWT Bearer
Add the parameter
Authorization
to Headers
Example:
Authorization: ********************
or
Query Params

Body Params application/jsonRequired

Examples

Responses

🟢201Created
application/json
Endpoint webhook créé
Body

🟠400Bad Request
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/developers/webhooks/endpoints?applicationId' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "url": "https://example.com/webhooks",
    "description": "Webhook pour recevoir les événements de commandes",
    "events": [
        "order.created",
        "payment.completed"
    ],
    "retryCount": 3,
    "timeoutSeconds": 30
}'
Response Response Example
201 - Example 1
{
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "applicationId": "97ab27fa-30e2-43e3-92a3-160e80f4c0d5",
    "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
    "url": "string",
    "description": "string",
    "status": "ACTIVE",
    "subscribedEvents": [
        "string"
    ],
    "retryCount": 0,
    "timeoutSeconds": 0,
    "successCount": 0,
    "failureCount": 0,
    "lastSuccessAt": "2019-08-24T14:15:22.123Z",
    "lastFailureAt": "2019-08-24T14:15:22.123Z",
    "lastFailureReason": "string",
    "secret": "string",
    "createdAt": "2019-08-24T14:15:22.123Z",
    "updatedAt": "2019-08-24T14:15:22.123Z"
}
Modified at 2026-01-04 12:06:10
Previous
Révoquer une clé API
Next
Lister les endpoints webhooks
Built with