BizKitHub
getProductPubliczne API v1

/api/v1/product/detail

Brak opisu.

productgetApiV1ProductDetail

Parametry

5 w query

Parametry query

· 5
apiKeystringWymagane

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

PrzykładPRODPGrFxpGEtrOZfuWhnoJohUYBXuOE
slugstringWymagane
Przykładexample_slug
currencystringOpcjonalne

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.

PrzykładEUR
localestringOpcjonalne

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

Przykładcs
propertiesstringOpcjonalne

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.
PrzykładorderStatistics;galleryItemsCount

Schemat odpowiedzi

1 udokumentowany kod statusu

200SukcesFull product detail from the read model.
idstringWymagane

Product code identifier.

Przykładburger
codestringWymagane

Product code identifier (same as id).

Przykładburger
namestringWymagane

Localized product name.

PrzykładCheese Burger
slugstringWymagane

URL-friendly product identifier.

Przykładcheese-burger
shortDescriptionstringWymagane

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

longDescriptionstringWymagane

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

mainImageUrlstringOpcjonalne

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.

Przykładhttps://storage.xhp.cz/...
mainImageobject | nullWymagane

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.

idstringWymagane

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.

Przykłada1b2c3d4e5f6g7h8
originalUrlstringWymagane

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.

Przykładhttps://storage.xhp.cz/org-slug/product/2026-08/abc123.jpg
lqipstringWymagane

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.

Przykładdata:image/webp;base64,UklGRi4AAABXRUJQVlA4ICI…
thumbUrlstring | nullWymagane

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.

Przykładhttps://storage.xhp.cz/org-slug/product/2026-08/abc123.thumb-webp.webp
cardUrlstring | nullWymagane

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.

Przykładhttps://storage.xhp.cz/org-slug/product/2026-08/abc123.card-webp.webp
heroUrlstring | nullWymagane

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.

Przykładhttps://storage.xhp.cz/org-slug/product/2026-08/abc123.hero-webp.webp
zoomUrlstring | nullWymagane

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.

Przykładhttps://storage.xhp.cz/org-slug/product/2026-08/abc123.zoom-webp.webp
mainImageThumbUrlstring | nullOpcjonalne

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.

Przykładhttps://storage.xhp.cz/org-slug/product/2026-08/abc123.thumb-webp.webp
mainImageCardUrlstring | nullOpcjonalne

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.

Przykładhttps://storage.xhp.cz/org-slug/product/2026-08/abc123.card-webp.webp
galleryItemsobject[]Wymagane

List of product gallery media items.

Każdy element tablicy:

Product gallery media item.

type"image" | "video"Wymagane

Media type of the gallery item.

Domyślnie: imageWartości: imagevideo
idnumberWymagane

Gallery item ID.

urlstringWymagane

Public URL of the media file.

Przykładhttps://storage.xhp.cz/...
titlestringOpcjonalne

Optional title of the gallery item.

tagstringOpcjonalne

Optional tag for grouping or filtering.

galleryItemsCountnumberWymagane

Total count of gallery items.

isVariantProductbooleanWymagane

Whether the product has variants.

variantItemsobject[]Wymagane

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

Każdy element tablicy:

Product variant item.

idstringWymagane

Variant relation hash.

Przykładabc123
codestringWymagane

Variant code identifier.

Przykładcheese-burger
namestringWymagane

Variant display name.

PrzykładCheese Burger
eanstringOpcjonalne

EAN barcode.

Przykład8594000000001
pricenumberWymagane

Variant price (base product price + variant addition).

Przykład250
warehouseAllQuantitynumberOpcjonalne

Available warehouse quantity for this variant.

activebooleanWymagane

Whether the product is active and visible.

b2bbooleanWymagane

Whether this is a B2B-only product.

showInFeedbooleanWymagane

Whether the product appears in public feed.

soldOutbooleanWymagane

Whether the product is sold out.

positionnumberWymagane

Display position for sorting.

Przykład1
mainCategoryobjectOpcjonalne

Product category reference.

slugstringWymagane

URL-friendly category identifier.

Przykładsmartphone
codestringWymagane

Internal category code.

PrzykładCAT-001
namestringWymagane

Localized category name.

PrzykładSmartphones
categoryPathItemsobject[]Wymagane

