You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Is there a server-side API to evaluate audience membership by profileId without a user token?

Hello OCC community.

I'm looking for a way to evaluate audience membership from a Server-Side Extension (SSE) without having the shopper's access token available.

From the storefront we use:
GET /ccstore/v1/audienceMembership?filter=AudienceA,AudienceB

This works fine on the frontend since we have the user's Bearer token. However, in our SSE we need to determine whether a given profileId belongs to one or more specific audiences, and we do not have the shopper's token in that context (it's not passed to the SSE for security reasons).

I'm aware that:

  • /ccstore/v1/audienceMembership requires the user's access token or SOFT_LOGIN cookie, without them the shopper is treated as anonymous.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!