Aukro WebAPI

doGetCatsData

This method allows for loading a full tree of categories available in a selected country.

  1. countryId | Integer | required
    Country identifier (a list of country identifiers can be loaded using the doGetCountries method).
  2. localVersion | Long
    Outdated parameter (it is required to enter any value appropriate for the parameter type).
  3. webapiKey | String | required
    User's WebAPI key.
  1. catsList | CatInfoType[]
    Array of structures containing information on each category.
    1. catId | Integer
      Category identifier.
    2. catName | String | required
      Category name.
    3. catParent | Integer
      Supracategory identifier (or 0 for main categories).
    4. catPosition | Integer
      Position of a category in comparison with other categories of the same tier (indexed from 0).
    5. catIsProductCatalogueEnabled | Integer
      Outdated field (will always return 0).
  2. verKey | Long
    Version key value relevant for a selected country and WebAPI key provided
  3. verStr | String | required
    Component version of a category’s tree structure relevant for a WebAPI key provided.
  • ERR_INPUT_COUNTRY_ERROR
    Invalid country identifier (zero or empty value or value different from 56 has been provided in the countryId parameter).
  • ERR_NO_DATABASE
    Problems with Allegro database.
  • ERR_WEBAPI_EXPIRED
    Expiry date of WebAPI key has been exceeded.
  • ERR_WEBAPI_KEY
    Invalid value of WebAPI key or WebAPI key has been blocked.
  • ERR_WEBAPI_KEY_INACTIVE
    The WebAPI key has been deactivated (User Agreement not accepted).
  • ERR_WEBAPI_NOT_AVAIL
    Problems with Aukro WebAPI service.