bonus.granted A deposit got a bonus. One event for each deposit. Start or update the countdown with expires_at.
{
"amount": "40.00",
"bonus_cap_left": "440.00",
"bonus_given": "60.00",
"bonus_percent": "20.00",
"credit": "60.00",
"credited_at": "2026-11-10T10:00:00Z",
"currency": "USD",
"days_left": 27,
"deposit": "200.00",
"expires_at": "2026-12-10T10:00:00Z",
"login": 50123,
"seconds_left": 2332800
}
- amount
- Bonus of this deposit.
- bonus_cap_left
- Bonus the account can still get.
- bonus_given
- Bonus given in the life of the account (the cap counts this).
- credit
- All bonus credit on the account now.
- expires_at
- When the bonus is removed. A later deposit does not move it.
bonus.removed Bonus credit was taken off the account. Stop the countdown when credit is "0.00".
{
"amount": "100.00",
"credit": "0.00",
"currency": "USD",
"login": 50123,
"reason": "withdrawal_above_profit"
}
- reason
- withdrawal_above_profit (the client took deposited money, not only profit), expired, balance_below_credit, margin_level_limit, credit_use_limit (own funds used up: positions closed), zero_balance (balance 0 or less after the last close: all credit removed)
bonus.expiry_reminder Days left reached a value of expiry_notice (default 7, 3, 1). The client also gets the message as MT5 mail.
{
"credit": "60.00",
"currency": "USD",
"days_left": 7,
"expires_at": "2026-12-10T10:00:00Z",
"login": 50123,
"message": "Your bonus credit of 60.00 expires in 7 days, on 2026-12-10 12:00 server time. After that time it is removed from the account.",
"seconds_left": 604800
}
bonus.status Each hour: every account with bonus credit, 500 accounts in each request. Use it to correct the CRM if an event was lost.
{
"accounts": [
{
"bonus_given": "60.00",
"credit": "60.00",
"credited_at": "2026-11-10T10:00:00Z",
"currency": "USD",
"days_left": 27,
"expires_at": "2026-12-10T10:00:00Z",
"login": 50123,
"seconds_left": 2329200
}
],
"part": 1,
"parts": 1
}
deposit.no_bonus A deposit got no bonus because its comment marks a transfer from the client's wallet.
{
"amount": "300.00",
"comment": "Wallet transfer #88412",
"currency": "USD",
"login": 50123,
"reason": "wallet_transfer"
}
webhook.test The plugin started, or the address or key changed.
{
"message": "The Deposit Bonus plugin is connected to this webhook."
}