#edgarsantiago93
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. 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.
- edgar-paymentelement-linkdeferredsubscription, 3 days ago, 66 messages
- edgarsantiago93, 3 days ago, 15 messages
- edgarsantiago93, 3 days ago, 19 messages
- edgar-elements-defaultvalues, 5 days ago, 6 messages
- edgarsantiago93, 5 days ago, 8 messages
You mean for listing subscriptions?
It does not, no. You need to provide a single value to list, or you can send all to get all subscription statuses, then filter the results to your needs
ALternatively, the Search API supports status for subscriptions: https://stripe.com/docs/api/subscriptions/search
awesome! did not know about the search api, thanks a lot!
np!
just one additional q, so i woudl do sth like
query: 'status:'active' AND 'status:'unpaid'
right?
OR, not AND, but yes roughly
oh right good catch, just copied the example from the docs, thnks!
NP!
follow up haha, sorry, im trying to do sth like this
query: `customer:${stripeCustomerId} status:'unpaid' OR status:'active'`,
but im getting an error that queries cant have or and and
huh, i hadn't encountered that before, but i see the same
Turns out you can't use both:
By default, the API combines clauses with AND logic. AND and OR operators are mutually exclusive.
https://stripe.com/docs/search#query-structure-and-terminology
but honestly, if you're including a customer id like that, I'd say use the List endpoint and filter locally
got it, ill try that! thks