onProductAdded

Purpose

Triggered when a product is added to a shop. Use this hook to track catalog changes and log new product additions.

When It Triggers

  • Owner or authorized employee adds a new product

  • Product is saved to the shop's catalog

Parameters

Parameter
Type
Description

data.source

number

Server ID of actor

data.shopId

string

Unique shop identifier

data.shopName

string

Display name of the shop

data.actorIdentifier

string

Identifier of person who added

data.actorName

string

Name of person who added

data.productId

string

Item spawn name

data.productName

string

Product display name

data.price

number

Sale price

data.category

string

Product category

data.timestamp

number

Server timestamp

Example

Last updated