Managing Data Policy for Customer
Viewing consent of a customer for a data policy
For a data policy segment, you can view all active data policies associated with the data policy segment and view customer consent for each data policy. You must provide the name of data policy segments in the X-Ep-Data-Policy-Segments header. You can specify more than one data policy segments separated by a comma.
To view all data policies associated with the data policy segments, run a
GETrequest in theGET /datapolicies/{scope}format.The scope parameter specifies the store that the data policy segments are associated with.
To view details of a data policy, run
GET /datapolicies/{scope}/{policyId}request.The
policyIdparameter specifies the guid of the data policy. For more information, see Data policies.The data policy details, such as
data-policy-consent,policy-name,policy-reference-key, appear. Thedata-policy-consentvalue is set totrueif the customer gives consent for the data policy, and tofalseif customer revokes the consent or provides no consent at all.
Changing customer consent for a data policy
For a data policy segment, you can view details of an active data policy associated with the data policy segment and change customer consent for the data policy. You must provide the data policy segment name in the X-Ep-Data-Policy-Segments header. You can specify more than one data policy segment separated by a comma.
note
Ensure that the customer consent is given before collecting any personal data. You can use the advisor functionality of Helix to prevent the form submission until consent is granted.
Run a
POSTrequest on the data policy in thePOST /datapolicies/{scope}/{policyId}/formformat.The parameters for this request are:
scope: specifies the store that the data policy segment is associated withpolicyId: Specifies theguidof the data policy. For more information, see Data policies
The data policy details , such as
data-policy-consent,policy-name,policy-reference-key, appear.For
data-policy-consent, set one of the following:true: To give customer consent for the data policyfalse: To revoke customer consent for the data policy