#Javier_1234

1 messages · Page 1 of 1 (latest)

whole ravenBOT
azure horizon
#

what is the variable based on? is it usage?

covert fjord
#

Hello, are you referring to the dynamic prices that are based on our business logic?

azure horizon
#

yep

covert fjord
#

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

azure horizon
#

to clarify, it's always base price + additional amount?

covert fjord
#

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

azure horizon
#

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.

covert fjord
#

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?

azure horizon
#

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)

covert fjord
#

Ok, I had a question, what is the difference between a subscription item vs. (product + price)?

azure horizon
#

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

covert fjord
#

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?

azure horizon
#

what do you mean by If this new price affected the base price of the product?

covert fjord
#

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

azure horizon
#

it'll create a new Price which is automatically archived

covert fjord
#

What does an archived price mean?

azure horizon
covert fjord
azure horizon
#

yep that's correct

covert fjord
#

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.

azure horizon
#

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

covert fjord
#

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?

whole ravenBOT
azure horizon
covert fjord
#

Is there a possibility that specifically the time was only extended by more than an hour and not disabled?

calm flicker
#

Hi @covert fjord I'm taking over this thread

#

Can you tell me what you want to achieve with Stripe API?

covert fjord
#

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?