BizKitHub
DokumentáciaPrieskumník APIOrder/api/v1/shop/order/detail
getOrderVerejné API v1

/api/v1/shop/order/detail

Public order detail addressed by the 32-char order hash. No API key is required — anyone with the hash (typically an emailed link) can read this. The response is enriched with all context a frontend typically needs to render an order page: prices (base + delivery + payment), payment progress (paidAmount), issued accounting documents (documents), full order timeline (events), tags, customer identity/tax info, order kind and group code, plus both the public and internal notes.

⚠ internalNotice carries organisation-internal context. Never display it to the paying customer — gate its rendering behind an operator role in the consuming frontend.

ordergetApiV1ShopOrderDetail

Parametre

1 v query

Parametre v query

· 1
hashstringPovinné
Príkladexample_hash

Schéma odpovede

1 zdokumentovaný stavový kód

200Úspech
object | object
Jedna z 2 možností:
Variant 1
exist"true"Povinné

Indicator of whether the order exists.

idstringPovinné

Order number for system identification.

Príklad25000087
hashstringPovinné

Unique hash of the order.

PríkladsSO98YxzR4KJiOu66Jn6K3wRwa4FPI7S
localestringPovinné

Communication locale code — controls the language of textual data (product names, descriptions, articles, storefront UI, transactional e-mails).

Preferred format: BCP 47 language tag — language[-Script][-REGION]. Use the full tag whenever the script or region matters:

  • en-GB vs. en-US (British vs. American spelling)
  • pt-PT vs. pt-BR (European vs. Brazilian Portuguese)
  • zh-Hans vs. zh-Hant (Simplified vs. Traditional Chinese)
  • sr-Latn vs. sr-Cyrl (Latin vs. Cyrillic Serbian)

Backwards-compatible fallback: the bare two-letter ISO 639-1 code (cs, en, pl, …) is accepted indefinitely — legacy clients that only send the language subtag continue to work unchanged.

Resolution algorithm (server-side): the input is resolved against the supported locale list via the [RFC 4647 Lookup] progressive-fallback strategy — trailing subtags are stripped one by one until a supported locale is found. Example: en-GB-oxendict → en-GB → en (matched). If no subtag combination is supported, the request is rejected.

Currently supported locales: cs, en, fr, it, pl, de, sk, sv, es, zh, ja, uk, da, hu, ro, nl, pt, fi, nb, hr. Region-specific variants (e.g. en-GB, pt-BR) are accepted and resolved to their base language when the exact variant is not registered separately.

Dĺžka: 2–35
Príkladycsenen-GBpt-BRzh-Hans
kind"commerce" | "registration"Povinné

Behavioral category of the order (see POST /order/create). commerce for a standard order, registration for a sign-up / event admission. Lets the frontend swap copy and CTAs.

Predvolené: commerceHodnoty: commerceregistration
groupCodestringVoliteľné

Organisation-defined order group code (shop__order_group.code).

Príkladbranch-vinohrady
payDateDate | string | string | numberVoliteľné

Date and time of order payment.

Jedna z 4 možností:
Variant 1
Date

Date and time of order payment.

Príklad2025-01-10T16:19:41.675Z
Variant 2
stringdate-time
Variant 3
stringdate
Variant 4
number
dueDateDate | string | string | numberVoliteľné

Due date for payment. Used for bank-transfer flows and displayed on the order detail.

Jedna z 4 možností:
Variant 1
Date

Due date for payment. Used for bank-transfer flows and displayed on the order detail.

Príklad2025-01-24T00:00:00.000Z
Variant 2
stringdate-time
Variant 3
stringdate
Variant 4
number
statusobjectPovinné
labelstringPovinné

Public status label defined by the organization and order group.

