You can create a new field set with all the custom...
# suitecommerce
b
You can create a new field set with all the custom fields you need. For example i did this a bit ago: https://www.yoursite.com/api/items?fieldset=jsonfeed I created a new field set named jsonfeed and I added what i needed there. Go to website > website list > Field Sets and add a new one.
🤔 1
c
Hmmm. I've never done this, only read about it.
b
Go to your NS account and see which fieldsets you have available and then go to this url -> https://www.yoursite.com/api/items?fieldset=details for example.
If details fieldset exist just go to that url in your browser.
s
I’m a little confused about this suggestion. So, Chris wants to use the items API to fetch data about a category record – the only fields you can select for your field set are item fields. So, how do you do this with the items API?
commercecategory
will return the category objects the item belongs to, but AFAIK there’s no way to modify which fields are returned within those objects
b
I missed a key parameter to be passed to the api. &commercecategoryid=categoryId
https://www.yoursite.com/api/items?fieldset=jsonfeed&limit=100&offset=' + offset + '&commercecategoryid=' + categoryId that is the one i used to create a digital catalog with our items data.