List plans in Stripe
dwwoelfel opened this issue · comments
A couple of updates to the Stripe integration based on customer requests.
You can list your Stripe plans and get the subscriptions for those plans in a single query
query ListStripePlans {
stripe {
plans {
nodes {
id
amount
subscriptions(status: active) {
nodes {
id
customer {
... on StripeCustomer {
name
email
}
}
}
}
}
}
}
}
You can also filter invoices based on their status. Here's a query that gets all open invoices, along with the customer's email:
query StripeOpenInvoices {
stripe {
invoices(status: open) {
nodes {
total
customer {
... on StripeCustomer {
email
}
}
}
}
}
}
Hop into our Spectrum channel if you have any questions or a use case that's not supported.