#bkrnetic-search

1 messages ยท Page 1 of 1 (latest)

haughty dawn
#

Hi there!

#

What do you mean by "I don't have search option"? This should be available.

dapper whale
haughty dawn
dapper whale
#

it might be that. I'm using "stripe/stripe-php": "^7.116"

#

so it is actually possible to use search method to fetch subscriptions by customer and multiple statuses?

haughty dawn
#

Let me test creating a query to check multiple status.

#

Yes it works! FYI here's my test: query: "status:'active' OR status:'canceled'"

dapper whale
#

thank you Soma!

haughty dawn
#

Happy to help ๐Ÿ™‚

dapper whale
#

is it possible to pass other params usually used in all method? such as customer, expand etc?

#

Ok I can see it doesn't allow customer parameter. Hm

shell fog
#

Can you elaborate on what you mean?

#

expand should work

dapper whale
#

Yup expand works it seems.

What I want to do is to fetch unpaid and canceled subscriptions by certain customer.

#

how would query for that look like?

query: "customer: 'customerId' AND (status:'active' OR status:'canceled')"

Maybe like that? I'm not sure if brackets are allowed.

shell fog
#

And you can't pass the customer parameter to the Search endpoint

dapper whale
#

Hmm, ok then. You might consider adding it as an option in the next release ๐Ÿ™‚

shell fog
#

I'll relay the feedback!

dapper whale
#

Thanks ynnoj. Have a nice day!

shell fog
#

you 2!