/api/v1/cart/buy

API endpoint documentation

post
Tags:cart
Operation ID: postApiV1CartBuy
Query Parameters
apiKeystring
required

Your BizKitHub API key (passed as GET parameter)

Body
cartIdstring
required
Example: "b411056d304d9y6mHe2SoMFBL2Apxfnb"
identityIdstring
optional

Use customer identity cookies value when is logged in.

Example: "9jq49ZE1xoKI7S5ys4J0a70y3Xp2hQqc"
quantitynumber
optional
Example: 2
productCodestring
required
Example: "coca-cola"
productVariantCodestring
optional
Example: "coca-cola-zero"
Responses
200

No description

Base URL:
https://bizkithub.com

Example Request

fetch('https://bizkithub.com/api/v1/cart/buy?apiKey=YOUR_API_KEY', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
        "cartId": "b411056d304d9y6mHe2SoMFBL2Apxfnb",
        "identityId": "9jq49ZE1xoKI7S5ys4J0a70y3Xp2hQqc",
        "quantity": 2,
        "productCode": "coca-cola",
        "productVariantCode": "coca-cola-zero"
    })
})

Example Response

HTTP 200Success Response
{
  "success": false
}

🔑 API Key Required

All BizKitHub API endpoints require authentication using an API key. The API key must be passed as a GET parameter in the URL for all requests.

Back to API Documentation
Last updated: August 6, 2025