PríkladPaid
colorstringPovinné
Príklad#1e90ff
onlinePaymentStatusstringVoliteľné
PríkladyCREATEDPAIDCANCELEDPAYMENT_METHOD_CHOSENTIMEOUTEDAUTHORIZEDREFUNDEDPARTIALLY_REFUNDED
onlinePaymentStatusLabelstringVoliteľné
PríkladyPlatba vytvořenaPlatba uhrazenaPlatba zamítnutaPlatební metoda potvrzenaPlatbě vypršela životnostPlatba předautorizovánaPlatba vrácenaPlatba částečně vrácena
onlinePaymentCheckingbooleanPovinné

Indicator of whether online payment checking is in progress.

Príkladfalse
variableSymbolstringPovinné

Unique bank/invoice variable symbol across all organisation.

Príklad25000087
internalNoticestringVoliteľné

Organisation-internal note attached to the order. Never surfaced to the paying customer — the endpoint is public by hash, so a frontend that shows this must gate it behind an operator role.

PríkladPriorita, dohodnuto s klientem po telefonu.
publicNoticestringVoliteľné

Public note for the order.

PríkladThank you for your order.
shipNotBeforestringVoliteľné

Postponed shipping: the order ships no earlier than this day (YYYY-MM-DD, Europe/Prague). Absent = ships as usual. Safe to show to the customer.

Príklad2026-12-15
insertedDateDate | string | string | numberPovinné

Date and time the order was created.

Jedna z 4 možností:
Variant 1
Date

Date and time the order was created.

Príklad2025-01-10T16:19:40.150Z
Variant 2
stringdate-time
Variant 3
stringdate
Variant 4
number
updatedDateDate | string | string | numberPovinné

Date and time the order was last updated.

Jedna z 4 možností:
Variant 1
Date

Date and time the order was last updated.

Príklad2025-01-10T16:30:07.172Z
Variant 2
stringdate-time
Variant 3
stringdate
Variant 4
number
expirationDateDate | string | string | numberVoliteľné

Date and time of order expiration. If this time is reached and the order is not paid, it will be automatically canceled.

Jedna z 4 možností:
Variant 1
Date

Date and time of order expiration. If this time is reached and the order is not paid, it will be automatically canceled.

Príklad2025-01-12T16:19:40.150Z
Variant 2
stringdate-time
Variant 3
stringdate
Variant 4
number
priceobjectPovinné
priceWithVatnumberPovinné

Cena s DPH.

Príklad0
currencystringPovinné

Currency code. Format: 3-letter uppercase code (e.g. CZK).
Supported values: CZK, EUR, USD.

PríkladyCZKEURUSD
priceWithoutVatnumberPovinné

Cena bez DPH.

Príklad0
vatnumberPovinné

Výše DPH v procentech.

Príklad21
currencyLocalestringPovinné

Místní označení měny.

PríkladKč
saleobjectPovinné
priceWithVatnumberPovinné

Cena s DPH.

Príklad0
currencystringPovinné

Currency code. Format: 3-letter uppercase code (e.g. CZK).
Supported values: CZK, EUR, USD.

PríkladyCZKEURUSD
priceWithoutVatnumberPovinné

Cena bez DPH.

Príklad0
vatnumberPovinné

Výše DPH v procentech.

Príklad21
currencyLocalestringPovinné

Místní označení měny.

PríkladKč
deliveryPriceobjectVoliteľné
priceWithVatnumberPovinné

Cena s DPH.

Príklad0
currencystringPovinné

Currency code. Format: 3-letter uppercase code (e.g. CZK).
Supported values: CZK, EUR, USD.

PríkladyCZKEURUSD
priceWithoutVatnumberPovinné

Cena bez DPH.

Príklad0
vatnumberPovinné

Výše DPH v procentech.

Príklad21
currencyLocalestringPovinné

Místní označení měny.

PríkladKč
paymentPriceobjectVoliteľné
priceWithVatnumberPovinné

Cena s DPH.

Príklad0
currencystringPovinné

Currency code. Format: 3-letter uppercase code (e.g. CZK).
Supported values: CZK, EUR, USD.

PríkladyCZKEURUSD
priceWithoutVatnumberPovinné

Cena bez DPH.

Príklad0
vatnumberPovinné

Výše DPH v procentech.

