Skip to main content
Version: 8.4.x

Managing Data Policy for Customer

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.

  1. To view all data policies associated with the data policy segments, run a GET request in the GET /datapolicies/{scope} format.

    The scope parameter specifies the store that the data policy segments are associated with.

  2. 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. The data-policy-consent value is set to true if the customer gives consent for the data policy, and to false if customer revokes the consent or provides no consent at all.

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.

  1. Run a POST request on the data policy in the POST /datapolicies/{scope}/{policyId}/form format.

    The parameters for this request are:

    • scope: specifies the store that the data policy segment is associated with
    • policyId: 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.

  2. For data-policy-consent, set one of the following:

    • true: To give customer consent for the data policy
    • false: To revoke customer consent for the data policy