#usamarashad_sub-schedules
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.
- usamarashad_api, 14 hours ago, 3 messages
- usamarashad_best-practices, 5 days ago, 5 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/1247606971142635655
đ Have more to share? Add details, code, screenshots, videos, etc. below.
Hi karbi
Can you clarify what you're actually trying to do? Subscription Schedule phases don't have a concept of bring paid/pending/not due
I have 4 phases in a subscription schedule. I need to determine which ones are paid or still due to be able to make changes to the prices. I understand that phases which are already in the past cannot be changed. So I need to know which ones have passed so my code does not attempt to change those phases.
If you need to know which phases have past, you can check the end_date of each phases and see if it's before the current_phase.start_date (https://docs.stripe.com/api/subscription_schedules/object#subscription_schedule_object-current_phase-start_date)
ok so I check all phases and see which phase end date is before the current unix date. Correct?
correct
All our timestamps will be in UTC time
ok great. Thanks