shop.category.getTree

Returns a tree of product categories.

Parameters

  • parent_id GET

    Id of the category which should be considered as the tree root.

  • depth GET Optional

    Number of tree levels which should be returned. If not specified, the entire category tree is returned.

  • access_token GET

    API auth token obtained during the API authorization.

  • format GET Optional

    Sets response format. Available options: json (default), xml.

Sample call

https://demo1.webasyst.com/api.php/shop.category.getTree?

Error codes

  • invalid_request

    Invalid formed request. Additional information about the error is available in error_description parameter.

  • access_denied

    Access to the specified API method for the current token is denied.

  • invalid_method

    Unknown API method.