getService( )


Developer Preview

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

Retrieves a service.

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
Learn more about app permissions.
Method Declaration
Copy
function getService(serviceId: string): Promise<Service>;
Method Parameters
serviceIdstringRequired
Returns
Return Type:Promise<Service>
JavaScript
import { services } from "@wix/bookings"; async function getService(serviceId, options) { const response = await services.getService(serviceId, options); }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?