Guides / Copy a catalog

How to copy a product catalog between Chargebee sites

Last updated

Your test site should match your live site. In practice they drift apart. Here's how to find the differences and copy what's missing.

Why sites drift apart

Someone adds a new price on live and forgets the test site. Someone else builds a plan on test that never goes live. After a few months, tests no longer reflect what customers actually buy.

What to copy, and in what order

A Product Catalog 2.0 catalog is more than plans. Records depend on each other, so create them in this order:

  1. Item families
  2. Price variants
  3. Items (plans, add-ons, charges)
  4. Item prices
  5. Attached items (which add-ons go with which plan)
  6. Coupons
  7. Features and entitlements, if you use them

The manual way

  1. Export the catalog from the source site, either with Chargebee's export or by listing each record type through the API.
  2. Compare it with the target site. Match records by ID and note which ones are missing.
  3. Create the missing records on the target site in the order above, through import or the API.

The comparison step is the slow part. With a large catalog it usually means two spreadsheets side by side.

Be careful when copying into a live site. Check every record before you create it. Copying from live into test is the safe direction.

The faster way with Testabee

You can also save a site's catalog as a template and restore it on any other site later.

Keep test and live in sync

Free for one test site. No credit card needed.

Start free

More guides