Customer Preferences
Customer preference management operations
Get all preferences for a customer
Returns a map of all preferences associated with a customer, grouped by preference group code. Note: when called by a portal member principal, the customerId is ignored and the caller's own customer record is always used instead.
Create a new customer preference
Creates a new preference for a customer with the provided data. Staff and M2M callers holding CUSTOMER_PREFERENCES_WRITE may write any customer's preferences. A portal member holding PORTAL_SELF_WRITE may write only their own preferences; the supplied customerId is ignored in favor of the caller's resolved customer identity.
Delete a customer preference
Deletes an existing customer preference by its ID. Staff and M2M callers holding CUSTOMER_PREFERENCES_DELETE may delete any customer's preferences. A portal member holding PORTAL_SELF_WRITE may delete only their own preferences; the supplied customerId is ignored in favor of the caller's resolved customer identity.
Get a customer preference by ID
Returns a single customer preference by its ID. Note: when called by a portal member principal, the customerId is ignored and the caller's own customer record is always used instead.
Update a customer preference
Updates an existing customer preference with the provided data. Staff and M2M callers holding CUSTOMER_PREFERENCES_WRITE may write any customer's preferences. A portal member holding PORTAL_SELF_WRITE may write only their own preferences; the supplied customerId is ignored in favor of the caller's resolved customer identity.