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

Entity = Products , Filter field name = attribute_term #225

Open
amazonappflow opened this issue Jan 16, 2023 · 0 comments
Open

Entity = Products , Filter field name = attribute_term #225

amazonappflow opened this issue Jan 16, 2023 · 0 comments

Comments

@amazonappflow
Copy link

amazonappflow commented Jan 16, 2023

Hi Team ,

There is one field called attribute_term in Product entity.

For Example if we have more than 100 records in this entity , so we use to pass
First time URL Will be like https://instatanceurl.com/wp-json/wc/v3/products?per_page=100&attribute_term=298

Second time we use to get response from response headers ( Link field ) :
Value is - https://instatanceurl.com/wp-json/wc/v3/products?per_page=100&attribute_term%5B0%5D=298&page=2

if we hit this API we are getting a bad request (status code - 400).

According to my observation this happening because attribute term is String in API documentation (https://woocommerce.github.io/woocommerce-rest-api-docs/?shell#list-all-products )

But it integers in response. Due to this issue happening.

I request you to please help here to proceed further.

Thanks,

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

1 participant