update_subscription: Update a subscription for a customer

Description Usage Arguments Details Value See Also

View source: R/subscriptions.R

Description

Update a subscription for a customer

Usage

1
2
3
4
update_subscription(subscriptionId, customerId, plan = NULL,
  prorate = TRUE, proration_date = NULL, coupon = NULL,
  source = NULL, quantity = NULL, metadata = NULL,
  tax_percent = NULL, trial_end = NULL)

Arguments

subscriptionId

The ID of the subscription

customerId

The ID of the customer

plan

ID of the plan to subscribe customer to

prorate

Whether to prorate switching plans during billing cycle

proration_date

Timestamp of proration effective. Default current time

coupon

A discount on recurring charges

source

A token from get_token

quantity

Default is 1

metadata

A named list

tax_percent

Postive decimal

trial_end

Unix timestamp or 'now'

Details

Not implemented: application_fee_percent

Value

List object

See Also

Other subscriptions: cancel_subscription, create_subscription, get_subscription, list_subscriptions


MarkEdmondson1234/stripeR documentation built on Nov. 6, 2019, 3:21 p.m.