getCategoryAttributes

Method returns list of category attributes.

Usage URL: https://hedo-pets.com/api/getCategoryAttributes.json?key=YOURAPIKEY

Query params

(put those in your URL, e.g. ?id=123)

  • id

    integer or integer[]

    Internal identifier of category attribute.
    More than one value can be specified after comma (,) separator.

  • categoryid

    integer or integer[]

    Internal identifier of category.
    More than one value can be specified after comma (,) separator.

  • name

    string

    Name of category attribute.

    Example: 'cover' will return all category attributes that contain cover in the name.

  • modified

    datetime (YYYY-MM-DD HH:MM:SS)

    Return all category attributes modified after the modified param. That is highly recommended when you want to update your local database.

  • type

    string

    Return all category attributes with that type.

    Example: Supported types: mru, float, int, text, date

  • lang

    string

    Language of result. ISO 2 Letter Language Codes ie

    Example: en, pl, cs

  • id

    integer

    Internal identifier of category attribute.

  • modified

    datetime (YYYY-MM-DD HH:MM:SS)

    Category attributes modified after the modified date.
    Date format is yyyy-MM-dd.

  • name

    string

    Name of category attribute.

  • description

    string

    Description of category attribute.

  • type

    string

    Category attributes with that type. Supported types: mru, float, int, text, date

  • categoryids

    integer[]

    Internal identifiers of categories that attribute is used in.

  • varianttype

    integer

    0 - regular attribute, 1 - attribute can be used to group products into variants, 2 - variants with pictures.

Example URL: https://hedo-pets.com/api/getCategoryAttributes.json?key=YOURAPIKEY&lang=en&categoryid=2662

[
    {
        "id": 9,
        "modified": "2016-11-30 02:20:27",
        "name": "Phone Manufacturer",
        "description": null,
        "type": "mru",
        "fkcategory": 2662
    },
    {
        "id": 6,
        "modified": "2016-11-30 08:46:12",
        "name": "Accessory Manufacturer",
        "description": null,
        "type": "mru",
        "fkcategory": 2622
    }
]
Example URL: https://hedo-pets.com/api/getCategoryAttributes.xml?key=YOURAPIKEY&lang=en&categoryid=2662

<?xml version="1.0" encoding="utf-8"?>
<root>
	<item>
		<id>9</id>
		<modified>2016-11-30 02:20:27</modified>
		<name>Phone Manufacturer</name>
		<description></description>
		<type>mru</type>
		<fkcategory>2662</fkcategory>
	</item>
	<item>
		<id>6</id>
		<modified>2016-11-30 08:46:12</modified>
		<name>Accessory Manufacturer</name>
		<description></description>
		<type>mru</type>
		<fkcategory>2622</fkcategory>
	</item>
</root>