onProductUpdated

Purpose

Triggered when a product's details are updated. Use this hook to track price changes and catalog modifications.

When It Triggers

  • Owner or authorized employee updates a product's price or category

  • Changes are saved to the database

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 updated

data.actorName

string

Name of person who updated

data.productId

string

Item spawn name

data.productName

string

Product display name

data.previousName

string

Previous product name

data.previousPrice

number

Previous price

data.newPrice

number

New price

data.previousCategory

string

Previous category

data.newCategory

string

New category

data.timestamp

number

Server timestamp

Example

Last updated