#ben_api

1 messages ¡ Page 1 of 1 (latest)

feral anvilBOT
#

👋 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/1296818090297921597

📝 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.

wide thicket
#

Hi, let me help you with this.

#

What do you mean by "invoke an SI"?

#

Yes Prices must belong to a Product

#

Each price can be a phase in the schedule?
Phases in the Schedule can specify different sets of Subscription Items, each of which can refer to a Price.

#

What are you trying to achieve exactly?

feral anvilBOT
gritty crag
#

So what we want to achieve, and the last person was very helpful but I failed to ask all relevant questions, is:

In our platform they can create a product which is ultaimtely a subscription service.
The product could be simple and just be bill X every Y
The product could be more complex, so bill X which covers a duration of 3 months, then bill Y every month
The product could have more phases, X for first 3 months (upfront payment), then Y every month for 3 months, then Z every month there after

I am not clear on whether a price can be created and not linked to a product.

If not, can the product have 3 prices that can be used in the 3 phases refernced in the last product type mentioned above?

Pbviously the prices / product must exist in stripe before the subscription cab be created (and subscipriotn item (SI))

plush thicket
#

Hello, thanks for the clarification. Yes products can have multiple prices and you can switch between those prices across different phases of a subscription schedule

#

Have you tried some of this in test mode and gotten stuck anywhere? Happy to help work through it

gritty crag
#

Ok that makes more sense. So I can create one product, lets call it 'My coaching service'. That one product could have 3 prices, 1 of which is default.

I assume the default price doesn't matter and has no bearing on the price applied at release?

When a schedule is created, based on information we store our side that defines the phase order (our schema), the phases would cycle through the prices for that one product?

plush thicket
#

Correct, the default on a price actually only effects things in the Stripe dashboard. In the API you will always be specifying a price ID so we will charge whatever amount that price is for

#

And correct, that is exactly how subscription schedules work

gritty crag
#

OK great, I think i have a good understanding of this now. We will create one product but it will have multiple prices where necessary. We will check this when creating subscipritons and where this is present, create a schedule instead which will automatically create the subscription.

End behaviour of release will roll over the subscription to the last price in the schedule.

End behaviour of cancel will cancel the subscription immediately at the end of the schedule

products with a single price won't require a schedule and continue indefinitely unless the product is configured our side with a limited duration. In this circumstrance, it is best crearted via schedule with one phase with the cycle being equal to the duration intended

plush thicket
#

Yep, sounds like you have it! Let us know if you run in to any other questions

gritty crag
#

Thanks Pompey!

#

one last question!

#

If I am creating a subscription that should start in 5 days... must this be done via a schedule, or can this be facilitated via a normal subscription?

plush thicket
#

Yes the best way to do that would be a schedule, I've heard of some users using a trial to do this without a schedule but that creates another invoice and the messaging on it can be confusing if there isn't actually a trial happening

gritty crag
#

But is there not a start_date field in the schedule? I assumed this value means the schedule + subscription would get created, but would not be active until the start_date occurs? Is that not the way do it instead of a trial? As with a trial period, is it not technically active right away?

plush thicket
#

Oh sorry I mistyped

#

Yes the best way to do that is through the schedule.

#

start_date through the schedule is exactly how you should do it. I think my brain got a bit ahead of itself