Using the equivalent of in operator in a query for REST API

What is the equivalent of an in operator in a query for REST API using a filter

Here is a sample URL where I filter for the customer number and I want to filter for multiple values

{{url}}/{{company}}/sales/invoices/?filter={"customer.customerNo": "CASH"}

To query this same data in the database I have

select * from customers where cust_no in ('CASH','ABC','123')
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Pawan KumarDatabase ExpertCommented:
If you dont want to use IN then you can use OR. This should work in any DB.

select * from customers where
cust_no = 'CASH'   OR  cust_no =  'ABC'  OR cust_no =  '123'
GerhardpetAuthor Commented:
Please read my question again. You missed my point.
Pawan KumarDatabase ExpertCommented:
Please try like this -

{{url}}/{{company}}/sales/invoices/?filter=("customer.customerNo": "CASH") OR ("customer.customerNo": "ABC")  OR ("customer.customerNo": "123")

You can read more from -
Announcing the Winners!

The results are in for the 15th Annual Expert Awards! Congratulations to the winners, and thank you to everyone who participated in the nominations. We are so grateful for the valuable contributions experts make on a daily basis. Click to read more about this year’s recipients!

GerhardpetAuthor Commented:
That does not work for REST API. Do you have experience using the REST API?
GerhardpetAuthor Commented:
I found the answer elsewhere

This is the correct parameter

{"customer.customerNo": { "$in": ["ER118","AAA222"]}}

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
GerhardpetAuthor Commented:
I found the answer elsewhere
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.