Skip to main content

Function.useLoyaltyConsent

function useLoyaltyConsent(): ApiResult<{
consent: boolean | null;
}>;

Retrieves the customer's current marketing-consent decision for the application (tri-state). Scoped to the application by the session — consent is per-brand, never global.

Returns​

ApiResult<{ consent: boolean | null; }>

  • An array containing the consent decision, error, and an undefined value.