BizKitHub
DokumentacePrůzkumník APIOrder/api/v1/shop/order/detail
getOrderVeřejné 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

Parametry

1 v query

Parametry v query

· 1
hashstringPovinné
Příkladexample_hash

Schéma odpovědi

1 zdokumentovaný stavový kód

200Úspěch
object | object
Jedna z 2 možností:
Varianta 1
exist"true"Povinné

Indicator of whether the order exists.

idstringPovinné

Order number for system identification.

Příklad25000087
hashstringPovinné

Unique hash of the order.

Pří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élka: 2–35
Pří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.

Výchozí: commerceHodnoty: commerceregistration
groupCodestringVolitelné

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

Příkladbranch-vinohrady
payDateDate | string | string | numberVolitelné

Date and time of order payment.

Jedna z 4 možností:
Varianta 1
Date

Date and time of order payment.

Příklad2025-01-10T16:19:41.675Z
Varianta 2
stringdate-time
Varianta 3
stringdate
Varianta 4
number
dueDateDate | string | string | numberVolitelné

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

Jedna z 4 možností:
Varianta 1
Date

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

Příklad2025-01-24T00:00:00.000Z
Varianta 2
stringdate-time
Varianta 3
stringdate
Varianta 4
number
statusobjectPovinné
labelstringPovinné

Public status label defined by the organization and order group.

PříkladPaid
colorstringPovinné
Příklad#1e90ff
onlinePaymentStatusstringVolitelné
PříkladyCREATEDPAIDCANCELEDPAYMENT_METHOD_CHOSENTIMEOUTEDAUTHORIZEDREFUNDEDPARTIALLY_REFUNDED
onlinePaymentStatusLabelstringVolitelné
Pří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.

Příkladfalse
variableSymbolstringPovinné

Unique bank/invoice variable symbol across all organisation.

Příklad25000087
internalNoticestringVolitelné

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.

PříkladPriorita, dohodnuto s klientem po telefonu.
publicNoticestringVolitelné

Public note for the order.

PříkladThank you for your order.
shipNotBeforestringVolitelné

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.

Příklad2026-12-15
insertedDateDate | string | string | numberPovinné

Date and time the order was created.

Jedna z 4 možností:
Varianta 1
Date

Date and time the order was created.

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

Date and time the order was last updated.

Jedna z 4 možností:
Varianta 1
Date

Date and time the order was last updated.

Příklad2025-01-10T16:30:07.172Z
Varianta 2
stringdate-time
Varianta 3
stringdate
Varianta 4
number
expirationDateDate | string | string | numberVolitelné

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í:
Varianta 1
Date

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

Příklad2025-01-12T16:19:40.150Z
Varianta 2
stringdate-time
Varianta 3
stringdate
Varianta 4
number
priceobjectPovinné
priceWithVatnumberPovinné

Cena s DPH.

Příklad0
currencystringPovinné

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

PříkladyCZKEURUSD
priceWithoutVatnumberPovinné

Cena bez DPH.

Příklad0
vatnumberPovinné

Výše DPH v procentech.

Příklad21
currencyLocalestringPovinné

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

PříkladKč
saleobjectPovinné
priceWithVatnumberPovinné

Cena s DPH.

Příklad0
currencystringPovinné

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

PříkladyCZKEURUSD
priceWithoutVatnumberPovinné

Cena bez DPH.

Příklad0
vatnumberPovinné

Výše DPH v procentech.

Příklad21
currencyLocalestringPovinné

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

PříkladKč
deliveryPriceobjectVolitelné
priceWithVatnumberPovinné

Cena s DPH.

Příklad0
currencystringPovinné

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

PříkladyCZKEURUSD
priceWithoutVatnumberPovinné

Cena bez DPH.

Příklad0
vatnumberPovinné

Výše DPH v procentech.

Příklad21
currencyLocalestringPovinné

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

PříkladKč
paymentPriceobjectVolitelné
priceWithVatnumberPovinné

Cena s DPH.

Příklad0
currencystringPovinné

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

PříkladyCZKEURUSD
priceWithoutVatnumberPovinné

Cena bez DPH.

Příklad0
vatnumberPovinné

Výše DPH v procentech.

Příklad21
currencyLocalestringPovinné

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

PříkladKč
paidAmountobjectPovinné

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

totalReceivednumberPovinné

Cumulative amount already received.

Příklad1200
refundednumberPovinné

Total amount refunded to the customer.

Příklad0
remainingnumberPovinné

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

Příklad0
customerobjectVolitelné
emailstringVolitelné

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.

phonestringVolitelné

Customer phone number.

Příklad+420 777123456
firstNamestringVolitelné

Customer first name.

PříkladJan
lastNamestringVolitelné

Customer last name.

PříkladBarášek
companyNamestringVolitelné

Name of the customer's company.

PříkladCompany Ltd.
icstringVolitelné

Company registration number (IČO).

Příklad12345678
dicstringVolitelné

Tax identification number (DIČ).

PříkladCZ12345678
premiumbooleanPovinné

Indicator of whether the customer is premium.

Příkladfalse
externalIdSha256stringVolitelné

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.

Příklad9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08
itemsobject[]Povinné
Každá položka pole:
idstringPovinné

Order item ID.

PříkladsSO98YxzR4KJiOu66Jn6K3wRwa4FPI7S_4186
isStornobooleanPovinné

