Function allAvailableMarketing

  • Builds a Subscription requesting MARKETING consent on every channel the profile has an identifier for. Mirrors the server's default behavior when no consent object is sent, but requesting it is a deliberate call.

    Parameters

    • listId: string

      ID of the Klaviyo list to subscribe the profile to

    • Optional customSource: string

      Optional signup-source label, stored as the consent record's $source

    Returns Subscription