Develop Websites
Build Apps
Go Headless
APIs and SDKs
/
onServiceOptionsAndVariantsCreated( )
Notes:
This method registers a callback function as an event handler.
When
developing websites
or
building apps with Blocks
, use a
Velo backend event
instead of this method.
The way you call this method differs depending on the framework you are working in:
When using the
CLI
, run the
generate
command to
add an event extension
, and then call this method within the extension code.
When building a
self-hosted app
,
subscribe your app to the relevant event
, and then call this method on your server.
Permissions
Manage Bookings Services and Settings
Manage Bookings - all permissions
Read Bookings - all read permissions
Manage Bookings
Read Bookings - Public Data
Read Bookings - Including Participants
Picasso private app mega scope
Learn more about
app permissions
.
Method Declaration
Copy
Method Parameters
handler
function
handler(event: ServiceOptionsAndVariantsCreatedEnvelope): void | Promise<void>
Show function Parameters
Example shown:
onServiceOptionsAndVariantsCreated: Wix-hosted
JavaScript
Did this help?
Yes
No