#krishna008
1 messages ยท Page 1 of 1 (latest)
Hi! Let me help you with this.
What doc are you looking at?
And what do you mean by "subscription for 5 years"?
5 years as 1 billing period, or a Subscription that lasts for 5 years with a different billing period (e.g. monthly)?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
5 years means: each month deduct for 5 years.
You can set cancel_at to 5 years in the future when creating the Subscription: https://stripe.com/docs/api/subscriptions/create#create_subscription-cancel_at
if I set can_at null then what will happen?
What does it take just number or date?
The Subscription will go on indefinitely.
I believe a Unix timestamp
if I pass value then? like 5
It needs to be a (Unix timestamp of the time you create the Subscription + 5 years in seconds)
okay sir.
One more question
I want to see how long subscription will be in dashboard
where can I see
pi_3NprpaDBfYojrB0W0mlZNqQk
I am not sure we show this in the Dashboard. But you can get this via API.
how sir?
You can retrieve the Subscription and look for cancel_at property: https://stripe.com/docs/api/subscriptions/retrieve
Okay sir.
Happy to help!
Thank you so much. Can you please wait 5 min. I am just trying.
Sure
Received unknown parameter: cancel_at
Could you please share the Request ID req_xxx? https://support.stripe.com/questions/finding-the-id-for-an-api-request
Sorry , I passed it to price
I will pass it to subsciption
I have done for 1 year
I wil do for 5 years
๐