Provide personal data
If a guest requests to receive their personal data, this can be facilitated through the use of Sitecore CDP APIs. Sitecore CDP can then provide the personal data in JSON format.
The following is a scenario where a guest requests their personal data.
For example, a customer named Melissa Bloggs requests to see all her personal data that has been processed by Sitecore CDP.
Ensure that you have the unique identifier for the guest making the request, such as the guest's Passenger Number Record (PNR) from your internal system(s).
To provide a guest their personal data:
-
Complete the locate guest function in the REST API to locate the guest's unique guestRef.
-
Complete the retrieve guest function in the REST API to retrieve the guest's personal identifying information.
-
If your organization uses guest data extensions, complete the retrieve guest extension data expanded function to retrieve additional personal identifying information that was captured as a guest data extension.
-
To locate all orders associated with the guest, perform the locate orders function using the REST API.
-
Perform one of the following functions, depending on how the order was retrieved or located:
-
For each order that was located while performing the
locate ordersfunction, perform the retrieve order function. The response includes details for the order. -
For each order that was retrieved performing the
retrieve orderfunction, perform the locate order item function. The locate order item function returns thereferenceIdsof the order items. -
For each order item that was returned performing the
locate order itemfunction, perform the retrieve order item function. -
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.
-
If your organization uses order data extensions, complete the retrieve order expand order items function to retrieve additional order information that was captured as an order data extension.
-
You can share the personal data with Melissa using the provided JSON format or a more readable format of your choice.