This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Retrieves a marketing consent.
function getMarketingConsent(
marketingConsentId: string,
): Promise<MarketingConsent>;
Marketing consent ID.
import { marketingConsent } from "@wix/marketing";
async function getMarketingConsent(marketingConsentId) {
const response =
await marketingConsent.getMarketingConsent(marketingConsentId);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.