BizKitHub
getProductVerejné API v1

/api/v1/product/detail

Bez popisu.

productgetApiV1ProductDetail

Parametre

5 v query

Parametre v query

· 5
apiKeystringPovinné

Your BizKitHub API key (passed as GET parameter).

Key format: A 32-character string matching: ^(PROD|DEV_|ROOT)[A-Za-z0-9]{28}$
Prefixes: PROD (production key), DEV_ (individual developer), ROOT (system key with no limits). Learn more

PríkladPRODPGrFxpGEtrOZfuWhnoJohUYBXuOE
slugstringPovinné
Príkladexample_slug
currencystringVoliteľné

ISO 4217 currency of returned prices (CZK, EUR, USD). Default = organisation currency. Each price is the manual price set on the product / variant for that currency, otherwise the default price converted by the organisation rate (fixed price-list rate, or the daily CNB/ECB rate) and rounded by the organisation rounding rule. Applies to price, priceWithoutVat, variantItems[].price and relatedProducts[].price; the response carries currency.

PríkladEUR
localestringVoliteľné

Locale code (e.g. "cs", "en"). Returns translated read model for the given locale with fallback.

Príkladcs
propertiesstringVoliteľné

Add extra on demand properties separated by semicolon.

Supported values:

Property Description
orderStatistics Extra statistics data like totalQuantitySold and count of orders in states.
galleryItemsCount Count of public images in product detail.
PríkladorderStatistics;galleryItemsCount

Schéma odpovede

1 zdokumentovaný stavový kód

200ÚspechFull product detail from the read model.
idstringPovinné

Product code identifier.

Príkladburger
codestringPovinné

Product code identifier (same as id).

Príkladburger
namestringPovinné

Localized product name.

PríkladCheese Burger
slugstringPovinné

URL-friendly product identifier.

Príkladcheese-burger
shortDescriptionstringPovinné

Short HTML description for listings. Returned as sanitized HTML string.

longDescriptionstringPovinné

Full HTML description for product detail page. Returned as sanitized HTML string.

mainImageUrlstringVoliteľné

URL of the main product image (original blob). Legacy field — kept for backward compatibility with clients written before issue #80. New integrations should prefer mainImage.originalUrl (identical value) alongside mainImage.lqip / mainImage.thumbUrl / mainImage.cardUrl / mainImage.heroUrl / mainImage.zoomUrl for progressive rendering.

Príkladhttps://storage.xhp.cz/...
mainImageobject | nullPovinné