Príklad21
currencyLocalestringPovinné

Místní označení měny.

PríkladKč
paidAmountobjectPovinné

Screen-friendly summary of the paid / refunded / remaining amounts.

totalReceivednumberPovinné

Cumulative amount already received.

Príklad1200
refundednumberPovinné

Total amount refunded to the customer.

Príklad0
remainingnumberPovinné

Remaining amount to be paid (order price − totalReceived, clamped to 0).

Príklad0
customerobjectVoliteľné
emailstringVoliteľné

Contact email address.

The system validates the input as a standard email address and automatically applies normalization and canonicalization.

All API responses return the normalized form, and each email address is unique per organisation within the system.

Phone-only contacts: Since 2026-06-10 a contact may exist without an e-mail when it was registered only by phone (e.g. imports of phone-only records). Responses that expose such contacts use API_EMAIL_NULLABLE instead, where this field can be null. Endpoints that accept e-mail as input still require a valid value here — phone-only creation goes through admin-only import / BFF flows.

phonestringVoliteľné

Customer phone number.

Príklad+420 777123456
firstNamestringVoliteľné

Customer first name.

PríkladJan
lastNamestringVoliteľné

Customer last name.

PríkladBarášek
companyNamestringVoliteľné

Name of the customer's company.

PríkladCompany Ltd.
icstringVoliteľné

Company registration number (IČO).

Príklad12345678
dicstringVoliteľné

Tax identification number (DIČ).

PríkladCZ12345678
premiumbooleanPovinné

Indicator of whether the customer is premium.

Príkladfalse
externalIdSha256stringVoliteľné

Lowercase hex SHA-256 of the customer reference number (cuRefNo). Stable per customer and organisation; ready to send as Meta CAPI user_data.external_id without further hashing.

Príklad9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08
itemsobject[]Povinné
Každá položka poľa:
idstringPovinné

Order item ID.

PríkladsSO98YxzR4KJiOu66Jn6K3wRwa4FPI7S_4186
isStornobooleanPovinné

Indicator of whether the item is canceled.

Príkladfalse
labelstringPovinné

Order item description as HTML.

PríkladGymRoom reservation
countnumberPovinné

Number of items.

Príklad1
priceobjectPovinné
priceWithVatnumberPovinné

Cena s DPH.

Príklad0
currencystringPovinné

Currency code. Format: 3-letter uppercase code (e.g. CZK).
Supported values: CZK, EUR, USD.

PríkladyCZKEURUSD
priceWithoutVatnumberPovinné

Cena bez DPH.

Príklad0
vatnumberPovinné

Výše DPH v procentech.

Príklad21
currencyLocalestringPovinné

Místní označení měny.

PríkladKč
unitstringPovinné

Item units.

Príkladks
vatnumberVoliteľné
creditAmountnumberPovinné

Credit value of the item.

Príklad0
productCodestringVoliteľné
productNamestringVoliteľné
productMainImageUrlstringVoliteľné
Príkladhttps://storage.xhp.cz/...
variantCodestringVoliteľné
variantNamestringVoliteľné
eventCalendarCodestringVoliteľné
eventCodestringVoliteľné
eventTitlestringVoliteľné
branchstringVoliteľné

Slug of the branch (pobočka) this line item was attributed to.

Príkladgymroom-plzen
bundleItemsobject[]Voliteľné

Present only when this line is a product bundle (sada): the components it was expanded into. The bundle line carries the price; components are informational (price 0) and are the lines that get reserved and shipped from the warehouse.

Každá položka poľa:
idstringPovinné

Order item ID of the component line.

isStornobooleanPovinné

Storno state (always equal to the bundle line).

labelstringPovinné

Component description as HTML.

PríkladProtein shaker
countnumberPovinné

Units of the component (bundle count × quantity).

Príklad2
productCodestringVoliteľné
productNamestringVoliteľné
variantCodestringVoliteľné
variantNamestringVoliteľné
vouchersobject[]Povinné

