#olegb-CLI-subs

1 messages · Page 1 of 1 (latest)

gilded yew
#

Hi there! Yep this is possible. You want to trigger events and then use flags to set the necessary params (like to create a trial). You can see how to do this in the CLI reference: https://stripe.com/docs/cli/trigger

subtle kindle
#

its probably staring me in the face, but how do you setup a trial flag?

#

also...side-question.. maybe we have overstepped our bounds, but suddenly customer creation via stripe cli creates a customer fine but with a blank email, is that normal? it used to create example@stripe.com (or similar), now they are all blank emails.. any way to get that working again?

gilded yew
#

Hmm I'm not familiar with whether it used to set a default email for a customer, but you may have to just use a flag to do that now as well. In terms of a trial for the Subscription, you can set the statusto trialing when you trigger a customer.subscription.created event.

#

But that will mostly depend on how your webhook is recognizing a trialing Subscription for how you want to set the flag on the event.