BizKitHub
DokumentacjaEksplorator APIOrder/api/v1/shop/order/detail
getOrderPubliczne 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 w query

Parametry query

· 1
hashstringWymagane
Przykładexample_hash

Schemat odpowiedzi

1 udokumentowany kod statusu

200Sukces
object | object
Jedna z 2 opcji:
Wariant 1
exist"true"Wymagane

Indicator of whether the order exists.

idstringWymagane

Order number for system identification.

Przykład25000087
hashstringWymagane

Unique hash of the order.

PrzykładsSO98YxzR4KJiOu66Jn6K3wRwa4FPI7S
localestringWymagane

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ługość: 2–35
Przykładycsenen-GBpt-BRzh-Hans
kind"commerce" | "registration"Wymagane

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.

Domyślnie: commerceWartości: commerceregistration
groupCodestringOpcjonalne

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

Przykładbranch-vinohrady
payDateDate | string | string | numberOpcjonalne

Date and time of order payment.

Jedna z 4 opcji:
Wariant 1
Date

Date and time of order payment.

Przykład2025-01-10T16:19:41.675Z
Wariant 2
stringdate-time
Wariant 3
stringdate
Wariant 4
number
dueDateDate | string | string | numberOpcjonalne

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

Jedna z 4 opcji:
Wariant 1
Date

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

Przykład2025-01-24T00:00:00.000Z
Wariant 2
stringdate-time
Wariant 3
stringdate
Wariant 4
number
statusobjectWymagane
labelstringWymagane

Public status label defined by the organization and order group.

PrzykładPaid
colorstringWymagane
Przykład#1e90ff
onlinePaymentStatusstringOpcjonalne
PrzykładyCREATEDPAIDCANCELEDPAYMENT_METHOD_CHOSENTIMEOUTEDAUTHORIZEDREFUNDEDPARTIALLY_REFUNDED
onlinePaymentStatusLabelstringOpcjonalne
PrzykładyPlatba vytvořenaPlatba uhrazenaPlatba zamítnutaPlatební metoda potvrzenaPlatbě vypršela životnostPlatba předautorizovánaPlatba vrácenaPlatba částečně vrácena
onlinePaymentCheckingbooleanWymagane

Indicator of whether online payment checking is in progress.

Przykładfalse
variableSymbolstringWymagane

Unique bank/invoice variable symbol across all organisation.

Przykład25000087
internalNoticestringOpcjonalne

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.

PrzykładPriorita, dohodnuto s klientem po telefonu.
publicNoticestringOpcjonalne

Public note for the order.

PrzykładThank you for your order.
shipNotBeforestringOpcjonalne

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.

Przykład2026-12-15
insertedDateDate | string | string | numberWymagane

Date and time the order was created.

Jedna z 4 opcji:
Wariant 1
Date

Date and time the order was created.

Przykład2025-01-10T16:19:40.150Z
Wariant 2
stringdate-time
Wariant 3
stringdate
Wariant 4
number
updatedDateDate | string | string | numberWymagane

Date and time the order was last updated.

Jedna z 4 opcji:
Wariant 1
Date

Date and time the order was last updated.

Przykład2025-01-10T16:30:07.172Z
Wariant 2
stringdate-time
Wariant 3
stringdate
Wariant 4
number
expirationDateDate | string | string | numberOpcjonalne

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 opcji:
Wariant 1
Date

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

Przykład2025-01-12T16:19:40.150Z
Wariant 2
stringdate-time
Wariant 3
stringdate
Wariant 4
number
priceobjectWymagane
priceWithVatnumberWymagane

Cena s DPH.

Przykład0
currencystringWymagane

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

PrzykładyCZKEURUSD
priceWithoutVatnumberWymagane

Cena bez DPH.

Przykład0
vatnumberWymagane

Výše DPH v procentech.

Przykład21
currencyLocalestringWymagane

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

PrzykładKč
saleobjectWymagane
priceWithVatnumberWymagane

Cena s DPH.

Przykład0
currencystringWymagane

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

PrzykładyCZKEURUSD
priceWithoutVatnumberWymagane

Cena bez DPH.

Przykład0
vatnumberWymagane

Výše DPH v procentech.

