Archive entities manually


How to archive inactive entities by invoking the Run Archive Minion request using Postman.

Entity archiving minions run at regular interval to move inactive, eligible Commerce entities stored in the Shared Environments database (SitecoreCommerce_SharedEnvironments), to an archive database (SitecoreCommerce_SharedEnvironments_ Archive).

You can invoke entity archiving minions manually using the sample Postman requests included in the Sitecore Commerce Engine SDK.


Entity archiving is disabled by default in the Commerce Engine.

Ensure that entity archiving is enabled for the entity type in the Commerce Engine.

Using Postman with Sitecore XC

The following instructions assume that you have installed the Postman application, imported the sample collections from the Sitecore Commerce Engine SDK, configured your environment, and retrieved a bearer token to access the Commerce Engine API, as described here.


When you place a call to the Commerce Engine API from outside the Commerce Business Tools (for example, using Postman), you must disable the anti-forgery protection setting in the wwwroot\config.json file.

To archive entities manually using Postman:

  1. In the Collections pane, expand the SitecoreCommerce_DevOps collection. 

  2. Open the Minions folder, and execute the appropriate request for the entity type you want to archive:

    • To archive inactive orders, execute the "Run Archive Orders Minion" request.

    • To archive aged order journal entries, execute the "Run Archive Journals Minion" request.