Change History

Change History is a historical log of entity changes made within your Project.

Change History provides a historical log of changes (creations, deletions, and updates) made to the entities in your Project. The data helps you to do the following:

  • track and review changes made to a Project, for example, for security auditing.
  • determine the most interacted entities by Customers and commercetools Composable Commerce users.
  • identify usage patterns, for example, to figure out if additional training is required.

Change History table

You can view the logged data in the Change History table. To access Change History, from the Merchant Center main menu, go to Audit log > Change history.

By default, the Change history table displays the most recently modified record at the top. The table is generated when the page is loaded and is not updated automatically thereafter. To update the visible data, click the Refresh icon.

The Change History table has the following columns:

Information icon

Depending upon your specific table settings, not all columns may be visible in the table view.

  • User: displays information about the user who updated the entity.

    • Merchant Center user name is displayed when change was made through the Merchant Center.
    • Platform is displayed when change was made through ImpEx.
    • ExternalUserIDstring is displayed when change was made through an API Client and the external user ID was provided for the respective API call.
    • Out of the platform is displayed when change was made through an API Client and no external User ID was provided.
  • Customer: provides information about the customer making the change.

    • Customer email address is displayed when change was made through an API Client and the respective API call was made for an authenticated Customer.
    • Anonymous session is displayed when change was made through a Customer who was not authenticated, for example, when using guest checkout.
    • ----- is displayed when no information about the customer is available.
    • Customer deleted is displayed when change was made through an API Client and the respective API call was made for an authenticated Customer, but for any reason the Customer was deleted after the event got logged.
  • Last modified: displays the date and timestamp of the modification along with the action taken, which can be Create, Remove, or Update.

  • Changes: lists details about the entity modifications along with the changed values.

  • Current entity: displays the name of the modified entity. To show the details of the current version of the modified entity, click its name. By clicking the filter icon next to the current entity, the changes of the selected entity will be displayed exclusively.

  • Entity type: indicates the type of the modified entity.

  • Source: displays the name of the application or client used to drive the change:

    • Merchant Center
    • ImpEx
    • API Client Name: name set during the creation of an API Client
    • API Client Not Available: a valid name is not provided when using an API Client to change entities
  • Version update: displays the version of the entity before and after the change.

  • Stores: displays the Store or Stores associated with a given change.

Table settings

The Table settings drop-down allows you to modify the data displayed in the screen.

Column manager

To add or remove table columns, select Column manager. You can drag the columns between the Hidden and Visible columns and reorder the columns by moving the column entries up or down the stack.

To save the changes, click Save settings. To discard the changes, click Cancel.

Layout settings

To modify the table layout, select Layout settings and configure the following:

  • Text visibility: displays full text or text preview inside cells
  • Row density: expands or reduces the padding inside cells

To confirm the changes, click Save settings. To discard the changes, click Cancel.

Filters

Change History is the aggregation of all changes within your Project, and can grow to be very large. Hence, you can filter the log by the time period or column.

Filter by time

By default, the Change history table filters changes made in the last 24 hours. You can also filter changes for the following date ranges:

  • Today
  • Yesterday
  • Last 7 days
  • Last 30 days
  • Custom date range

Filter by column

To filter individually, click Filter and select any of the available filters in the Add filter drop-down.

You can add or remove the following filters individually or in combination:

  • Source: Select one of the supported sources:

    • Merchant Center
    • Platform
    • Out of platform (API Client)
  • Entity type: Select one (is) or more (in) of the supported entity types.

  • Type of changes: Select the type of entity change:

    • Update
    • Create
    • Remove
  • Changes: Select an entity, and the related change or action you want to filter on.

  • User: Select the name of the user you want to filter by.

  • API Client: Select the API Client you want to filter by.

  • Stores: Select one or more Stores you want to filter by using the drop-down or by searching for a Store's key.

    Information icon

    Only users with permissions to view or manage Customers or Orders for a Project globally, or for specific Stores can view this filter. If a user has permissions to view a limited subset of Orders and/or Customers for specific Stores, the user will only be able to select those Stores.

To remove all filters, click Clear all.

Exclude changes initiated by background processes

Change updates are either user-initiated or initiated by a background process. User-initiated changes are manual updates made by the user. Changes initiated by background processes are updates that cannot be triggered manually by a user. They are triggered automatically as a result of user-initiated changes. Some examples are:

  • Sets application version for Discount Codes - the applicationVersion property is only used internally to reserve the use of a Discount Code. Its value is managed by the API, and can change at any time due to internal and external factors. It should not be used in customer logic.
  • Sets isvalid for Product Discounts - the isValid property is added as true when the validFrom date is reached, and then removed after the validUntil date is reached.
  • Changes review rating statistics for Products - the reviewRatingStatistics property is updated when the reviews of a Product change.
  • Changes variant availability for Products - the variantAvailability property is updated when an Inventory entry related to a Product is updated.
  • Changes line item name for Shopping Lists - the lineItemName property is updated in an eventually consistent manner when a Product’s name is changed and referenced in a Shopping List.

To exclude changes initiated by background processes from displaying in the Change history table, click the Display platform-initiated changes toggle.

Toggle to exclude platform-initiated changes from the table.

Contextual views

Merchant Center provides contextual Change History views for entities. To access the contextual Change History view for an entity, click Open change history on the respective entity's details screen.

Option to access an entity's Change History from its details screen.

The contextual view provides a Change history table specific to the entity. The columns visible in the table depends on your specific table settings for the respective entity.

Information icon

Although the Stores column is visible by default in Audit Log, when viewing Orders and Customers entities in contextual view, it must be made visible using the column manager.

Contextual view of the changes made to an entity.

Merchant Center permission

By default, all members of the Administrators Team have access to the Change History in the Merchant Center. The Administrators Team must assign the View all: Audit Log permission to the respective Project and Team.

API Client permission

To access the Audit Log APIs, you must create an API Client that includes the Audit Log scope. You cannot edit an API Client after it's saved.