onSocietyWithdrawal
Purpose
Triggered when money is withdrawn from shop society funds. Use this hook to log withdrawals and alert on large transactions.
When It Triggers
Employee or owner withdraws money from the shop's society account
Funds are transferred from business account to personal account
Parameters
Parameter
Type
Description
data.source
number
Server ID
data.shopId
string
Unique shop identifier
data.shopName
string
Display name of the shop
data.amount
number
Amount withdrawn
data.withdrawalMethod
string
'bank' or 'cash'
data.previousBalance
number
Balance before withdrawal
data.newBalance
number
Balance after withdrawal
data.withdrawnBy
string
Name of person who withdrew
data.withdrawnByIdentifier
string
Identifier of person who withdrew
data.timestamp
number
Server timestamp
Example
Last updated