Managing Prepaid Renewal Behaviors
Control what happens when all prepaid orders are placed — auto-renew, cancel, or downgrade
Each prepaid subscription has a renewal behavior that controls what will happen when all prepaid orders are placed:
autorenew: Renew and bill the customer a full prepaid cycle after all orders are placed. The renewal happens when the first order of the next cycle is placed.cancel: When all orders are placed, the subscription is cancelled. Customers can reactivate it to start a new prepaid cycle.downgrade: Converts the prepaid subscription to a normal subscription when all orders are placed. The next order placed for the subscription will have the price of a single shipment.
All subscriptions will be created using the default renewal behavior, which is autorenew. The default renewal behavior can be changed if you want your customers to have their prepaid subscriptions cancelled or downgraded to normal subscriptions at the end of their cycles. To change the default renewal behavior for your store, please contact us at support@ordergroove.com.
You can also create specific subscriptions with a custom renewal behavior.
How to Create a Subscription with a Custom Prepaid Renewal Behavior
Shopify
To specify a custom renewal behavior when checking out with a prepaid item, a property needs to be added to the line item. The property name is __og_prepaid_subscription_renewal_behavior and the value can be any of the valid renewal behaviors.
You can add this line item property using the Shopify Cart API or by adding this value to the product form on the product page.
This is an example of how an input can be used to set the custom renewal behavior:
Other Platforms
When creating the subscription through the Purchase Post API, the renewal behavior can be controlled via the products[].subscription_info.renewal_behavior field.
Adding the Custom Field
To control the renewal behavior for prepaid subscriptions at the opt-in step, you’ll need to add a hidden input field to your product form (the form that adds items to the cart).
- Open the relevant product template or section file where the
<form>element for adding products to the cart is located (e.g.,product-form.liquid). - Inside the
<form>, add the following hidden input field: - Save and publish the change.
This field will be submitted along with the product when a user adds it to the cart.
You can test this behavior manually without editing the theme code permanently by:
- Editing the HTML through the developer tools.
- Adding the product to the cart.
- Checking
https://yourstore.com/cart.json.
How It Works
By default, prepaid subscriptions auto-renew when the prepaid cycle ends. Adding this custom field gives you control over that renewal behavior. You can set the value attribute to autorenew (default), cancel, or downgrade. See the definitions above for more information.