getLabel( )


Developer Preview

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

Note: The Labels API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the Wix App Market.

Retrieves an item label by ID.

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 getLabel(labelId: string): Promise<Label>;
Method Parameters
labelIdstringRequired

Item label ID.

Returns
Return Type:Promise<Label>
JavaScript
import { itemLabels } from "@wix/restaurants"; async function getLabel(labelId) { const response = await itemLabels.getLabel(labelId); }
Errors

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

Did this help?