This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Retrieves a resource type by ID.
function getResourceType(resourceTypeId: string): Promise<ResourceType>;
ID of the resource type to retrieve.
import { resourceTypes } from "@wix/bookings";
async function getResourceType(resourceTypeId) {
const response = await resourceTypes.getResourceType(resourceTypeId);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.