Breadcrumb path from root to main category.

Każdy element tablicy:

Product category reference.

slugstringWymagane

URL-friendly category identifier.

Przykładsmartphone
codestringWymagane

Internal category code.

PrzykładCAT-001
namestringWymagane

Localized category name.

PrzykładSmartphones
categoryItemsobject[]Wymagane

All categories the product belongs to.

Każdy element tablicy:

Product category reference.

slugstringWymagane

URL-friendly category identifier.

Przykładsmartphone
codestringWymagane

Internal category code.

PrzykładCAT-001
namestringWymagane

Localized category name.

PrzykładSmartphones
brandIdnumberOpcjonalne

Associated brand ID.

pricenumberWymagane

Final product price including VAT.

Przykład250
currencystringOpcjonalne

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

PrzykładyCZKEUR
isRequestedLocalebooleanOpcjonalne

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

priceWithoutVatnumberWymagane

Product price excluding VAT.

Przykład206.61
vatnumberWymagane

VAT percentage rate.

Przykład21
standardPricePercentagenumberOpcjonalne

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

sizeWidthMmnumberOpcjonalne

Product width in millimeters.

sizeHeightMmnumberOpcjonalne

Product height in millimeters.

sizeDepthMmnumberOpcjonalne

Product depth in millimeters.

weightGramsnumberOpcjonalne

Product weight in grams.

warehouseAllQuantitynumberOpcjonalne

Total available warehouse quantity.

warehouseLimitnumberOpcjonalne

Minimum warehouse quantity threshold.

eventobjectOpcjonalne

Calendar event linked to the product.

idstringWymagane

Event code identifier.

startTimeDate | string | string | numberWymagane

Event start date and time.

Jedna z 4 opcji:
Wariant 1
Date

Event start date and time.

Wariant 2
stringdate-time
Wariant 3
stringdate
Wariant 4
number
endTimeDate | string | string | numberWymagane

Event end date and time.

Jedna z 4 opcji:
Wariant 1
Date

Event end date and time.

Wariant 2
stringdate-time
Wariant 3
stringdate
Wariant 4
number
isAllDaybooleanWymagane

Whether the event spans the entire day.

isBlockingbooleanWymagane

Whether the event blocks other bookings.

titlestringWymagane

Event title.

descriptionstringOpcjonalne

Event description text.

agendastringOpcjonalne

Event agenda or schedule.

urlstringOpcjonalne

External URL for the event.

locationTitlestringOpcjonalne

Name of the event location.

advanceobjectWymagane

Advanced product data.

relatedCustomersstring[]Wymagane

External IDs of related customers.

relatedProductsobject[]Wymagane

List of related products.

Każdy element tablicy:

Related product reference.

slugstringWymagane

URL slug of the related product.

namestringWymagane

Related product name.

mainImageUrlstringOpcjonalne

URL of the main image.

pricenumberWymagane

Product price.

mainCategoryobjectOpcjonalne

Product category reference.

slugstringWymagane

URL-friendly category identifier.

Przykładsmartphone
codestringWymagane

Internal category code.

PrzykładCAT-001
namestringWymagane

Localized category name.

PrzykładSmartphones
shortDescriptionstringOpcjonalne

Short HTML description. Returned as sanitized HTML string.

customFieldsobjectWymagane

Custom key-value fields defined by the organisation.

lastUpdateDate | string | string | numberWymagane

Timestamp of the last read model update.

Jedna z 4 opcji:
Wariant 1
Date

Timestamp of the last read model update.

Wariant 2
stringdate-time
Wariant 3
stringdate
Wariant 4
number
orderStatisticsobjectOpcjonalne

Aggregated order statistics for the product.

totalQuantitySoldnumberWymagane

Total quantity sold across all order statuses.

statusNewnumberWymagane

Quantity in new orders.

statusProcessingnumberWymagane

Quantity in processing orders.

statusStornonumberWymagane

Quantity in canceled orders.

statusDonenumberWymagane

Quantity in completed orders.

Przykład odpowiedzi

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
  }
}

Przykład żądania

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"

Potrzebujesz klucza API?

Wszystkie publiczne endpointy BizKitHub API uwierzytelniają się kluczem API.

Uzyskaj klucz API