post https://{host}/v1.1/customer/preferences
Preferences are custom fields created under the preferences category which helps in capturing specific interests of a customer. Example: favorite color, favorite brand. This API allows you to set or update preferences of a customer.
Request Body Parameters
Parameter | Datatype | Description |
---|---|---|
customer | array-obj | Details of the customer and preferences. |
mobile | string | Mobile number of the customer. |
string | Email ID of the customer. | |
external_id | string | External ID of the customer. |
user_id | long | Unique customer ID. |
store | obj | Details of the store. |
code | string | Unique store code associated with the customer. |
id | long | Unique store ID associated with the customer. |
custom_fields | obj | Update customer custom fields. |
field | array-obj | Update customer preferences in each name and value. The name and value depends on what's configured for the org. |