LogoLogo
System Status
2021-12-13
2021-12-13
  • 2021-12-13
  • Charges
    • Charge basics
  • Checkouts
  • Country specifications
  • Customers
  • Events
  • Fees
  • File Links
    • File link basics
  • Files
    • File basics
  • Fulfillments
  • Fulfillment cancellations
  • Fulfillment orders
  • Fulfillment returns
  • Inventory items
  • Inventory levels
  • Invoices
    • Invoice basics
  • Logistics returns
  • Orders
    • Order basics
  • Payouts
  • Plans
    • Plan basics
  • Refunds
  • Reservations
  • Returns
  • Sales summaries
  • Sales transactions
  • Shipments
  • Shipping labels
  • Shipping quotes
  • SKUs
  • SKU Groups
  • Sources
  • Subscriptions
    • Subscription basics
  • Tax identifiers
  • Webhooks
  • Drop-in checkout links
  • Drop-in checkout sessions
    • Checkout-sessions basics
  • Drop-in shipping quotes
  • Store credit callout
Powered by GitBook
On this page
  • The plans resource
  • Identifier
  • Name
  • Terms
  • Contract length and billing intervals
  • Billing offset days
  • Renewal reminder days
  • Collection period days
  • Billing optimization
  • State
  • Lifecycle of a plan
  1. Plans

Plan basics

Learn more about the plans resource.

PreviousPlansNextRefunds

Last updated 5 months ago

On this page, you'll find information on:

The plans resource

define the recurring billing behavior of a group of . 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 reference documentation.

Identifier

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

Name

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

Terms

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

These should be the same 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 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,
    ...
}

This defines a subscription with a binding length of one year. The customer is billed every six months.

{
    ...
    "contractBindingDays": 365,
    "interval": "month",
    "intervalCount": 6,
    ...
}

This defines a subscription with a binding length of one month. The customer is billed every two weeks.

{
    ...
    "contractBindingDays": 30,
    "interval": "week",
    "intervalCount": 2,
   ...
}

Billing offset days

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

Renewal reminder days

Collection period days

Billing optimization

State

Lifecycle of a plan

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

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

The data in this field is used only for compliance and transparency purposes. Therefore, your integration must be set up to allow customers to 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 billingOffsetDays represents how many days before the end of the billing period that Digital River . 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 . Such a configuration could result in the billing process concluding without a successful payment capture but with time remaining in the current cycle.

The reminderOffsetDays represents the number of days before the initiation of billing that Digital River sends you the . 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 , set reminderOffsetDays to 7.

The reminderOffsetDays cannot be greater than the .

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 continues making collection attempts for the number of days you specify.

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

For more information on the state attribute, refer to the section.

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

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

For details, refer to .

collectionPeriodDays
contractBindingDays
lifecycle of a plan
Plans
subscriptions
Plans API
UUID
plan's
invoice's
events
plan's
terms of sale
privacy policy
The plans resource
The lifecycle of a plan
Plans
subscriptions
ended
nextInvoiceDate
opens an invoice
opens an invoice
smart autorenewal service
smart autorenewal service
draft invoice
creating a plan
customer notifications
data.object
type
subscription.extended
subscription.payment_failed
subscription.reminder
terms displayed to customers
cancel subscriptions
renewal reminder event
activate a plan
discontinuing and deactivating plans