#farfa7886
1 messages ยท Page 1 of 1 (latest)
Hi ๐ yes, if a Subscription is canceled, a customer.subscription.deleted Event will be generated. Are you seeing something different in your testing?
what is subscription_schedule.cancel then
That type of Event is generated when a Subscription Schedule is cancelled. Subscriptions and Subscription Schedules are two distinct types of objects in Stripe.
ok
@tacit cloak sorry for ping but during testing how can I pass a user id via metadatya
You pass it to the metadata parameter on the object where you want to store that metadata, either when creating the object or by making a request to update the object.
i mean via the cli
Can you elaborate? You pass it as a parameter the way you do with other parameters in the CLI. A code snippet showing how to use metadata via the Stripe CLI can be found in our API ref:
https://stripe.com/docs/api/metadata?lang=cli
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.