Rectify personal data
If a guest requests that you update their personal data, this can be facilitated through the use of Sitecore CDP APIs. The following is a scenario in which a guest requests an update to their personal data.
For example, a guest requests that their gender data is rectified from male to female.
To rectify a guest's data:
-
Complete the locate guest function in the REST API to locate the guest's unique
guestRef. -
Follow the update guest function in the REST API to rectify the data in the guest record. For example, pass a string value of
Femaleto thegenderattribute. -
To locate all orders associated with the guest, perform the locate orders function using the REST API. This provides you with the orderRef attribute required for the update order contact and update order consumer functions.
-
For each order on which the guest is a contact, perform the update order contact function using the REST API.
-
For each order on which the guest is a consumer, perform the update order consumer function using the REST API.
The guest's profile is now rectified with the correct personal information. Any orders on which the guest is a contact and/or consumer will also have the correct personal information.