Headless Guest Support for Cart and Checkout APIs Using JWT
Implement headless guest cart and checkout flows in B2B Commerce using a JSON Web Token (JWT) to establish guest identity and authorization. This approach enables secure, token-based interactions with Commerce APIs for guest users in headless storefronts.
Headless guest support allows anonymous users to interact with Commerce APIs without requiring authentication as registered users. JWT tokens securely identify and authorize guest sessions.
- Guest users can browse, add items, and complete checkout without logging in.
- Guest identity remains consistent across requests using UVID and JWT.
- Use a backend-for-frontend (BFF) pattern to invoke Cart and Checkout APIs securely.
Before implementing headless guest support, make sure that you have:
- Active Experience Cloud site
- Web store launched and configured
- Valid domain configured
- Commerce API access enabled
- Appropriate API permissions configured
- Backend application for handling guest user management
- Capability to generate and manage UVIDs
- Secure storage for OAuth credentials