Enhancing Commerce Functional Capabilities

Implementing B2B Commerce Enhancements

Objective

After completing this lesson, you will be able to implement B2B commerce API and functionality enhancements, including organizational unit APIs, consent management, quote improvements, access control, and punchout session isolation

B2B Unit and Customer APIs

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).

Retrieve All Assigned B2B Units Using OCC API

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.

B2B Consent Management

Purchase Order Number in Quote Creation

The quote creation OCC API now accepts an optional purchase order number parameter during quote initialization.

Addition of Purchase Order Number in Quote Creation

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.

Enhanced Customer Manager Access Control for B2B OCC APIs

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.

Isolate B2B Punchout Session Scopes

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.

Optimize B2B Cart Quote Validation

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.