Full main-image payload with all pre-rendered variants (issue #80).

Rendering contract for the FE: always paint lqip immediately as a CSS background, then progressively enhance with whichever sharp variant matches the intended display size — thumbUrl (≤ 128 px), cardUrl (≤ 480 px), heroUrl (≤ 1280 px), zoomUrl (≤ 2048 px). Fall back to originalUrl only for lightbox / download-as-image cases where the pre-rendered variants are insufficient.

Nullable slots vs. progressive rendering: every variant slot is present on the wire; null means scout hasn't rendered that particular size yet. The read model is rebuilt automatically the moment all four variants land, so a subsequent fetch will return the URLs — usually within seconds of a fresh upload, longer under scout backlog. Never fall back to originalUrl for a null variant in list UIs — that would defeat the whole point of pre-generating right-sized derivatives.

idstringPovinné

External blob token of the source image (stable across variant regenerations). Use this to correlate frontend cache keys and re-request the payload after an update.

Príklada1b2c3d4e5f6g7h8
originalUrlstringPovinné

Public CDN URL of the original upload — always present when the product has a main image.

Format: whatever the operator uploaded (typically JPEG or PNG, occasionally WebP or AVIF). Dimensions and byte size are unbounded and depend on the source; expect anywhere from 200 KB to several MB.

Use cases:

  • Lightbox / zoom UI that needs the highest fidelity available (fallback for zoom variant).
  • Downloadable "original" link.
  • Feeds for third parties that expect an unmodified source.

Do not use the original for above-the-fold rendering or list thumbnails — the pipeline exists precisely so those cases can bind to a pre-rendered, right-sized WebP variant instead.

Príkladhttps://storage.xhp.cz/org-slug/product/2026-08/abc123.jpg
lqipstringPovinné

Low-Quality Image Placeholder — a 32×32 WebP q40 blur encoded as a base64 data URI. Populated inline the moment the image is uploaded, so it is always present when a main image exists.

Byte range: typically 400–1400 bytes. Ships inside the JSON payload — no extra HTTP request needed to render it.

Intended use: paint immediately as a CSS background-image on the wrapper element. Once one of the sharp variants (thumbUrl, cardUrl, heroUrl, zoomUrl) finishes loading, fade it in on top; the LQIP remains behind and covers any transparent pixels.

Edge case: an empty string is possible only if the source blob was unreadable when the LQIP was generated (sharp threw and no fallback was stored). Treat empty as "no LQIP available" and skip the background paint.

Príkladdata:image/webp;base64,UklGRi4AAABXRUJQVlA4ICI…
thumbUrlstring | nullPovinné

Scout-generated 128×128 WebP thumbnail URL, or null while the variant hasn't been rendered yet (see § "When null" below).

Dimensions: 128×128 px, square, cover-cropped. Format: WebP q75. Byte range: ~4–14 KB per file.

Intended use: row-level thumbnails in lists, autocomplete dropdowns, chat message previews, notification cards, mobile grid cells (60–120 px). At this size no other variant is worth requesting.

When null: the source image has been uploaded but the scout worker on the Contabo VPS hasn't finished rendering this variant yet. Fall back to the LQIP blur alone (with an optional "processing" overlay for cells ≥ 80 px). The read model is rebuilt automatically the moment all four variants land, so a subsequent fetch will return a non-null URL — usually within seconds for a fresh upload, longer under scout backlog.

Príkladhttps://storage.xhp.cz/org-slug/product/2026-08/abc123.thumb-webp.webp
cardUrlstring | nullPovinné

Scout-generated 480×480 WebP URL, or null while the variant hasn't been rendered yet.

Dimensions: 480×480 px, square, cover-cropped. Format: WebP q80. Byte range: ~15–45 KB per file.

Intended use: medium-sized product previews — product-detail sidebar (240–520 px), category grid tiles on mobile / small desktop, storefront cards, hover popovers, e-mail template thumbnails. The single most-used variant in typical e-shop UI.

When null: same story as thumbUrl — variant not yet rendered by scout. Prefer thumbUrl (if available) as a temporary substitute over the LQIP blur alone.

Príkladhttps://storage.xhp.cz/org-slug/product/2026-08/abc123.card-webp.webp
heroUrlstring | nullPovinné

Scout-generated 1280×1280 WebP URL, or null while the variant hasn't been rendered yet.

Dimensions: 1280×1280 px, square, cover-cropped. Format: WebP q82. Byte range: ~50–150 KB per file.

Intended use: large product previews — desktop product-detail hero image (520–1280 px), homepage feature slots, campaign landing pages, retina 2× rendering for card-sized cells.

When null: same story as thumbUrl — variant not yet rendered by scout. If falling back, prefer cardUrl over thumbUrl when the intended display size is > ~480 px.

Príkladhttps://storage.xhp.cz/org-slug/product/2026-08/abc123.hero-webp.webp
zoomUrlstring | nullPovinné

Scout-generated 2048×2048 WebP URL, or null while the variant hasn't been rendered yet.

Dimensions: 2048×2048 px, square, cover-cropped. Format: WebP q82. Byte range: ~150–400 KB per file.

Intended use: lightbox / product-image zoom UI, retina 2× rendering for hero-sized cells, download-as-image feature. The largest pre-rendered variant — for anything sharper, fall back to originalUrl (unbounded, unmodified source).

When null: same story as thumbUrl — variant not yet rendered by scout. If a lightbox request comes in before zoomUrl is ready, use originalUrl as an interim fallback so the feature still works.

Príkladhttps://storage.xhp.cz/org-slug/product/2026-08/abc123.zoom-webp.webp
mainImageThumbUrlstring | nullVoliteľné

Scout-generated 128×128 WebP thumbnail URL, or null while the variant hasn't been rendered yet (see § "When null" below).

Dimensions: 128×128 px, square, cover-cropped. Format: WebP q75. Byte range: ~4–14 KB per file.

Intended use: row-level thumbnails in lists, autocomplete dropdowns, chat message previews, notification cards, mobile grid cells (60–120 px). At this size no other variant is worth requesting.

When null: the source image has been uploaded but the scout worker on the Contabo VPS hasn't finished rendering this variant yet. Fall back to the LQIP blur alone (with an optional "processing" overlay for cells ≥ 80 px). The read model is rebuilt automatically the moment all four variants land, so a subsequent fetch will return a non-null URL — usually within seconds for a fresh upload, longer under scout backlog.

Príkladhttps://storage.xhp.cz/org-slug/product/2026-08/abc123.thumb-webp.webp
mainImageCardUrlstring | nullVoliteľné

Scout-generated 480×480 WebP URL, or null while the variant hasn't been rendered yet.

Dimensions: 480×480 px, square, cover-cropped. Format: WebP q80. Byte range: ~15–45 KB per file.

Intended use: medium-sized product previews — product-detail sidebar (240–520 px), category grid tiles on mobile / small desktop, storefront cards, hover popovers, e-mail template thumbnails. The single most-used variant in typical e-shop UI.

When null: same story as thumbUrl — variant not yet rendered by scout. Prefer thumbUrl (if available) as a temporary substitute over the LQIP blur alone.

Príkladhttps://storage.xhp.cz/org-slug/product/2026-08/abc123.card-webp.webp
galleryItemsobject[]Povinné

List of product gallery media items.

Každá položka poľa:

Product gallery media item.

type"image" | "video"Povinné

Media type of the gallery item.

Predvolené: imageHodnoty: imagevideo
idnumberPovinné

Gallery item ID.

urlstringPovinné

Public URL of the media file.

Príkladhttps://storage.xhp.cz/...
titlestringVoliteľné

Optional title of the gallery item.

tagstringVoliteľné

Optional tag for grouping or filtering.

galleryItemsCountnumberPovinné

Total count of gallery items.

isVariantProductbooleanPovinné

Whether the product has variants.

variantItemsobject[]Povinné

List of product variants (only non-sold-out).

Každá položka poľa:

Product variant item.

idstringPovinné

Variant relation hash.

Príkladabc123
codestringPovinné

Variant code identifier.

Príkladcheese-burger
namestringPovinné

Variant display name.

PríkladCheese Burger
eanstringVoliteľné

EAN barcode.

Príklad8594000000001
pricenumberPovinné

Variant price (base product price + variant addition).

Príklad250
warehouseAllQuantitynumberVoliteľné

Available warehouse quantity for this variant.

activebooleanPovinné

Whether the product is active and visible.

b2bbooleanPovinné

Whether this is a B2B-only product.

showInFeedbooleanPovinné

Whether the product appears in public feed.

soldOutbooleanPovinné

Whether the product is sold out.

positionnumberPovinné

Display position for sorting.

Príklad1
mainCategoryobjectVoliteľné

Product category reference.

slugstringPovinné

URL-friendly category identifier.

Príkladsmartphone
codestringPovinné

Internal category code.

PríkladCAT-001
namestringPovinné

Localized category name.

PríkladSmartphones
categoryPathItemsobject[]Povinné

Breadcrumb path from root to main category.

Každá položka poľa:

Product category reference.

slugstringPovinné

URL-friendly category identifier.

Príkladsmartphone
codestringPovinné

Internal category code.

PríkladCAT-001
namestringPovinné

Localized category name.

PríkladSmartphones
categoryItemsobject[]Povinné

All categories the product belongs to.

Každá položka poľa:

Product category reference.

slugstringPovinné

URL-friendly category identifier.

Príkladsmartphone
codestringPovinné

Internal category code.

PríkladCAT-001
namestringPovinné

Localized category name.

PríkladSmartphones
brandIdnumberVoliteľné

Associated brand ID.

pricenumberPovinné

Final product price including VAT.

Príklad250
currencystringVoliteľné

ISO 4217 currency of every price in this object (BIZKIT-90). Equals the currency query parameter, or the organisation default currency.

PríkladyCZKEUR
isRequestedLocalebooleanVoliteľné

True when the product has a translation in the requested locale; false when a fallback language is served.

priceWithoutVatnumberPovinné

Product price excluding VAT.

Príklad206.61
vatnumberPovinné

VAT percentage rate.

Príklad21
standardPricePercentagenumberVoliteľné

Standard price percentage (e.g. for discounts).

sizeWidthMmnumberVoliteľné

Product width in millimeters.

sizeHeightMmnumberVoliteľné

Product height in millimeters.

sizeDepthMmnumberVoliteľné

Product depth in millimeters.

weightGramsnumberVoliteľné

Product weight in grams.

warehouseAllQuantitynumberVoliteľné

Total available warehouse quantity.

warehouseLimitnumberVoliteľné

Minimum warehouse quantity threshold.

eventobjectVoliteľné

Calendar event linked to the product.

idstringPovinné

Event code identifier.

startTimeDate | string | string | numberPovinné

Event start date and time.

Jedna z 4 možností:
Variant 1
Date

Event start date and time.

Variant 2
stringdate-time
Variant 3
stringdate
Variant 4
number
endTimeDate | string | string | numberPovinné

Event end date and time.

Jedna z 4 možností:
Variant 1
Date

Event end date and time.

Variant 2
stringdate-time
Variant 3
stringdate
Variant 4
number
isAllDaybooleanPovinné

Whether the event spans the entire day.

isBlockingbooleanPovinné

Whether the event blocks other bookings.

titlestringPovinné

Event title.

descriptionstringVoliteľné

Event description text.

agendastringVoliteľné

Event agenda or schedule.

urlstringVoliteľné

External URL for the event.

locationTitlestringVoliteľné

Name of the event location.

advanceobjectPovinné

Advanced product data.

relatedCustomersstring[]Povinné

External IDs of related customers.

relatedProductsobject[]Povinné

List of related products.

Každá položka poľa:

Related product reference.

slugstringPovinné

URL slug of the related product.

namestringPovinné

Related product name.

mainImageUrlstringVoliteľné

URL of the main image.

pricenumberPovinné

Product price.

mainCategoryobjectVoliteľné

Product category reference.

slugstringPovinné

URL-friendly category identifier.

Príkladsmartphone
codestringPovinné

Internal category code.

PríkladCAT-001
namestringPovinné

Localized category name.

PríkladSmartphones
shortDescriptionstringVoliteľné

Short HTML description. Returned as sanitized HTML string.

customFieldsobjectPovinné

Custom key-value fields defined by the organisation.

lastUpdateDate | string | string | numberPovinné

Timestamp of the last read model update.

Jedna z 4 možností:
Variant 1
Date

Timestamp of the last read model update.

Variant 2
stringdate-time
Variant 3
stringdate
Variant 4
number
orderStatisticsobjectVoliteľné

Aggregated order statistics for the product.

totalQuantitySoldnumberPovinné

Total quantity sold across all order statuses.

statusNewnumberPovinné

Quantity in new orders.

statusProcessingnumberPovinné

Quantity in processing orders.

statusStornonumberPovinné

Quantity in canceled orders.

statusDonenumberPovinné

Quantity in completed orders.

Ukážka odpovede

application/json
{
  "id": "burger",
  "code": "burger",
  "name": "Cheese Burger",
  "slug": "cheese-burger",
  "shortDescription": "example_shortDescription",
  "longDescription": "example_longDescription",
  "mainImageUrl": "https://storage.xhp.cz/...",
  "galleryItems": [
    {
      "type": "image",
      "id": 0,
      "url": "https://storage.xhp.cz/...",
      "title": "example_title",
      "tag": "example_tag"
    }
  ],
  "galleryItemsCount": 0,
  "isVariantProduct": false,
  "variantItems": [
    {
      "id": "abc123",
      "code": "cheese-burger",
      "name": "Cheese Burger",
      "ean": "8594000000001",
      "price": 250,
      "warehouseAllQuantity": 0
    }
  ],
  "active": false,
  "b2b": false,
  "showInFeed": false,
  "soldOut": false,
  "position": 1,
  "mainCategory": {
    "slug": "smartphone",
    "code": "CAT-001",
    "name": "Smartphones"
  },
  "categoryPathItems": [
    {
      "slug": "smartphone",
      "code": "CAT-001",
      "name": "Smartphones"
    }
  ],
  "categoryItems": [
    {
      "slug": "smartphone",
      "code": "CAT-001",
      "name": "Smartphones"
    }
  ],
  "brandId": 0,
  "price": 250,
  "currency": "CZK",
  "isRequestedLocale": false,
  "priceWithoutVat": 206.61,
  "vat": 21,
  "standardPricePercentage": 0,
  "sizeWidthMm": 0,
  "sizeHeightMm": 0,
  "sizeDepthMm": 0,
  "weightGrams": 0,
  "warehouseAllQuantity": 0,
  "warehouseLimit": 0,
  "event": {
    "id": "example_id",
    "isAllDay": false,
    "isBlocking": false,
    "title": "example_title",
    "description": "example_description",
    "agenda": "example_agenda",
    "url": "example_url",
    "locationTitle": "example_locationTitle"
  },
  "advance": {
    "relatedCustomers": [
      "string"
    ]
  },
  "relatedProducts": [
    {
      "slug": "example_slug",
      "name": "example_name",
      "mainImageUrl": "example_mainImageUrl",
      "price": 0,
      "mainCategory": {
        "slug": "smartphone",
        "code": "CAT-001",
        "name": "Smartphones"
      },
      "shortDescription": "example_shortDescription"
    }
  ],
  "customFields": {},
  "orderStatistics": {
    "totalQuantitySold": 0,
    "statusNew": 0,
    "statusProcessing": 0,
    "statusStorno": 0,
    "statusDone": 0
  }
}

Ukážka požiadavky

GET /api/v1/product/detail

get
curl -X GET "https://api.bizkithub.com/api/v1/product/detail?apiKey=PRODPGrFxpGEtrOZfuWhnoJohUYBXuOE&slug=example_slug&currency=EUR&locale=cs&properties=orderStatistics%3BgalleryItemsCount" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY"

Potrebujete API kľúč?

Všetky verejné endpointy BizKitHub API sa overujú API kľúčom.

Získať API kľúč