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
GET
request 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
policyId
parameter 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-consent
value is set totrue
if the customer gives consent for the data policy, and tofalse
if 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
POST
request on the data policy in thePOST /datapolicies/{scope}/{policyId}/form
format.The parameters for this request are:
scope
: specifies the store that the data policy segment is associated withpolicyId
: Specifies theguid
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.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