Learn more about the plans resource

On this page, you'll find information on:

The plans resource

Plans define the recurring billing behavior of a group of subscriptions. Since plans can be used to perform reporting and bulk operations, you should be careful when adding different subscription products to the same plan.

For complete specifications, refer to the Plans API reference documentation.


When creating a plan, you can specify its id . The value cannot contain whitespaces. If you don't provide an id, Digital River generates a UUID.


A plan's name should describe the subscription products that belong to it. We recommend that you select a name specific enough for inclusion in customer notifications. When Digital River creates a draft invoice at the start of each billing cycle, we use the plan's name to set the invoice's description . We then add invoice.description to the data.object of events with the type of subscription.extended, subscription.payment_failed, and subscription.reminder.


A plan's terms should contain the contractual agreement displayed to customers during the acquisition process. These terms define the subscription, provide links to Digital River's terms of sale and privacy policy, and stipulate that customers agree to store their payment information for use in renewals.

These should be the same terms displayed to customers during the acquisition process.

Contract length and billing intervals

The optional contractBindingDays indicates the agreed upon length of the contract. For example, an annual subscription should have a value of 365.

The data in this field is used only for compliance and transparency purposes. Therefore, your integration must be set up to allow customers to cancel subscriptions after the designated period elapses. Of course, during this contract period, you can always grant customers an exemption and allow them to cancel their subscriptions.

The billing interval is used in combination with the intervalCount. You can set up plans with intervals of day, week, month or year. The intervalCount is how often the customer is billed per the unit of time specified by interval. The intervalCount must be 1 or greater and cannot exceed 1000.

The following examples demonstrate the relationship between these variables:

This defines a subscription with a binding length of one year. The customer is billed annually.

    "contractBindingDays": 365,
    "interval": "year",
    "intervalCount": 1,

Billing offset days

The billingOffsetDays represents how many days before the end of the billing period that Digital River opens an invoice. For example, if you want Digital River to start attempting to capture payment ten days before the billing period ends, set this parameter to 10.

The billingOffsetDays cannot be greater than the collectionPeriodDays. Such a configuration could potentially result in the billing process concluding without a successful payment capture but with time still remaining in the current cycle.

400 Bad Request
    "type": "bad_request",
    "errors": [
            "code": "invalid_parameter",
            "parameter": "collectionPeriodDays",
            "message": "billingOffsetDays cannot be greater than collectionPeriodDays."

Renewal reminder days

The reminderOffsetDays represents the number of days prior to the initiation of billing that Digital River sends you the renewal reminder event. This event should trigger a corresponding event in your system that sends a reminder to the customer.

For example, if you want to set up your system to email a customer one week before Digital River opens an invoice, set reminderOffsetDays to 7.

The reminderOffsetDays cannot be greater than the contractBindingDays.

Collection period days

The collectionPeriodDays represents the number of days that Digital River attempts to collect payment. If you set this parameter to 0 or 1 , we make a single attempt to bill the customer. But if you provide a value greater than 1, and the first billing attempt fails, our smart autorenewal service continues making collection attempts for the number of days you specify.

Billing optimization

Once a plan is created, billingOptimization indicates whether our smart autorenewal service is activated for that plan's subscriptions.


For more information on the state attribute, refer to the lifecycle of a plan section.

Lifecycle of a plan

Plans can be created in a draft or active state. But subscriptions can only be added to active plans. In other words, once you activate a plan, Digital River accepts its identifier when you create a subscription.

After a plan is discontinued, any subscriptions currently on that plan continue renewing. You cannot, however, add any new subscriptions to a discontinued plan.

When a plan is deactivated, any subscriptions currently on that plan become ended on their nextInvoiceDate and any new subscriptions that you attempt to add are blocked.

For details, refer to discontinuing and deactivating plans.

The only two states that allow a plan's subscriptions to continue billing are active and discontinued.

Last updated