onItemCreated( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Notes:
Permissions
Manage Bookings Services and Settings
Manage Events
Manage Portfolio
Access Verticals by Automations
Set Up Automations
Manage Restaurants - all permissions
Learn more about app permissions.
Method Declaration
Copy
function onItemCreated(handler: function): void;
Method Parameters
handlerfunction

handler(event: ItemCreatedEnvelope): void | Promise<void>

JavaScript
import { items } from "@wix/restaurants"; items.onItemCreated((event) => { // handle your event here });
Did this help?