Releases
When a catalog is published, a catalog release is created. A catalog release provides a snapshot of the product information taken at the time of publication. You can have one or more catalog releases available in your organization or in your store. If you publish a catalog for your organization, the catalog is available when the store is launched.
If you have more than one catalog published for your store, use catalog rules to specify when to display each catalog. For example, you can use catalog rules to schedule a catalog to appear during a particular date and time, such as a seasonal catalog. The catalog may have different pricing than the other catalogs.
When a catalog is ready to be used in a store, you publish it. You can create and publish catalogs for different contexts and channels.
Here are some pointers to understand a catalogs' lifecycle.
- The default catalog is always the oldest published catalog and must have have at least one release.
- At any time, the most recent three catalog releases are maintained. Hence, if there is a fourth catalog release, the first catalog release is automatically removed.
- Until the catalog is published again, the previously created three catalog releases stay permanently.
- If you want any other catalog to become the default catalog, you must create a catalog rule.
- If you want the oldest published catalog to become the default catalog, you must remove the catalog rule.
- Use the
sort_order
value in thevariations
to program your storefront to display the variation options in the order that you want.
Here is a diagram that describes a catalogs' lifecycle:
Publishing catalogs
When you publish a catalog, the live
products in the hierarchies appear in a catalog release. A catalog release provides a snapshot of product information taken at the time of publication. You can have one or more catalog releases available in your organization or in your store. If you publish a catalog for your organization, the catalog is available when the store is launched.
If you have more than one catalog published for your store, use catalog rules to specify when to display each catalog. For example, you can use catalog rules to schedule a catalog to appear during a particular date and time, such as a seasonal catalog. The catalog may have different pricing than the other catalogs. You can have multiple published catalogs.
When a catalog is ready to be used in a store, you publish it. You can create and publish catalogs for different contexts and channels. You can see the differences between the last two consecutive catalog releases. See Publish a catalog.
You retrieve catalogs for your shopper experience by using the Catalog View API.
📄️ Publishes a catalog
Publishes a catalog. You must publish a catalog before you can retrieve that catalog in an organization or store. The hierarchies, live products, and prices associated with a published catalog are in read-only mode. If you make a change to these resources, for example, a change to your price book or hierarchies, you need to republish the catalog.
📄️ Gets all authorized catalog releases
Returns a list of all published releases of the specified catalog. Currently, published catalogs are limited to the current release and two releases prior to the current release. You can see the differences between the last 2 consecutive catalog releases using the `delta` link returned in the response of a `publish a catalog` endpoint.
📄️ Deletes all releases
Deletes all releases of the specified published catalog.
📄️ Get a catalog release by ID
Retrieves the specified catalog release.
📄️ Deletes a release
Deletes the specified published catalog release.
📄️ Get the catalog release as shoppers
Returns a list of all published releases of the specified catalog.