Przykład21
currencyLocalestringWymagane

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

PrzykładKč
deliveryPriceobjectOpcjonalne
priceWithVatnumberWymagane

Cena s DPH.

Przykład0
currencystringWymagane

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

PrzykładyCZKEURUSD
priceWithoutVatnumberWymagane

Cena bez DPH.

Przykład0
vatnumberWymagane

Výše DPH v procentech.

Przykład21
currencyLocalestringWymagane

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

PrzykładKč
paymentPriceobjectOpcjonalne
priceWithVatnumberWymagane

Cena s DPH.

Przykład0
currencystringWymagane

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

PrzykładyCZKEURUSD
priceWithoutVatnumberWymagane

Cena bez DPH.

Przykład0
vatnumberWymagane

Výše DPH v procentech.

Przykład21
currencyLocalestringWymagane

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

PrzykładKč
paidAmountobjectWymagane

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

totalReceivednumberWymagane

Cumulative amount already received.

Przykład1200
refundednumberWymagane

Total amount refunded to the customer.

Przykład0
remainingnumberWymagane

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

Przykład0
customerobjectOpcjonalne
emailstringOpcjonalne

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.

phonestringOpcjonalne

Customer phone number.

Przykład+420 777123456
firstNamestringOpcjonalne

Customer first name.

PrzykładJan
lastNamestringOpcjonalne

Customer last name.

PrzykładBarášek
companyNamestringOpcjonalne

Name of the customer's company.

PrzykładCompany Ltd.
icstringOpcjonalne

Company registration number (IČO).

Przykład12345678
dicstringOpcjonalne

Tax identification number (DIČ).

PrzykładCZ12345678
premiumbooleanWymagane

Indicator of whether the customer is premium.

Przykładfalse
externalIdSha256stringOpcjonalne

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.

Przykład9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08
itemsobject[]Wymagane
Każdy element tablicy:
idstringWymagane

Order item ID.

PrzykładsSO98YxzR4KJiOu66Jn6K3wRwa4FPI7S_4186
isStornobooleanWymagane

Indicator of whether the item is canceled.

Przykładfalse
labelstringWymagane

Order item description as HTML.

PrzykładGymRoom reservation
countnumberWymagane

Number of items.

Przykład1
priceobjectWymagane
priceWithVatnumberWymagane

Cena s DPH.

Przykład0
currencystringWymagane

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

PrzykładyCZKEURUSD
priceWithoutVatnumberWymagane

Cena bez DPH.

Przykład0
vatnumberWymagane

Výše DPH v procentech.

Przykład21
currencyLocalestringWymagane

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

PrzykładKč
unitstringWymagane

Item units.

Przykładks
vatnumberOpcjonalne
creditAmountnumberWymagane

Credit value of the item.

Przykład0
productCodestringOpcjonalne
productNamestringOpcjonalne
productMainImageUrlstringOpcjonalne
Przykładhttps://storage.xhp.cz/...
variantCodestringOpcjonalne
variantNamestringOpcjonalne
eventCalendarCodestringOpcjonalne
eventCodestringOpcjonalne
eventTitlestringOpcjonalne
branchstringOpcjonalne

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

Przykładgymroom-plzen
bundleItemsobject[]Opcjonalne

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żdy element tablicy:
idstringWymagane

Order item ID of the component line.

isStornobooleanWymagane

Storno state (always equal to the bundle line).

labelstringWymagane

Component description as HTML.

PrzykładProtein shaker
countnumberWymagane

Units of the component (bundle count × quantity).

Przykład2
productCodestringOpcjonalne
productNamestringOpcjonalne
variantCodestringOpcjonalne
variantNamestringOpcjonalne
vouchersobject[]Wymagane

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żdy element tablicy:
codestringWymagane

Voucher code that was redeemed on the order.

PrzykładSUMMER-15
type"fixed" | "percentage" | "free-credit" | "free-product"Wymagane

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.

Domyślnie: fixedWartości: fixedpercentagefree-creditfree-product
valuestringWymagane

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

Przykłady150103000
isOrderSingletonbooleanWymagane

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

Przykładfalse
currencystringWymagane
PrzykładCZK
tagsobjectWymagane
attributionobjectOpcjonalne

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.

