#phezyn_api
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/1398078864852385803
đ 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.
- phezyn_best-practices, 1 day ago, 17 messages
For dynamic / adhoc price, line_items.price_data hash can be used: https://docs.stripe.com/api/checkout/sessions/create?api-version=2025-05-28.basil#create_checkout_session-line_items-price_data
You can set the amount and interval inline in the Checkout Session creation request.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Yeah that's already working properly. Now I'm trying to enable a user to update an existing subscription
I want to overwrite their existing subscription amount with a new amount, is that possible?
You can use Update Subscription API to update a price: https://docs.stripe.com/billing/subscriptions/change-price#changing
The only difference here is to update using items.price_data instead of items.price to create a new adhoc price on the new amount on existing subscription item ID.
And this works fine if the subscription is going to a connected account?
Yes! Subscription uses application_fee_percent if you're collecting a fee from the connected account since it goes by percentage instead of a fixed amount: https://docs.stripe.com/api/subscriptions/update#update_subscription-application_fee_percent
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.