Vouchers redeemed on this order. Their monetary effect (if any) is already reflected in items as a negative-priced row; this field is the canonical audit list of the codes themselves.

Každá položka poľa:
codestringPovinné

Voucher code that was redeemed on the order.

PríkladSUMMER-15
type"fixed" | "percentage" | "free-credit" | "free-product"Povinné

Voucher type. fixed / percentage discount the order total (visible as a negative line item); free-credit grants credits to the customer account; free-product grants a product line item.

Predvolené: fixedHodnoty: fixedpercentagefree-creditfree-product
valuestringPovinné

Type-dependent payload value. For fixed the discount amount in order currency, for percentage the percentage rate, for free-credit the credit amount.

Príklady150103000
isOrderSingletonbooleanPovinné

Whether this voucher cannot be combined with other vouchers on the same order.

Príkladfalse
currencystringPovinné
PríkladCZK
tagsobjectPovinné
attributionobjectVoliteľné

Checkout attribution sent in POST /order/create (attribution). Present only when at least one value was stored. Use it server-side to enrich conversion events such as Meta CAPI Purchase.

fbcstringVoliteľné

Meta click ID (_fbc cookie or fb.1.<ms>.<fbclid> built from the landing URL).

Príkladfb.1.1730530000000.IwAR2abc
fbpstringVoliteľné

Meta browser ID (_fbp cookie).

Príkladfb.1.1730530000000.123456789
eventSourceUrlstringVoliteľné

Absolute http(s) URL of the page where the order was placed.

Príkladhttps://gymroom.cz/rezervace/smichov
clientUserAgentstringVoliteľné

Browser user agent.

PríkladMozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)
documentsobject[]Povinné

All files attached to the order (shop__order_file) — accounting documents (invoices, receipts, proformas), calendar events (.ics), delivery notes and arbitrary operator uploads. Each row carries the download URL and blob metadata; accounting rows additionally carry invoice metadata (type, sequenceNumber, issueDate, dueDate, paidDate, total, currency).

Každá položka poľa:
idstringPovinné

Blob token — URL-safe stable identifier of the underlying storage object.

PríkladNa60Mbk8LwJIGxsns1JK3TnSE268qVa1
labelstringPovinné

Human-friendly label from shop__order_file.label; falls back to the blob filename.

Príkladreceipt-26000001.pdf
filenamestringPovinné
Príkladreceipt_26000001.pdf
downloadUrlstringPovinné

Direct download link resolved via resolveBlobList (storage-slug scoped).

Príkladhttps://storage.xhp.cz/org-slug/receipt/2026-01/26000001_....pdf
sizenumberPovinné

File size in bytes.

Príklad52771
contentTypestringPovinné
Príkladyapplication/pdftext/calendar
insertedDateDate | string | string | numberPovinné

When the file was attached to the order.

Jedna z 4 možností:
Variant 1
Date

When the file was attached to the order.

Príklad2026-06-10T08:03:21.571Z
Variant 2
stringdate-time
Variant 3
stringdate
Variant 4
number
typestringVoliteľné

Accounting document type (shop__invoice_type.type). Present only when this file is a rendered invoice / receipt / proforma; absent for arbitrary attachments (e.g. calendar .ics).

Príkladyinvoicereceiptproforma
sequenceNumberstringVoliteľné

Organisation-scoped invoice sequence number. Present only for accounting documents.

Príklad2025-000123
issueDateDate | string | string | numberVoliteľné
Jedna z 4 možností:
Variant 1
Date
Príklad2025-01-10T16:19:41.675Z
Variant 2
stringdate-time
Variant 3
stringdate
Variant 4
number
dueDateDate | string | string | numberVoliteľné
Jedna z 4 možností:
Variant 1
Date
Príklad2025-01-24T00:00:00.000Z
Variant 2
stringdate-time
Variant 3
stringdate
Variant 4
number
paidDateDate | string | string | numberVoliteľné
Jedna z 4 možností:
Variant 1
Date
Príklad2025-01-12T09:00:00.000Z
Variant 2
stringdate-time
Variant 3
stringdate
Variant 4
number
totalnumberVoliteľné
Príklad1210
currencystringVoliteľné
PríkladCZK
shipmentsobject[]Povinné