fbcstringOpcjonalne

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

Przykładfb.1.1730530000000.IwAR2abc
fbpstringOpcjonalne

Meta browser ID (_fbp cookie).

Przykładfb.1.1730530000000.123456789
eventSourceUrlstringOpcjonalne

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

Przykładhttps://gymroom.cz/rezervace/smichov
clientUserAgentstringOpcjonalne

Browser user agent.

PrzykładMozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)
documentsobject[]Wymagane

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żdy element tablicy:
idstringWymagane

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

PrzykładNa60Mbk8LwJIGxsns1JK3TnSE268qVa1
labelstringWymagane

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

Przykładreceipt-26000001.pdf
filenamestringWymagane
Przykładreceipt_26000001.pdf
downloadUrlstringWymagane

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

Przykładhttps://storage.xhp.cz/org-slug/receipt/2026-01/26000001_....pdf
sizenumberWymagane

File size in bytes.

Przykład52771
contentTypestringWymagane
Przykładyapplication/pdftext/calendar
insertedDateDate | string | string | numberWymagane

When the file was attached to the order.

Jedna z 4 opcji:
Wariant 1
Date

When the file was attached to the order.

Przykład2026-06-10T08:03:21.571Z
Wariant 2
stringdate-time
Wariant 3
stringdate
Wariant 4
number
typestringOpcjonalne

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

Przykładyinvoicereceiptproforma
sequenceNumberstringOpcjonalne

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

Przykład2025-000123
issueDateDate | string | string | numberOpcjonalne
Jedna z 4 opcji:
Wariant 1
Date
Przykład2025-01-10T16:19:41.675Z
Wariant 2
stringdate-time
Wariant 3
stringdate
Wariant 4
number
dueDateDate | string | string | numberOpcjonalne
Jedna z 4 opcji:
Wariant 1
Date
Przykład2025-01-24T00:00:00.000Z
Wariant 2
stringdate-time
Wariant 3
stringdate
Wariant 4
number
paidDateDate | string | string | numberOpcjonalne
Jedna z 4 opcji:
Wariant 1
Date
Przykład2025-01-12T09:00:00.000Z
Wariant 2
stringdate-time
Wariant 3
stringdate
Wariant 4
number
totalnumberOpcjonalne
Przykład1210
currencystringOpcjonalne
PrzykładCZK
shipmentsobject[]Wymagane

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

Każdy element tablicy:
carrierNamestringWymagane
PrzykładGLS
trackingNumberstringOpcjonalne
Przykład5042379086
trackingUrlstringOpcjonalne

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

Przykładhttps://gls-group.com/CZ/cs/sledovani-zasilek?match=5042379086
statestringWymagane

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

Przykładin_transit
insertedDatestringWymagane

When the parcel was created.

Przykład2026-11-07T10:15:00.000Z
eventsobject[]Wymagane

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żdy element tablicy:
type"statusHistory" | "onlinePayment" | "bankTransaction" | "accountingDocument"Wymagane

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

Domyślnie: statusHistoryWartości: statusHistoryonlinePaymentbankTransactionaccountingDocument
labelstringWymagane
PrzykładOrder marked as paid
descriptionstringOpcjonalne
PrzykładManual credit — cash on delivery.
dateDate | string | string | numberWymagane
Jedna z 4 opcji:
Wariant 1
Date
Przykład2025-01-11T12:04:00.000Z
Wariant 2
stringdate-time
Wariant 3
stringdate
Wariant 4
number
color"primary" | "error" | "info" | "success"Opcjonalne
Domyślnie: primaryWartości: primaryerrorinfosuccess
linksobjectWymagane
onlinePaymentLinkstringOpcjonalne

Link to online payment of the order.

Przykładhttps://bizkithub.com/order/pay?hash=sSO98YxzR4KJiOu66Jn6K3wRwa4FPI7S
returnUrlstringOpcjonalne

URL to which the customer is redirected after successful payment.

Przykładhttps://gymroom.cz/eshop/dekujeme-eshop
Wariant 2
exist"false"Wymagane

Przykład odpowiedzi

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

Przykład żądania

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"

Potrzebujesz klucza API?

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

Uzyskaj klucz API