Purchase Webhook

Event: purchase.successful

This webhook event is triggered when a client initiates a policy purchase, and the transaction is successfully completed.

{
    "event": "purchase.successful",
    "data": {
      "id": "e431432e-3daa-11ee-be56-0242ac120002",
      "amount": 5000,
      "status": "successful",
      "reference": "BUY-PSKUEVZSSXVJRPQX",
      "customer": {
        "id": "db0c25ae0-3dab-11ee-be56-0242ac120002",
        "first_name": "Jack",
        "last_name": "Olu",
        "email": "jackolu200@gmail.com",
        "phone": "+2349162753630",
      },
      "product_id": "280798d6-3dac-11ee-be56-0242ac120002",
      "created_at": "2023-08-18T09:47:22.008Z",
      "updated_at": "2023-08-18T09:47:22.008Z",
      "policy_expiry_date": "2023-09-18T09:47:22.008Z",
    },
}

Webhook Parameters And Description

Here are the webhook parameters and their corresponding descriptions:

These parameters contain different information about the transaction and can be used for additional processing or analysis purposes.

Last updated