New OCC endpoints allow B2B customers to retrieve their accessible organisational units (GET /{baseSiteId}/orgUsers/{userId}/orgUnits) and set a default unit at login (PUT /{baseSiteId}/orgUsers/{userId}/defaultOrgUnit).
Implementing B2B Commerce Enhancements
Objective
B2B Unit and Customer APIs
B2B Consent Management
The consent management framework has been extended to B2B users. B2B customers can now grant or withdraw consent through OCC API endpoints consistent with the B2C consent pattern.
Purchase Order Number in Quote Creation
The quote creation OCC API now accepts an optional purchase order number parameter during quote initialization.
Enhanced Customer Manager Access Control for B2B OCC APIs
The customermanagergroup user group now follows a whitelist-based access control model for B2B OCC API endpoints. Only explicitly permitted endpoints are accessible to this group, enforcing secure-by-default behaviour for customer service agents. Review and update any custom B2B endpoint exposure if you extend the whitelist.
Isolated B2B Punchout Session Scopes
Punchout sessions are now scoped per user, preventing cross-session invalidation when multiple buyers operate simultaneously. The fix addresses session timeout race conditions in high-concurrency B2B procurement environments.
B2B Cart Quote Validation Performance
Quote status checks during cart operations can now use direct CartModel persistence objects, bypassing unnecessary service-layer calls. Enable via the feature toggle documented in the linked page to reduce server load in B2C deployments where quote functionality is not used.
Lesson Summary
- New OCC endpoints enable B2B customers to retrieve organizational units and set a default unit at login.
- Consent management has been extended to B2B users with OCC API endpoints consistent with the B2C pattern.
- Quote creation now accepts a purchase order number parameter; customer manager access control uses a whitelist model.
- Punchout sessions are scoped per user to prevent cross-session invalidation in high-concurrency environments.
- Cart quote validation performance can be improved by bypassing unnecessary service-layer calls via a feature toggle.