Category.simple

Request

Fields when send to the api inside a request.

Field Type Description
id Int Id of the category
name String Translated category name
banner Image? Nullable.
only_order_in_store Bool Whether the products in this category can only get ordered in the store with a separate UI for the shop employees, and not in the public webshop. Note that you will never receive products with this property set to true if you are not authorized.
image Image? Nullable. Image that should be used in square environments, e.g. category overview
seo company.SeoData Optional. Product page SEO metatags

Response

Fields when returned by the api in a response.

Field Type Description
id Int Id of the category
name String Translated category name
banner Image? Nullable.
only_order_in_store Bool Whether the products in this category can only get ordered in the store with a separate UI for the shop employees, and not in the public webshop. Note that you will never receive products with this property set to true if you are not authorized.
image Image? Nullable. Image that should be used in square environments, e.g. category overview
seo company.SeoData Optional. Product page SEO metatags

Examples

Request

When used inside a request.

Example 1

{
    "id": 10,
    "name": "Lincoln Schroeder",
    "banner": {
        "resolutions": [
            {
                "src": "https://example.com",
                "width": 600,
                "height": 350
            },
            {
                "src": "https://example.com",
                "width": 600,
                "height": 350
            },
            {
                "src": "https://example.com",
                "width": 600,
                "height": 350
            }
        ],
        "white_background": false
    },
    "only_order_in_store": true,
    "image": {
        "resolutions": [
            {
                "src": "https://example.com",
                "width": 600,
                "height": 350
            },
            {
                "src": "https://example.com",
                "width": 600,
                "height": 350
            },
            {
                "src": "https://example.com",
                "width": 600,
                "height": 350
            }
        ],
        "white_background": true
    },
    "seo": {
        "title": {
            "en": "Natus quis blanditiis totam ratione."
        },
        "description": {
            "en": "Quaerat reprehenderit eos ut totam qui facilis. Ut maxime autem ut suscipit inventore sed molestiae in. Est porro dolores dolores. Ipsa facere et aut quae."
        },
        "url": {
            "en": "http://www.cormier.net/expedita-maiores-accusamus-tempora-cupiditate-ut-facilis"
        }
    }
}

Response

When returned in a response.

Example 1

{
    "id": 14,
    "name": "Lance Ziemann",
    "banner": {
        "resolutions": [
            {
                "src": "https://example.com",
                "width": 600,
                "height": 350
            },
            {
                "src": "https://example.com",
                "width": 600,
                "height": 350
            },
            {
                "src": "https://example.com",
                "width": 600,
                "height": 350
            }
        ],
        "file_id": 18,
        "white_background": true
    },
    "only_order_in_store": true,
    "image": {
        "resolutions": [
            {
                "src": "https://example.com",
                "width": 600,
                "height": 350
            },
            {
                "src": "https://example.com",
                "width": 600,
                "height": 350
            },
            {
                "src": "https://example.com",
                "width": 600,
                "height": 350
            }
        ],
        "file_id": 19,
        "white_background": false
    },
    "seo": {
        "title": {
            "en": "Et qui quam architecto repudiandae quia aut magnam soluta vel et."
        },
        "description": {
            "en": "Qui libero autem fugiat accusantium vel optio fugiat sapiente. Voluptas sed placeat quisquam et perferendis. Nesciunt ut asperiores accusantium aut."
        },
        "url": {
            "en": "http://www.ohara.com/"
        }
    }
}
This is a development version Do not use this version in production
1.10.0 development