Architecture
When a catalog price changes, the current amount alone cannot tell you what a customer would have seen last month. Open Mercato records price changes and can calculate a reference price for a product, variant or offer from its history.
In the catalog's Omnibus settings, choose the countries and sales channels to cover. Select the price kind that represents the presented price and the lookback window. The configuration supports a default price kind and channel-specific settings. Use the same currency, price kind and channel when comparing the preview with a storefront offer.
If the configuration reports backfill_required_before_enable, check the channel IDs in the response. Existing prices in those channels require a history baseline before you can enable the setting. The catalog includes the mercato catalog omnibus:backfill command for this purpose. Review the command options and target tenant before running it.
The catalog price editor can show a reference-price preview. For an integration, use GET /api/catalog/prices/omnibus-preview. The route requires catalog.price_history.view and resolves the current tenant and organization scope. It returns monetary values as fixed four-decimal strings. If tracking is disabled for the tenant, the reference-price block is null.
Creating, updating and deleting a price each record a history entry. Undoing an update records the restoration. Inspect the history for the same price kind before investigating a discrepancy in the preview.
Catalog API · Price kinds · Preview endpoint contract · Price-history integration tests
Previous: Module dependency graph · Next: Standalone AI development harness