update_customer: Update a customer

Description Usage Arguments Details Value See Also

View source: R/customer.R

Description

Update a customer

Usage

1
2
3
update_customer(customerId, account_balance = NULL, coupon = NULL,
  default_source = NULL, description = NULL, email = NULL,
  metadata = NULL, shipping = NULL, source = NULL)

Arguments

customerId

The ID of the customer

account_balance

Integer amount in pence

coupon

A discount on recurring charges

default_source

ID of source to make customer new default

description

Arbitary string

email

customer's email address

metadata

A named list # @param plan ID of the plan to subscribe customer to # @param quantity Quantity you'd like to apply to subscription. Needs plan.

shipping

Optional dictionary

source

A token from get_token # @param tax_percent A positive decimal. Percentage added as tax. # @param trail_end Unix timestamp when trial period ends. Needs plan.

Details

Setting account_balance to negative means the customer will have a credit. A positive amount means it will be added to the next invoice.

description, email, metadata will be set to empty if you POST an empty value.

Value

List object

See Also

Other customers: create_customer, delete_customer, get_customer, list_customers


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