Checks whether a custom slug is validate for the service.
The checks include:
The call fails if at least one of the checks fails.
You can only call this method when authenticated as a Wix app or Wix user identity.
function validateSlug(
serviceId: string,
options: ValidateSlugOptions,
): Promise<ValidateSlugResponse>;
IO of the service to check custom slug validity for.
import { services } from "@wix/bookings";
async function validateSlug(serviceId, options) {
const response = await services.validateSlug(serviceId, options);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.