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:
- Item families
- Price variants
- Items (plans, add-ons, charges)
- Item prices
- Attached items (which add-ons go with which plan)
- Coupons
- Features and entitlements, if you use them
The manual way
- Export the catalog from the source site, either with Chargebee's export or by listing each record type through the API.
- Compare it with the target site. Match records by ID and note which ones are missing.
- 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
- Pick two connected sites and see exactly what exists on one but not the other, for each record type.
- Copy the missing records in one click. Testabee creates them in the right order.
- It only adds what's missing. It never changes or deletes anything on the target site.
You can also save a site's catalog as a template and restore it on any other site later.