reggi / chargebee-issues

0 stars 0 forks source link

Plan export & import csv incompatable #1

Open reggi opened 8 years ago

reggi commented 8 years ago

Import format is:

"plan[id]","plan[name]","plan[invoice_name]","plan[description]","plan[trial_period]","plan[trial_period_unit]","plan[period]","plan[period_unit]","plan[setup_cost]","plan[price]","plan[currency_code]","plan[billing_cycles]","plan[charge_model]","plan[free_quantity]","plan[redirect_url]","plan[enabled_in_hosted_pages]","plan[enabled_in_portal]","plan[taxable]","plan[tax_code]","plan[invoice_notes]","plan[meta_data]"
"silver","Silver","sample plan","","","","1","month","","5000","USD","","flat_fee","0","","true","true","true","","","","",""

The export format is:

"Plan Id","Name","Invoice Name","Price","Period","Period Unit","Trial Period","Trial Period Unit","Setup Cost","Free Quantity","Billing Cycles","Redirect Url","Status","Archived At","Downgrade Penality","Charge Model","Description","Currency"
"standard-1-month-15-pack-ongoing","Epic Monthly Membership","standard-1-month-15-pack-ongoing","39.84","1","Month","","Day","","0","","","Active","","","Flat Fee","","GBP"
"standard-1-month-12-pack-ongoing","Medium Monthly Membership","standard-1-month-12-pack-ongoing","33.00","1","Month","","Day","","0","","","Active","","","Flat Fee","","GBP"
"standard-1-month-8-pack-ongoing","Taster Monthly Membership","standard-1-month-8-pack-ongoing","29.00","1","Month","","Day","","0","","","Active","","","Flat Fee","","GBP"
"standard-3-month-8-pack-prepaid","Taster 3-Month Membership","standard-3-month-8-pack-prepaid","0.00","1","Month","","Day","95.00","0","3","","Active","","","Flat Fee","","GBP"

There should be a way to export with the same csv columns as the import and include meta_data in the export.

Meena-CB commented 7 years ago

The APIs to copy plans, addons and coupons across sites are available now:

Plans - https://apidocs.chargebee.com/docs/api/plans#copy_a_plan Addons - https://apidocs.chargebee.com/docs/api/addons#copy_an_addon Coupons - https://apidocs.chargebee.com/docs/api/coupons#copy_a_coupon

To be able to use this, we'll need to whitelist the sites so you have access to copy configurations from one site to another. We'll need the list of sites from you (source, destination) so we can add them at our end.