Discussions
/api/Item?ItemStatus= doesn't not appear to work
about 1 year ago by Lee
Hello,
I was trying to figure out how to query to only show active items. So I changed a Commerce product's Status to "Inactive". I GET /api/Item, look at the item in question, notice it has ItemStatus: 1. I assume 0 is Active since it's hidden when Active.
I tried querying /api/Item?ItemStatus=0, I see no results. I tried querying /api/Item?ItemStatus=1 (to see the item I just changed and saw) and I see no results.
I'm led to believe this parameter doesn't work somehow? Can someone shed some light on what is happening here please?
Thanks.