stripe_create_coupon: Create a coupon.

Description Usage Arguments Value Examples

View source: R/coupons.R

Description

Create a new coupon in your account.

Usage

1

Arguments

api_key

Your Stripe API Key

args

An list

duration

required Can be forever, once, repeating

id

optional An id to identify. e.g. FALL25OFF

amount_off

optional required if percent_off is not passed. Integer.

currency

optional required if amount_off is passed.

duration_in_months

optional required if duration is repeating.

max_redemptions

optional total amount of times to be used.

metadata

optional A list which can contain anything to further describe.

percent_off

optional required if amount_off not passed.

redeem_by

optional unix timestamp that it ends.

Value

A data frame with the coupon information

Examples

1
2
3
## Not run: stripe_create_coupon("sk_test_BQokikJOvBiI2HlWgH4olfQ2", 
list(amount_off=200, duration='forever'))
## End(Not run)

RStripe documentation built on May 2, 2019, 7:45 a.m.