#Javier_1234
1 messages · Page 1 of 1 (latest)
what is the variable based on? is it usage?
Hello, are you referring to the dynamic prices that are based on our business logic?
yep
To give you more context, we will use only one product and price in stripe, that price will be the base price of our subscription,
but each billing month, there will be a subscription where the price will be different, and we want to update the price of that subscription without affecting the base price of the product, each user will have different prices in their subscription,
Note: Regarding the prices defined in the business logic, every month we give away discounts to users, there is already an implementation that manages coupons called talon one, we do not want to use stripe coupons
to clarify, it's always base price + additional amount?
No, the base price will only be the first month of your subscription, the following month should be different, that is, the price can be lower or higher, depending on the user and what our business logic determines, that is why I want to update a dynamic price per subscription
if that's the case, then I don't think using Subscription fits your use case. You would probably want to implement your own logic to charge the customer off-session.
or alternatively, if you still want to use Subscriptions, you can try updating the Invoice Item on the Subscription https://stripe.com/docs/api/invoiceitems/update#update_invoiceitem-price_data
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
in case you haven't seen this yet, you can use test clocks to mimic the passing of time : https://stripe.com/docs/billing/testing/test-clocks
what does this mean ? update the price of the product, create another price for the product or create a single price for the subscription item?
We mainly help with developers who want to integrate directly with the Stripe API here on this channel so we aren't that familiar with the Dashboard
if you're looking for the equivalent for how to do this via the Dashboard, I'd recommend reaching out to Stripe Support instead (https://support.stripe.com/contact/email)
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Ok, I had a question, what is the difference between a subscription item vs. (product + price)?
Products define what you sell and Prices track how much and how often to charge. A Subscription item is like a line item in a receipt i.e. the price/amount, the quantity that the customer is paying for in a Subscription
thanks, is it possible to specifically update the price of a subscription item?
In the documentation it tells me that if it is possible to update a new price to a subscription item, my question is:
If this new price affected the base price of the product?
If I update to another price in the subscription item, will the price be permanent?
thanks, is it possible to specifically update the price of a subscription item?
Yes, using this API https://stripe.com/docs/api/subscription_items/update
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
what do you mean by If this new price affected the base price of the product?
If I update the price, will the price of the stripe product also be updated?
I interpret a subscription item as an instance of the product/price of the base, but not necessarily if I update the price of the product, that will affect my current subscription, so consider that the key to managing dynamic prices is in the subscription item, since that a subscription item is specifically for a subscription and that its price can be updated
it'll create a new Price which is automatically archived
What does an archived price mean?
summarized that updated price with the endpoint https://stripe.com/docs/api/subscription_items/update with archived status can only be used for that specific subscription item, and will not be reflected in the product prices and also cannot be used in future subscriptions?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
yep that's correct
Perfect, do you consider it feasible that using this endpoint https://stripe.com/docs/api/subscription_items/update dynamic prices can be applied? Since that price will remain in an archived state, and will not affect the price of the product or future subscriptions, it will only work for a specific subscription.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
you can test it out and see whether it fits your use case
to me, it looks like it would work. But you wouldn't know till you've tested it out in various scenarios
Perfect, thank you very much, one last question, is it possible to extend the time of the 1 hour window when the subscription creates an invoice with draft status?
You can turn off auto_advance but that will also affect how the invoice is processed. You can read more about auto advancement here : https://stripe.com/docs/invoicing/integration/automatic-advancement-collection
Is there a possibility that specifically the time was only extended by more than an hour and not disabled?
Hi @covert fjord I'm taking over this thread
Can you tell me what you want to achieve with Stripe API?
I want to modify the invoice that creates the subscription in draft status, but the documentation says that they only give a window of one hour, so I would like to know if the window time can be extended?