Bulk managing discounts and addresses
The merchant portal's bulk management feature provides a reliable in-app tool for updating subscriptions, charges, and addresses in bulk. Using this tool, you have the flexibility to perform bulk updates on your own timeline. This guide provides instructions on using the tool to update discounts and addresses in bulk.
Before you start
- Discount and address updates are not compatible with the Multi-select tool.
- To understand all available bulk update opportunities, refer to our course Updating subscriptions at scale.
Update subscriptions with the Import tool
Step 1 - Prepare a CSV file
Note: Bulk management tools have a max limit of 50,000 records. If you need to process more than 50,000 records, you must split the records into multiple CSV files and complete multiple bulk updates using the import tool.
You can use the Import tool to manage discounts and addresses in bulk. You must prepare the CSV file to update discounts and addresses in bulk. How you access the CSV template will differ depending on the update you are making:
CSV access instructions for updating addresses, or applying, removing, or deleting discounts
- In the merchant portal, click Tools & apps and select Exports.
- Download the export that corresponds to the task you are bulk performing:
- Apply discounts - Charges - Queued
- Remove discounts - Charges - Queued
- Delete discounts - Discounts
- Update addresses - Customers - Shipping addresses
- When the export has finished processing, download and open the export.
- Remove any charges from the export that you do not want to update discounts or addresses for.
- For Bulk address updates, use the data from the Customers - Shipping addresses export to fill out the required fields in the Update addresses bulk update template.
CSV access instructions for creating a discount code
- In the merchant portal, click Tools & apps and select Bulk Updates.
- Click Import updates.
- Select Create discounts from the update type options and click Next.
- Click upload template to download Recharge's CSV template for creating a discount code.
Depending on the update type you are performing, you will need to add specific properties to your CSV file. The following table is split into the different bulk update types and lists the columns required for the update. Add columns and delete unnecessary columns in the CSV file using the applicable properties for your bulk update type:
COLUMN TITLE |
SUMMARY |
APPLY DISCOUNTS |
|
address_id |
The numerical Address ID associated with a customer’s subscription. If you need to find Address IDs in Recharge:
This column is required for this update type because discounts apply directly to a customer's address. |
discount_id OR discount_code |
When a discount code is applied to an address, a unique string of numbers is attributed to the code being used. The discount ID identifies a specific discount code used on a single charge. OR The discount code created in the merchant portal. |
REMOVE DISCOUNTS |
|
address_id |
The numerical Address ID associated with a customer’s subscription. If you need to find Address IDs in Recharge:
This column is required for this update type because discounts apply directly to a customer's address. |
CREATE DISCOUNTS |
|
code |
The name of the discount code you wish to create. Discount code names are not case-sensitive. This column is required. |
discount_type |
The type of discount code you are offering. Choose from:
This column is required. |
value |
The numerical value of the discount. This column is required. |
duration |
The number of times the discount automatically applies to a new queued charge after it was first used on a successful charge. Choose from:
This column is required. |
duration_usage_limit |
The specific number of times a discount code will automatically reapply. This column is required if the duration field is set to usage_limit. |
starts_at |
The date This date cannot be a date in the past. If this column is blank, the start date is the date the discount is created. |
ends_at |
The date The discount code will not expire if this column is blank. |
status |
The active status of the discount code. The discount code is automatically enabled if this column is left blank. |
usage_limit |
The maximum number of purchases a discount can apply to. This is typically used when creating unique discount codes for individual customers. No limit will apply if this column is left blank. |
applies_to_resource |
Specifies if this discount code should only apply to a specific product, or products in a specific collection. Choose between:
The discount code will apply to all products and collections if this column is left blank. |
applies_to_id |
The ID of the product or the collection that the discount is limited to. This column is required if the |
applies_to_product_type |
Choose the product types the discount should apply to. Use one of the following options:
The discount code will apply to all products if this column is left blank. |
once_per_customer |
Limit the discount code to one use per customer. Choose between:
If set to |
prerequisite_subtotal_min |
The numerical value that is required as a minimum purchase amount before the discount code is applied. |
first_time_customer_restriction |
Restrict the discount code so that it is only applied to new customers with the value If this column is left blank, both new and existing customers can use the discount code. |
channel_settings |
Limit where this discount code can be added to an order. You must use a valid JSON object with the following rules:
The discount code is available through all channels if this column is left blank. Example:
|
DELETE DISCOUNTS |
|
discount_id |
The Recharge ID of the discount code you wish to delete. You can find the This column is required. |
UPDATE ADDRESSES |
|
address_id |
The numerical Address ID associated with a customer’s subscription. If you need to find Address IDs in Recharge:
This column is required for this update type because discounts apply directly to a customer's address. |
address1 | The customer’s street address. This address may be different than the billing address if the person receiving the subscription and the cardholder live at different addresses. |
address2 | Any additional address information such as apartment number or specific mailbox. This field is not mandatory. |
city | The city where the subscriber is located. |
company (optional) |
The customer's company. |
country_code | The country code for where the subscriber is located. |
first_name | The customer’s first name listed on the subscription. |
last_name | The customer’s last name. |
order_attributes (optional) | Extra information that is added to the order. Each array entry will contain “name” and “value” keys. |
order_notes (optional) | The text placed in the "note" field of orders for an address. To overwrite the order note, enter a space in the field. |
payment_method_id | The ID of the payment method associated with the subscription. |
phone (optional) | The phone number of the person receiving the subscription. This is helpful if there are any problems with shipping or delivery. |
presentment_currency (required for Multi-currency stores only) | Currency that the customer checked out with. |
province | The customer's state or province. |
shipping_lines_override |
If a manual shipping override is present, the Name, Code, and Price of the shipping rate will be listed here. Provide an example of the JSON required if you are setting up a shipping override. The JSON example must be in proper JSON format. For example: [{"code": "FREE", "price": "0", "title": "Recharge Shipping"}]
|
zip | The customer’s zip or postal code. |
Save and export your updated file as a CSV file. The file must be in CSV format to use the bulk management tool.
Step 2 - Import the CSV file
After preparing the CSV file, you must import the file into the bulk management tool.
- From the merchant portal, click Tools & apps and select Bulk updates.
- Click the Import updates button.
- Select your update type from the dropdown menu and click Next.
- Upload the prepared CSV file and click Next.
- Confirm the details of your update and select Validate your file. The validation process may take some time to complete, depending on the size of the file. Once the process is completed, you will receive a confirmation email.
Step 3 - Perform the bulk update
Once your file is validated, you can perform the bulk update.
- In the merchant portal, click Tools & apps and select Bulk updates to view your validated files.
- Click Process update to begin the bulk update.
- On the pop-up modal, click Update subscription(s) to confirm the bulk update.
- Once the update is done, the Processing status will be marked Complete and the Results will display the number of charges updated.
- From the merchant portal, select Customers and open a customer's profile.
- Confirm the correct discount code has been applied or removed, or confirm the customer's address has been updated.
Revert, delete, or cancel the bulk update
If records cannot be processed or you encounter issues with the update, you can revert the bulk update using a backup file. See Revert, delete, or cancel a bulk update.