Indicator of whether the item is canceled.

Příkladfalse
labelstringPovinné

Order item description as HTML.

PříkladGymRoom reservation
countnumberPovinné

Number of items.

Příklad1
priceobjectPovinné
priceWithVatnumberPovinné

Cena s DPH.

Příklad0
currencystringPovinné

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

PříkladyCZKEURUSD
priceWithoutVatnumberPovinné

Cena bez DPH.

Příklad0
vatnumberPovinné

Výše DPH v procentech.

Příklad21
currencyLocalestringPovinné

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

PříkladKč
unitstringPovinné

Item units.

Příkladks
vatnumberVolitelné
creditAmountnumberPovinné

Credit value of the item.

Příklad0
productCodestringVolitelné
productNamestringVolitelné
productMainImageUrlstringVolitelné
Příkladhttps://storage.xhp.cz/...
variantCodestringVolitelné
variantNamestringVolitelné
eventCalendarCodestringVolitelné
eventCodestringVolitelné
eventTitlestringVolitelné
branchstringVolitelné

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

Příkladgymroom-plzen
bundleItemsobject[]Volitelné

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 pole:
idstringPovinné

Order item ID of the component line.

isStornobooleanPovinné

Storno state (always equal to the bundle line).

labelstringPovinné

Component description as HTML.

PříkladProtein shaker
countnumberPovinné

Units of the component (bundle count × quantity).

Příklad2
productCodestringVolitelné
productNamestringVolitelné
variantCodestringVolitelné
variantNamestringVolitelné
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 pole:
codestringPovinné

Voucher code that was redeemed on the order.

Pří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.

Výchozí: 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.

Příklady150103000
isOrderSingletonbooleanPovinné

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

Příkladfalse
currencystringPovinné
PříkladCZK
tagsobjectPovinné
attributionobjectVolitelné

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.

fbcstringVolitelné

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

Příkladfb.1.1730530000000.IwAR2abc
fbpstringVolitelné

Meta browser ID (_fbp cookie).

Příkladfb.1.1730530000000.123456789
eventSourceUrlstringVolitelné

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

Příkladhttps://gymroom.cz/rezervace/smichov
clientUserAgentstringVolitelné

Browser user agent.

Pří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 pole:
idstringPovinné

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

PříkladNa60Mbk8LwJIGxsns1JK3TnSE268qVa1
labelstringPovinné

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

Příkladreceipt-26000001.pdf
filenamestringPovinné
Příkladreceipt_26000001.pdf
downloadUrlstringPovinné

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

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

File size in bytes.

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

When the file was attached to the order.

Jedna z 4 možností:
Varianta 1
Date

When the file was attached to the order.

Příklad2026-06-10T08:03:21.571Z
Varianta 2
stringdate-time
Varianta 3
stringdate
Varianta 4
number
typestringVolitelné

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).

Příkladyinvoicereceiptproforma
sequenceNumberstringVolitelné

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

Příklad2025-000123
issueDateDate | string | string | numberVolitelné
Jedna z 4 možností:
Varianta 1
Date
Příklad2025-01-10T16:19:41.675Z
Varianta 2
stringdate-time
Varianta 3
stringdate
Varianta 4
number
dueDateDate | string | string | numberVolitelné
Jedna z 4 možností:
Varianta 1
Date
Příklad2025-01-24T00:00:00.000Z
Varianta 2
stringdate-time
Varianta 3
stringdate
Varianta 4
number
paidDateDate | string | string | numberVolitelné
Jedna z 4 možností:
Varianta 1
Date
Příklad2025-01-12T09:00:00.000Z
Varianta 2
stringdate-time
Varianta 3
stringdate
Varianta 4
number
totalnumberVolitelné
Příklad1210
currencystringVolitelné
Pří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 pole:
carrierNamestringPovinné
PříkladGLS
trackingNumberstringVolitelné
Příklad5042379086
trackingUrlstringVolitelné

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

Pří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.

Příkladin_transit
insertedDatestringPovinné

When the parcel was created.

Pří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 pole:
type"statusHistory" | "onlinePayment" | "bankTransaction" | "accountingDocument"Povinné

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

Výchozí: statusHistoryHodnoty: statusHistoryonlinePaymentbankTransactionaccountingDocument
labelstringPovinné
PříkladOrder marked as paid
descriptionstringVolitelné
PříkladManual credit — cash on delivery.
dateDate | string | string | numberPovinné
Jedna z 4 možností:
Varianta 1
Date
Příklad2025-01-11T12:04:00.000Z
Varianta 2
stringdate-time
Varianta 3
stringdate
Varianta 4
number
color"primary" | "error" | "info" | "success"Volitelné
Výchozí: primaryHodnoty: primaryerrorinfosuccess
linksobjectPovinné
onlinePaymentLinkstringVolitelné

Link to online payment of the order.

Příkladhttps://bizkithub.com/order/pay?hash=sSO98YxzR4KJiOu66Jn6K3wRwa4FPI7S
returnUrlstringVolitelné

URL to which the customer is redirected after successful payment.

Příkladhttps://gymroom.cz/eshop/dekujeme-eshop
Varianta 2
exist"false"Povinné

Ukázka odpovědi

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ázka požadavku

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"

Potřebujete API klíč?

Všechny veřejné endpointy BizKitHub API se ověřují API klíčem.

Získat API klíč