get
/api/v1/cart/detail
API endpoint documentation
Endpoint Info
Base URLapi.bizkithub.com
AuthBearer Token
Methods1
Authentication Required
This endpoint requires a valid API key passed as a query parameter or Bearer token.
Get your API keyParameters
2 query parameters
apiKeystringrequiredYour 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
cartIdstringExample Request
JavaScript fetch
const response = await fetch("https://api.bizkithub.com/api/v1/cart/detail?apiKey=PRODPGrFxpGEtrOZfuWhnoJohUYBXuOE&cartId=b411056d304d9y6mHe2SoMFBL2Apxfnb", {
method: "GET",
headers: {
"Content-Type": "application/json"
}
});
const data = await response.json();
console.log(data);get
Example Response
200Success
{
"id": "b411056d304d9y6mHe2SoMFBL2Apxfnb",
"customerId": "HxanU4a1n4El61zx",
"customerName": "Jan Barášek",
"customerEmail": "jan@barasek.com",
"currency": "CZK",
"priceTotal": 12699,
"deliveryCode": "packeta",
"deliveryBranchId": 0,
"deliveryBranchProvider": "example_deliveryBranchProvider",
"paymentCode": "comgate",
"deliveryList": [
{
"name": "Zásilkovna",
"code": "packeta",
"description": "example_description",
"price": 59,
"active": true,
"selected": false
}
],
"paymentList": [
{
"name": "Online platba kartou",
"code": "comgate",
"description": "Platební brána Comgate",
"price": 0,
"active": true,
"selected": false
}
],
"deliveryAndPaymentCombinations": [
{
"deliveryCode": "packeta",
"paymentCode": "comgate"
}
],
"items": [
{
"id": "v211g68VlHP98w3s",
"label": "Coca cola zero",
"mainImageUrl": "https://storage.xhp.cz/...",
"productCode": "coca-cola",
"productSlug": "coca-cola",
"variantCode": "coca-cola-zero",
"price": {
"priceWithVat": 0,
"currency": "CZK",
"priceWithoutVat": 0,
"vat": 21,
"currencyLocale": "Kč"
},
"quantity": 4
}
]
}cURL
Command line example
curl -X GET "https://api.bizkithub.com/api/v1/cart/detail?apiKey=PRODPGrFxpGEtrOZfuWhnoJohUYBXuOE&cartId=b411056d304d9y6mHe2SoMFBL2Apxfnb" \
-H "Content-Type: application/json"Need an API key?
All BizKitHub API endpoints require authentication via API key.