#timothy_api
1 messages ยท Page 1 of 1 (latest)
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.
- timothy_api, 9 hours ago, 10 messages
- timothy_api, 16 hours ago, 9 messages
- timothy_api, 19 hours ago, 2 messages
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1255094874257096755
๐ Have more to share? Add details, code, screenshots, videos, etc. below.
๐ happy to help
After I add a subscription item, in the upcoming invoice, I have a remaining time on the item and an entry for the item, so for the same item I have 2 invoice lines. why?
would you mind sharing the request ID?
req_syh5IYP8MN08Fb
Hey! Taking over for my colleague. Let me catch up.
in the upcoming invoice, I have a remaining time on the item and an entry for the item, so for the same item I have 2 invoice lines. why?
That's expected, the upcoming invoice endpoint display the next month and not the current month's invoice, so the prorated item for the current month and an additional item for the next month.
But my total should be $35 = 30 (first main subscrption) + 5 (item)
But the total is $40. I only have the base subscription + 1 additional item.
It is adding the Monthly (30) + Additional Category (5) + Remaining time on Additional Category (5) after 25 Jun 2024 = 40
is it because the 1st month's Monthly has been charged, but the item has not yet. So it will be charged in the next invoice?
Yes. Upcoming invoice is the next month's invoice, so it includes the subscription item for the upcoming month(the regular recurring item), plus any extra items like proration
ok, thanks
Happy to help!
I try to change an item's schedule. I want to decrease the item subscription from 2 to 1. It is not doing anything. Please check.
req_iajhCxVa5PMyq9
This request Id, is for creating the Scheduler, could you please share the requestId of the update API call ?
Ok, maybe that is the problem.
I have a Monthly + 2 x Additional Category. Then I want to delete 1 Additional Category but keeping it active until the next billing date. I thought I need to use this API to change the schedule.
https://api.stripe.com/v1/subscription_schedules
Phase 0 only contains the Monthly.
Phase 1 contains Monthly + Additional Category with quantity decremented by the number of "deletion".
You need to use the update endpoint, otherwise you're just creating a new schedule each time: https://docs.stripe.com/api/subscription_schedules/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.
I use this https://api.stripe.com/v1/subscription_schedules/[schedule_id]
with start_date = now
I am getting an error.
Status code 400
{
"error": {
"code": "parameter_unknown",
"doc_url": "https://stripe.com/docs/error-codes/parameter-unknown",
"message": "Received unknown parameter: start_date",
"param": "start_date",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_tW5IhlJY2SKYZ8?t=1719313867",
"type": "invalid_request_error"
}
}
Did you look at the API? What exactly are you trying to do?
I have a Monthly + 2 x Additional Category. Then I want to delete 1 Additional Category but keeping it active until the next billing date.
I was told here before to change the schedule.
I think you probably just need to remove the start_date parameter from your update call then
when I do that, I get this error.
Status code 400
{
"error": {
"message": "The subscription schedule update is missing at least one phase with a start_date to anchor end dates to.",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_5B8gSzKBwq2Dan?t=1719314063",
"type": "invalid_request_error"
}
}
I am doing in Bubble.
Phase 0 contains the Monthly (qty 1) + Additional Category (qty 2)
Phase 1 contains Monthly (qty 1) + Additional Category with quantity decremented by the number of "deletion"
In the example Additional Category qty (2) => (1)
I don't understand what you're trying to update then? The existing schedule already has those phases?
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
So, what's not working as you need?
hmmm... Let me rerun the testing again.
What is 'testing' exactly? What do you expect to happen that isn't happening?
I was doing a few times (including your suggestion) so i need to see which API call actually make the changes.
Well, the change is scheduled to happen on July 25 2024 as per your API requests. There's no API to call beyond that โ it'll automatically downgrade