getTier( )


Retrieves a loyalty tier.

To retrieve a list of all of a site's tiers, use listTiers().

Permissions
Manage Loyalty
Read Loyalty
Learn more about app permissions.
Method Declaration
Copy
function getTier(tierId: string): Promise<Tier>;
Method Parameters
tierIdstringRequired

ID of the tier to retrieve.

Returns
Return Type:Promise<Tier>
JavaScript
import { tiers } from "@wix/loyalty"; async function getTier(tierId) { const response = await tiers.getTier(tierId); }
Errors

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

Did this help?