Skip to content
On this page

Brands

Store brands

Brand

Returns a single brand

GET: /headless_api/brands/{brand_slug}

{
    "data": {
        "name": "Brand name",
        "description": "Brand description",
        "image": {
            "id": 1,
            "sort_order": 0,
            "name": "9G0ueaMwZrtRwf61633359232",
            "title": "Black t-shirt",
            "alt_tag": "",
            "path_xs": "https://d3dnwnveix5428.cloudfront.net/image_hash",
            "path_small": "https://d3dnwnveix5428.cloudfront.net/image_hash",
            "path_medium": "https://d3dnwnveix5428.cloudfront.net/image_hash",
            "path_large": "https://d3dnwnveix5428.cloudfront.net/image_hash",
            "path_xl": "https://d3dnwnveix5428.cloudfront.net/image_hash"
        },
        "slug": "brand-name",
        "meta_title": "meta title",
        "meta_description": "meta description",
        "website": ""
    }
} 

Brands

Returns paginated brands

GET: /headless_api/brands

Filters

GET: ?page=1

GETTypeValues
pageint-

Result

{
    "data": [
        {
            "name": "Brand name",
            "description": "Brand description",
            "image": {
                "id": 1,
                "sort_order": 0,
                "name": "9G0ueaMwZrtRwf61633359232",
                "title": "Black t-shirt",
                "alt_tag": "",
                "path_xs": "https://d3dnwnveix5428.cloudfront.net/image_hash",
                "path_small": "https://d3dnwnveix5428.cloudfront.net/image_hash",
                "path_medium": "https://d3dnwnveix5428.cloudfront.net/image_hash",
                "path_large": "https://d3dnwnveix5428.cloudfront.net/image_hash",
                "path_xl": "https://d3dnwnveix5428.cloudfront.net/image_hash"
            },
            "slug": "brand-name",
            "meta_title": "meta title",
            "meta_description": "meta description",
            "website": ""
        }
    ],
    "links": {
        "first": "https://yourdomain.com/headless_api/brands?page=1",
        "last": "https://yourdomain.com/headless_api/brands?page=3",
        "prev": null,
        "next": "https://yourdomain.com/headless_api/brands?page=2"
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 3,
        "links": [
            {
                "url": null,
                "label": "« Föregående",
                "active": false
            },
            {
                "url": "https://yourdomain.com/headless_api/brands?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": "https://yourdomain.com/headless_api/brands?page=2",
                "label": "2",
                "active": false
            },
            {
                "url": "https://yourdomain.com/headless_api/brands?page=3",
                "label": "3",
                "active": false
            },
            {
                "url": "https://yourdomain.com/headless_api/brands?page=2",
                "label": "Nästa »",
                "active": false
            }
        ],
        "path": "https://yourdomain.com/headless_api/brands",
        "per_page": 48,
        "to": 48,
        "total": 114
    }
}

Brand products

Returns paginated products related to brand

GET: /headless_api/brands/{brand_slug}/products

Filters

GET: ?page=1&sort=price_low&filters=color_red

GETTypeValues
pageint-
sortstringprice_low, price_high, published, name_z, name_a, popular
filtersstringfilter_tags comma separated

Result

{
    "data": [ // Products
        {
            "name": "Black t-shirt",
            "primary_sku": "810021-555-00",
            "slug": "black-t-shirt",
            "is_new": false, // Boolean
            "image": {
                "id": 6188,
                "sort_order": 0,
                "name": "9G0ueaMwZrtRwf61633359232",
                "title": "Black t-shirt",
                "alt_tag": "",
                "path_xs": "https://d3dnwnveix5428.cloudfront.net/image_hash",
                "path_small": "https://d3dnwnveix5428.cloudfront.net/image_hash",
                "path_medium": "https://d3dnwnveix5428.cloudfront.net/image_hash",
                "path_large": "https://d3dnwnveix5428.cloudfront.net/image_hash",
                "path_xl": "https://d3dnwnveix5428.cloudfront.net/image_hash"
            },
            "primary_price": {
                "currency": {
                    "name": "Svenska kronor",
                    "iso": "SEK",
                    "format": "{value} kr",
                    "decimal_separator": ",",
                    "thousand_separator": " "
                },
                "tier": 1,
                "price": 223.2,
                "price_inc_vat": 279,
                "formatted_price": "279 kr",
                "price_in_cents": 22320,
                "price_in_cents_inc_vat": 27900,
                "compare_price": 0,
                "compare_price_inc_vat": 0,
                "formatted_compare_price": "0 kr"
            },
            "stock": 4,
            "brand": null,
            "meta_description": ""
        }
    ],
    "links": {
        "first": "https://yourdomain.com/headless_api/brands/{brand_slug}/products?page=1",
        "last": "https://yourdomain.com/headless_api/brands/{brand_slug}/products?page=3",
        "prev": null,
        "next": "https://yourdomain.com/headless_api/brands/{brand_slug}/products?page=2"
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 3,
        "links": [
            {
                "url": null,
                "label": "« Föregående",
                "active": false
            },
            {
                "url": "https://yourdomain.com/headless_api/brands/{brand_slug}/products?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": "https://yourdomain.com/headless_api/brands/{brand_slug}/products?page=2",
                "label": "2",
                "active": false
            },
            {
                "url": "https://yourdomain.com/headless_api/brands/{brand_slug}/products?page=3",
                "label": "3",
                "active": false
            },
            {
                "url": "https://yourdomain.com/headless_api/brands/{brand_slug}/products?page=2",
                "label": "Nästa »",
                "active": false
            }
        ],
        "path": "https://yourdomain.com/headless_api/brands/{brand_slug}/products",
        "per_page": 48,
        "to": 48,
        "total": 114
    }
}