How to bulk update plans with the Import tool
Relevant to:
Shopify Checkout Integration
Migrated Shopify Checkout Integration
Use Recharge's Import tool to update existing subscription plans across many products at once with a CSV file.
This guide explains how to prepare a plans CSV file and import it with the Import tool. Use it to change the discount, frequency, or visibility of existing plans on many products at once.
- Shopify Checkout Integration
- Migrated Shopify Checkout Integration
Before you start
- This tool changes existing plans only. To add plans to products or remove them, edit the products in the merchant portal, or use the copy and replace tool to copy the plans from one product to up to 50 others. See How to copy and replace plans in bulk.
- Bulk management tools have a maximum of 25,000 records per CSV file.
- To limit a plan to specific variants, list the variant IDs in
external_variant_idsand sethas_variant_restrictionsto true. Leaveexternal_variant_idsblank to apply the plan to every variant.
Step 1 - Prepare the CSV file
Download the Update plans template and add your plan data:
- In the merchant portal, click Tools & apps and select Bulk updates.
- Click Import a CSV update.
- Under Select an update type, choose Update plans.
- Click Download our template to download the CSV template.
- Add one row per plan, using the columns in the table below.
- Save the file as a CSV.
Tip: Each row needs the plan's plan_id and the Shopify product ID (external_product_id). To get both, download the Plans export from Tools & apps > Exports. To narrow the list to a group of products, such as everything from one vendor, filter your products by vendor in your Shopify admin and export the list.
CSV column reference
Column title |
Summary |
Required |
| plan_id | ID of the plan to update. | Required |
| external_product_id | Shopify product ID the plan belongs to. | Required |
| title | New name of the plan. Must be unique for the product. | Optional |
| discount_type | Type of the discount taken off the product price on every charge. Accepted values: percentage or fixed_amount. | Optional |
| discount_amount | Value of the discount. A percentage discount must be between 0 and 100. A fixed amount discount must not exceed the product's lowest variant price. | Optional |
| product_quantity | Quantity of the product sold under this plan. | Optional |
| sort_order | Position of the plan in the list of plans for this product. Starts at 1. | Optional |
| external_variant_ids | Variant IDs the plan applies to. Separate multiple variant IDs with a comma (,). Leave blank to apply the plan to every variant. | Optional |
| has_variant_restrictions | Set to true when the plan applies only to the variants listed in external_variant_ids. Accepted values: true or false. | Optional |
| channel_settings_merchant_portal | Show the plan in the merchant portal. Accepted values: true or false. | Optional |
| channel_settings_checkout_page | Show the plan on the checkout page. Accepted values: true or false. | Optional |
| channel_settings_customer_portal | Show the plan in the customer portal. Accepted values: true or false. | Optional |
| channel_settings_api | Return the plan through the API. Accepted values: true or false. | Optional |
| charge_interval_frequency | Number of interval units between charges. Must match order_interval_frequency for subscription plans. Must be a multiple of order_interval_frequency for prepaid plans. Leave charge_interval_frequency, order_interval_frequency, and interval_unit blank to keep the plan's current schedule. | Optional |
| order_interval_frequency | Number of interval units between deliveries. Leave charge_interval_frequency, order_interval_frequency, and interval_unit blank to keep the plan's current schedule. | Optional |
| interval_unit | Unit the two frequencies are counted in. Required together with charge_interval_frequency and order_interval_frequency. Leave charge_interval_frequency, order_interval_frequency, and interval_unit blank to keep the plan's current schedule. Accepted values: day, week, or month. | Optional |
| cutoff_day_of_month | Day of the month after which an order moves to the next cycle. Requires interval_unit month. | Optional |
| cutoff_day_of_week | Day of the week after which an order moves to the next cycle. Requires interval_unit week. | Optional |
| order_day_of_month | Day of the month orders are placed on. Requires interval_unit month. | Optional |
| order_day_of_week | Day of the week orders are placed on. Requires interval_unit week. | Optional |
| expire_after_specific_number_of_charges | Number of charges after which the subscription expires. | Optional |
| apply_cutoff_date_to_checkout | Apply the cutoff day to the first order placed at checkout. Accepted values: true or false. | Optional |
| parent_external_variant_ids | Add-on plans only: parent variant IDs the add-on can be attached to. Separate multiple variant IDs with a comma (,). Add-on plans must leave product_quantity, the cutoff and order day columns, and expire_after_specific_number_of_charges blank. | Optional |
| addon_expiration_type | Add-on plans only: how the add-on expires. Use relative with an offset and unit, or absolute with a date. Accepted values: relative or absolute. | Optional |
| addon_expiration_offset | Add-on plans only: number of units until the add-on expires. Requires relative. | Optional |
| addon_expiration_unit | Add-on plans only: unit the offset is counted in. Requires relative. Accepted values: day, week, month, or year. | Optional |
| addon_expiration_date | Add-on plans only: date (YYYY-MM-DD) the add-on expires. Requires absolute. | Optional |
Step 2 - Import the CSV file
After preparing the CSV file, import it into Recharge with the Import tool:
- In the merchant portal, click Tools & apps and select Bulk updates.
- Click Import a CSV update.
- Under Select an update type, choose Update plans.
- Upload your CSV file and click Next: preview update.
- Review the preview and click Confirm: prepare update. Recharge emails you when the update is ready to process.
- Click Process update, then click Update records to confirm.
Was this article helpful?
0 out of 0 found this helpful
