Produkty


Zoznam produktov

URL
GET /api/v1/products/list
Parameters
Name Type Method Required Default Description
page int GET no 1 Stránkovanie.
Request
(empty)
Response
HTTP 200 - OK
Host: example.org
Content-Type: application/vnd.shoptec.v1.0+json; charset=utf-8
{
    "page": 1,
    "pages": 1,
    "itemsCount": 1,
    "itemsPerPage": 10,
    "products": {
        "id": 1,
        "url": "testovaci-produkt",
        "name": "Testovac\u00ed produkt",
        "annotation": "Kr\u00e1tky popis",
        "text": "Dlh\u00fd popis",
        "parameter1_name": "Farba",
        "parameter2_name": "Ve\u013ekos\u0165",
        "parameter3_name": null,
        "brand": {
            "id": 5,
            "url": "microsoft",
            "name": "Microsoft"
        },
        "categories": {
            "id": 17,
            "url": "pociace\/notebooky\/pracovne",
            "name": "Pracovn\u00e9 notebooky",
            "parent_id": 5
        },
        "collections": {
            "id": 1,
            "url": "notebooky-thinkpad",
            "name": "Notebooky ThinkPad"
        },
        "photos": {
            "id": 3616,
            "url": "testovacia-fotka",
            "name": "Testovacia fotka",
            "alt": "Alternat\u00edvny popis",
            "format": "jpg",
            "main": 1,
            "priority": 1,
            "variants": [
                6,
                7,
                8
            ]
        },
        "colors": {
            "hex": "#521762",
            "product_photo_id": 3616
        },
        "parameters": {
            "id": 7,
            "name": "Uhloprie\u010dka",
            "value": "15\"",
            "color": "#000000",
            "priority": 1
        },
        "related": {
            "collection_id": null,
            "category_id": 17,
            "brand_id": 5,
            "product_id": null,
            "priority": 1
        },
        "gifts": {
            "id": 215,
            "name": "My\u0161",
            "link": "http:\/\/example.org\/...",
            "text": "Po\u010d\u00edta\u010dov\u00e1 my\u0161 k notebooku.",
            "quantity": 1,
            "price": {
                "base": 40,
                "vat": 20
            },
            "unit": {
                "id": 1,
                "name": "Kus",
                "symbol": "ks",
                "type": "Po\u010det"
            },
            "priority": 1
        },
        "created": "2024-03-26 10:27:09",
        "rating": 5,
        "priority": 1,
        "enabled": 1,
        "variants": {
            "id": 951,
            "sku": "SK16516",
            "ean": "6173173273271",
            "supplier_code": "PJT6326A",
            "weight": 1450,
            "size_x": 30,
            "size_y": 60,
            "size_z": 3,
            "cart_quantity": 1,
            "unit": {
                "id": 1,
                "name": "Kus",
                "symbol": "ks",
                "type": "Po\u010det"
            },
            "parameter1_value": "\u010cierny",
            "parameter2_value": "Ve\u013ek\u00fd",
            "parameter3_value": null,
            "supplier": {
                "id": 2,
                "name": "Dealer najlep\u0161\u00edch notebookov s.r.o."
            },
            "warranty": {
                "id": 4,
                "name": "2 roky"
            },
            "price": [
                {
                    "base": 2000,
                    "discount": 1665.53,
                    "vat": 20,
                    "price_level_id": 1
                },
                {
                    "base": 1800,
                    "discount": 1200,
                    "vat": 20,
                    "price_level_id": 2
                }
            ],
            "stocks": [
                {
                    "quantity": 5,
                    "unit": {
                        "id": 1,
                        "name": "Kus",
                        "symbol": "ks",
                        "type": "Po\u010det"
                    },
                    "warehouse": {
                        "id": 1,
                        "name": "Centr\u00e1lny sklad"
                    }
                }
            ],
            "enabled": 1
        }
    }
}

Počet produktov

URL
GET /api/v1/products/count
Request
(empty)
Response
HTTP 200 - OK
Host: example.org
Content-Type: application/vnd.shoptec.v1.0+json; charset=utf-8
{
    "count": 1613
}

Pomohlo? Áno Nie

Začnite nezáväzne zadarmo na 14 dní.

Otázky? Volajte +421 948 203 730