#mathan
1 messages · Page 1 of 1 (latest)
Hi! Let me help you with this.
yes
Are you trying to list subscription schedules for a particular customer, and then verify if all of them are active, correct?
yes right!
You can list all Subscription Schedules using the list method: https://stripe.com/docs/api/subscription_schedules/list
You can specify the customer ID: https://stripe.com/docs/api/subscription_schedules/list#list_subscription_schedules-customer
And then check for status: "active" property of each of them, on your end.
can I get the exact query in PHP?
how can I specify the customer id in this query?
By the way, you can easily change the language/framework on the top of the code snippet:
$stripe->subscriptionSchedules->all([
...
'customer' => 'cus_...',
]);
this is what I need, let me try
👋 taking over for my colleague. Let me know if there's any follow-up Qs I can answer!