Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using v3 Catalog/Product filters #104

Open
joegarcia opened this issue Feb 14, 2022 · 3 comments
Open

Using v3 Catalog/Product filters #104

joegarcia opened this issue Feb 14, 2022 · 3 comments

Comments

@joegarcia
Copy link

joegarcia commented Feb 14, 2022

Expected behavior

I'm trying to use the v3 Products API's, but I need to filter by "id:not_in". As far as I know, Python does not allow colons in variable names. So what is the work-around to this?

I expect that all the filters using a colon will not work.

# v3 products
include_fields = "sku, price"
sort = "sku"
id:not_in = "689"
endpoint = '/catalog/products'
response = api.get(endpoint, include_fields=include_fields, id:not_in=id:not_in, limit=5, page=1, sort=sort)

The expected result would be a list of products where the IDs are not in the list of IDs.

Actual behavior

id:not_in = "689"
NameError: name 'not_in' is not defined

Steps to reproduce behavior

Use above filter to reproduce.

@shane-syc
Copy link

No answer from BigCommerce?

@joegarcia
Copy link
Author

joegarcia commented Jun 19, 2023 via email

@irlfiroz
Copy link

This is still an issue. No resolution yet. For example, I cant use date_modified:min filter with products API

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants