Deactivate B2C shoppers

Oracle Commerce now enables merchants to deactivate B2C shopper profiles, offering greater control over who can access the storefront.

This feature empowers merchants to:

  • Prevent specific users from signing into the storefront
  • Block fraudulent or suspicious accounts

Steps to Enable

  1. Enable the feature - Set the enableB2CProfileStatusCheck flag to true using the savePolicies API.

API: PUT /ccadmin/v1/merchant/profilePolicies

Headers:
x-ccsite: siteUS

Payload:
{

   "enableB2CProfileStatusCheck": true

}

  1. Deactivate a Shopper Profile - Use the updateProfile API to set a shopper profile’s active status to false.

API: PUT /ccadmin/v1/profiles/<profile-id>

Payload:

{

   "active": false

}

Tips And Considerations

  • This is a site-level configuration.
  • The default value for enableB2CProfileStatusCheck is:
    • false for migrating customers
    • true for new customers
  • When this feature is enabled, new shopper profiles cannot be created with active: false