onCustomerUnbanned
Purpose
Triggered when a customer is unbanned from a shop. Use this hook to log unbans and update records.
When It Triggers
Owner or authorized employee removes a customer's ban
Ban is removed from the database
Parameters
Parameter
Type
Description
data.source
number
Server ID of who unbanned
data.shopId
string
Unique shop identifier
data.shopName
string
Display name of the shop
data.customerIdentifier
string
Unbanned customer's identifier
data.customerName
string
Unbanned customer's name
data.unbannedBy
string
Name of person who unbanned
data.unbannedByIdentifier
string
Identifier of person who unbanned
data.originalBanReason
string
Original reason for ban
data.originalBannedBy
string
Who originally banned them
data.banDuration
number
How long they were banned (days)
data.timestamp
number
Server timestamp
Example
Last updated