View Single Post
  #2  
Old 08-01-2013, 08:07 PM
Matt Ecwid's Avatar
Matt Ecwid Matt Ecwid is offline
Ecwid Team
 
Join Date: Oct 2011
Posts: 4,947
Default

Quote:
Originally Posted by smoothsailingclothing View Post
http://app.ecwid.com/api/v1/873091/categories

returns []

The store doesn't have any categories but category 0 exists.

http://app.ecwid.com/api/v1/[STORE-ID]/products?category=0[etc] Works and returns items.

I was expecting /categories to return category 0 as a value. Is this intended?
Hi,

The Product API : categories method returns all user-defined categories if the parent is not set and the list of child categories if the parent category is set. As to the root 'Store' category, it is not returned by design.

Can you please specify why you need that? Maybe we will suggest a solution.
__________________
Matt K
Ecwid Team

Ecwid Guide for Beginners

Ecwid Help Center

Ecwid video tutorials