Fee Invoice Charged Event

Please note - If a student has 3 instalments, and a fourth instalment is added, then 4 webhook events will be hit

Event name: FeeInvoiceChargedEvent
Event response:
{
  "event": "FeeInvoiceChargedEvent",
  "payload": {
    "classroom": {
      "_id": "XXXXXXXXXXXXXXX",
      "name": "Personal Training with API User 102",
      "subject": "Yoga and Mindfulness",
      "classNumber": 310134094
    },
    "student": {
      "_id": "XXXXXXXXXXXXXXX",
      "name": "Vishwas Sen",
      "phoneNumber": "XXXXXXXXXXXXXXX",
      "email": "XXXXXXXXXXXXXXX"
    },
    "transaction": {
      "status": "CHARGED",
      "type": "INVOICE",
      "senderId": "XXXXXXXXXXXXXXX",
      "receiverId": "XXXXXXXXXXXXXXX",
      "chargedAt": "2024-05-07T07:48:49.911Z",
      "amount": {
        "value": 10000,
        "currency": "INR"
      },
      "note": "Invoice for Installment 0",
      "metadata": {
        "classId": "XXXXXXXXXXXXXXX",
        "dueOn": "2023-06-14T08:19:06.715Z",
        "dueAfterDays": 30,
        "paid": false,
        "index": 0,
        "paymentOptionId": "",
        "installmentId": "XXXXXXXXXXXXXXX",
        "feeType": "INSTALLMENT",
        "feeAssignedManually": true
      }
    }
  }
}

Last updated