#boggerss_subscription-item-endpoints
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1328400574189801513
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- boggerss_api, 1 hour ago, 14 messages
- boggerss_api, 2 hours ago, 21 messages
Hello, what version of stripe-node are you using?
Ah yes good question
And by interface I assume we are talking about the Typescript definition for the params that can be passed to that method?
Yeah exactly the function only takes an ID and options
Even the docs don't seem to make a mention of it
"stripe": "^16.11.0",
Which docs?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
These docs mention params for proration but the code shown for node.js doesn't show that it can be used
If there is someway for me to add a body to the delete call the SDK makes that would be good otherwise I guess my options are to use a rest client like axios and cicrumvent the issue?
There is a way to do that but you may not have to here, looking further into this
Okay thank you for the update
Not sure why but it looks like in stripe_node we hid that param behind two boolean params invoice_now and prorate
https://github.com/stripe/stripe-node/blob/ac941b9d43f12f951ff57e0dca30fc0927e6bdb1/types/SubscriptionsResource.d.ts#L1831-L1839
Thats cancelling a whole subscription though, I just need to remove an item from a subscription that yet to be paid for
But I don't want proration applied on an invoice that has yet to be paid for
Huh, we do have a proration behavior property on our item delete params
https://github.com/stripe/stripe-node/blob/ac941b9d43f12f951ff57e0dca30fc0927e6bdb1/types/SubscriptionItemsResource.d.ts#L356-L359
And it was added 3 years ago which is well before your current library version was created
Do we actually error when trying to build/run your code? Or is this just an intellisense error?
Weird ebcause my IDE doesn't show any parameter for it to fit into
Yeah its intellisense but even the docs for this function don't show options
Ugh
my bad
There are two definition for it
Thanks for putting up with that!!
Ah there we go
Have a good one!
No worries, glad we could solve it!