#GastonLifschitz
1 messages ยท Page 1 of 1 (latest)
HI ๐
Do you have an example Subscription?
The cancelation details are optional parameters when using the Subscription Cancel API: https://stripe.com/docs/api/subscriptions/cancel
It would be up to your integration to set those values if you are using that API
Actually no, I'm asking about the reason which is something I can't change. This is the API Docs im referring to: https://stripe.com/docs/api/subscriptions/object#subscription_object-cancellation_details
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
The cancellation details are the fields I was referencing
They are optionial parameters so yes it can be null if the Cancel API request did not include these parameters
Do you have an example canceled subscription?
I have 2, "sub_1NHJjyI2QiYH8V4pC8yXYiPa" and "sub_1LMiWKI2QiYH8V4p0kj7K9sX". The first one was a cancellation made from the stripe dashboard, the other one after a payment failed when it was suppose to renew.
For both of them, I didn't use the API for cancellation, that's why the feedback and comment are null. But the reason seems to be present always when retrieving a cancelled subscription
For the first subscription, this was canceled as a result of an API request from a Node.js server https://dashboard.stripe.com/logs/req_lNwoVsgUXBqSrc
No information was provided so there was nothing toadd to the cancellation details
Maybe I'm explaining myself wrong. I'm not talking about the cancellation of the subscription itself. I'm talking about retrieving a cancelled subscription, that returns a subscription object: https://stripe.com/docs/api/subscriptions/object#subscription_object-cancellation_details
The reason field under cancellation_details is not custom and is set by Stripe itself
These values are set when the Subscription is cancelled and if you do not provide them then they won't be populated.