Skip to main content

Personal-Data Logs API Overview

When a user’s personal data is changed, an event is logged by Commerce. You can use the Personal Data Logs endpoint to access these logs.

This API is read only, and you cannot add/update/delete logs using this API.

The API only allows you to read all logs for a particular data entry (specified in the filter GET parameter).


Currently, personal data management is only enabled for a limited set of endpoints. See the personal data concepts page for the list of endpoints that support personal data management.

The Log Object


idstringThe unique identifier for the log entry.
store_idstringThe unique identifier for the store id.
typestringThe type of the object. Always equal to personal_data_log_entry.
initiatorstringSpecifies who initiated the personal data change.
timestringSpecifies the time when the change happened.
event_typestringSpecifies the type of the event.
deltastringIncludes fields that were changed as a result of the event.
resource_idstringThe ID of the data entry that was changed.
resource_typestringThe type of the data entry that was changed.
relationships.resource_path.urlstringThe URL of the data entry that was changed.
links.selfstringThe self link.

Response Example

"meta": {
"page": {
"limit": 20,
"offset": 0,
"current": 1,
"total": 1
"results": {
"total": 4
"data": [
"id": "faf8c40f-a680-40ae-b7bc-78533bbdd8c3",
"store_id": "00000000-0000-1000-8000-000000000000",
"type": "personal_data_log_entry",
"initiator": {
"access-token-email": "",
"access-token-id": "1222341536243515939",
"access-token-name": "moltin test team",
"access-token-store-id": "15ea9633-278c-4807-80f7-2009fed63c7e",
"access-token-type": "client-credentials-token"
"time": "2022-04-29T10:51:14.374Z",
"event_type": "user-authentication-info.event.created",
"delta": {
"email": "",
"id": "00000000-0000-1000-8000-111111111112",
"name": "some_name",
"realm_id": "00000000-0000-1000-8000-111111111111",
"store_id": "00000000-0000-1000-8000-000000000000",
"type": "user-authentication-info"
"resource_id": "00000000-0000-1000-8000-111111111112",
"resource_type": "user-authentication-info",
"relationships": {
"resource_path": {
"url": ""
"links": {
"current": "[offset]=0&page[limit]=20",
"first": "[offset]=0&page[limit]=20",
"last": "[offset]=0&page[limit]=20",
"next": "null",
"prev": "null"


The following operator and attributes are required for filtering personal data logs.

eqChecks whether the values of two operands are equal. If the values are equal, the condition is true.