Parcels shipped for the order (cancelled and draft parcels are omitted), newest first. Render them as a "Track your parcel" block.

Každá položka poľa:
carrierNamestringPovinné
PríkladGLS
trackingNumberstringVoliteľné
Príklad5042379086
trackingUrlstringVoliteľné

Carrier's public tracking page. Absent when the carrier has none.

Príkladhttps://gls-group.com/CZ/cs/sledovani-zasilek?match=5042379086
statestringPovinné

Current parcel state as last reported by the carrier: created, handed_over, in_transit, ready_for_pickup, delivered, returned, failed.

Príkladin_transit
insertedDatestringPovinné

When the parcel was created.

Príklad2026-11-07T10:15:00.000Z
eventsobject[]Povinné

Chronological order timeline (status transitions, payment attempts, bank matches, issued documents). Internal-only rows are stripped — safe to render as a public activity feed.

Každá položka poľa:
type"statusHistory" | "onlinePayment" | "bankTransaction" | "accountingDocument"Povinné

Timeline event kind (status flip, gateway callback, bank match, document issued).

Predvolené: statusHistoryHodnoty: statusHistoryonlinePaymentbankTransactionaccountingDocument
labelstringPovinné
PríkladOrder marked as paid
descriptionstringVoliteľné
PríkladManual credit — cash on delivery.
dateDate | string | string | numberPovinné
Jedna z 4 možností:
Variant 1
Date
Príklad2025-01-11T12:04:00.000Z
Variant 2
stringdate-time
Variant 3
stringdate
Variant 4
number
color"primary" | "error" | "info" | "success"Voliteľné
Predvolené: primaryHodnoty: primaryerrorinfosuccess
linksobjectPovinné
onlinePaymentLinkstringVoliteľné

Link to online payment of the order.

Príkladhttps://bizkithub.com/order/pay?hash=sSO98YxzR4KJiOu66Jn6K3wRwa4FPI7S
returnUrlstringVoliteľné

URL to which the customer is redirected after successful payment.

Príkladhttps://gymroom.cz/eshop/dekujeme-eshop
Variant 2
exist"false"Povinné

Ukážka odpovede

