We have come across a situation while working on a implementation, below is the sequence of requirement
- Some of the users (B2BCustomer), have access to more than one SoldTo (B2BUnit) in the system
- Before starting of the commerce journey, user has to choose a SoldTo
- Selected SoldTo then marked as ‘DefaultB2BUnit’
- Rest of the commerce journey (PLP, Cart, Checkout and Order) is based on selected SoldTo
The challenge here is due to ‘branch’ restriction, user has access to only SoldTo set as ‘DefaultB2BUnit’ and none of the OOTB service let us get the list of all B2BUnit assigned and change the user’s selected one as default. Is there any service available through which we can retrieve all SoldTo’s (B2BUnit) assigned to the user and set one as default after login