application/json
{
  "exist": true,
  "id": "25000087",
  "hash": "sSO98YxzR4KJiOu66Jn6K3wRwa4FPI7S",
  "locale": "cs",
  "kind": "commerce",
  "groupCode": "branch-vinohrady",
  "payDate": "2025-01-10T16:19:41.675Z",
  "dueDate": "2025-01-24T00:00:00.000Z",
  "status": {
    "label": "Paid",
    "color": "#1e90ff",
    "onlinePaymentStatus": "CREATED",
    "onlinePaymentStatusLabel": "Platba vytvořena",
    "onlinePaymentChecking": false
  },
  "variableSymbol": "25000087",
  "internalNotice": "Priorita, dohodnuto s klientem po telefonu.",
  "publicNotice": "Thank you for your order.",
  "shipNotBefore": "2026-12-15",
  "insertedDate": "2025-01-10T16:19:40.150Z",
  "updatedDate": "2025-01-10T16:30:07.172Z",
  "expirationDate": "2025-01-12T16:19:40.150Z",
  "price": {
    "priceWithVat": 0,
    "currency": "CZK",
    "priceWithoutVat": 0,
    "vat": 21,
    "currencyLocale": "Kč"
  },
  "sale": {
    "priceWithVat": 0,
    "currency": "CZK",
    "priceWithoutVat": 0,
    "vat": 21,
    "currencyLocale": "Kč"
  },
  "deliveryPrice": {
    "priceWithVat": 0,
    "currency": "CZK",
    "priceWithoutVat": 0,
    "vat": 21,
    "currencyLocale": "Kč"
  },
  "paymentPrice": {
    "priceWithVat": 0,
    "currency": "CZK",
    "priceWithoutVat": 0,
    "vat": 21,
    "currencyLocale": "Kč"
  },
  "paidAmount": {
    "totalReceived": 1200,
    "refunded": 0,
    "remaining": 0
  },
  "customer": {
    "email": "[email protected]",
    "phone": "+420 777123456",
    "firstName": "Jan",
    "lastName": "Barášek",
    "companyName": "Company Ltd.",
    "ic": "12345678",
    "dic": "CZ12345678",
    "premium": false,
    "externalIdSha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"
  },
  "items": [
    {
      "id": "sSO98YxzR4KJiOu66Jn6K3wRwa4FPI7S_4186",
      "isStorno": false,
      "label": "GymRoom reservation",
      "count": 1,
      "price": {
        "priceWithVat": 0,
        "currency": "CZK",
        "priceWithoutVat": 0,
        "vat": 21,
        "currencyLocale": "Kč"
      },
      "unit": "ks",
      "vat": 0,
      "creditAmount": 0,
      "productCode": "example_productCode",
      "productName": "example_productName",
      "productMainImageUrl": "https://storage.xhp.cz/...",
      "variantCode": "example_variantCode",
      "variantName": "example_variantName",
      "eventCalendarCode": "example_eventCalendarCode",
      "eventCode": "example_eventCode",
      "eventTitle": "example_eventTitle",
      "branch": "gymroom-plzen",
      "bundleItems": [
        {
          "id": "example_id",
          "isStorno": false,
          "label": "Protein shaker",
          "count": 2,
          "productCode": "example_productCode",
          "productName": "example_productName",
          "variantCode": "example_variantCode",
          "variantName": "example_variantName"
        }
      ]
    }
  ],
  "vouchers": [
    {
      "code": "SUMMER-15",
      "type": "fixed",
      "value": "150",
      "isOrderSingleton": false,
      "currency": "CZK"
    }
  ],
  "tags": {},
  "attribution": {
    "fbc": "fb.1.1730530000000.IwAR2abc",
    "fbp": "fb.1.1730530000000.123456789",
    "eventSourceUrl": "https://gymroom.cz/rezervace/smichov",
    "clientUserAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)"
  },
  "documents": [
    {
      "id": "Na60Mbk8LwJIGxsns1JK3TnSE268qVa1",
      "label": "receipt-26000001.pdf",
      "filename": "receipt_26000001.pdf",
      "downloadUrl": "https://storage.xhp.cz/org-slug/receipt/2026-01/26000001_....pdf",
      "size": 52771,
      "contentType": "application/pdf",
      "insertedDate": "2026-06-10T08:03:21.571Z",
      "type": "invoice",
      "sequenceNumber": "2025-000123",
      "issueDate": "2025-01-10T16:19:41.675Z",
      "dueDate": "2025-01-24T00:00:00.000Z",
      "paidDate": "2025-01-12T09:00:00.000Z",
      "total": 1210,
      "currency": "CZK"
    }
  ],
  "shipments": [
    {
      "carrierName": "GLS",
      "trackingNumber": "5042379086",
      "trackingUrl": "https://gls-group.com/CZ/cs/sledovani-zasilek?match=5042379086",
      "state": "in_transit",
      "insertedDate": "2026-11-07T10:15:00.000Z"
    }
  ],
  "events": [
    {
      "type": "statusHistory",
      "label": "Order marked as paid",
      "description": "Manual credit — cash on delivery.",
      "date": "2025-01-11T12:04:00.000Z",
      "color": "primary"
    }
  ],
  "links": {
    "onlinePaymentLink": "https://bizkithub.com/order/pay?hash=sSO98YxzR4KJiOu66Jn6K3wRwa4FPI7S",
    "returnUrl": "https://gymroom.cz/eshop/dekujeme-eshop"
  }
}

Ukážka požiadavky

GET /api/v1/shop/order/detail

get
curl -X GET "https://api.bizkithub.com/api/v1/shop/order/detail?hash=example_hash" \
  -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ľúč