Skip to main content

Get

Use the Get Products API to retrieve product details by their IDs.

Request parameters​

NameTypeRequired/OptionalDescription
productIdsstring[]RequiredArray of product IDs to retrieve

Request Information​

CategoryValue
Http requestPOST
URLhttps://bikapi.bikayi.app/integrations/bikPlatformFunctions-products/get

Sample request​

curl --location 'https://bikapi.bikayi.app/integrations/bikPlatformFunctions-products/get' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic AUTH_TOKEN' \
--data '{
"productIds": ["prod_nova_x1", "prod_usb_c_cable"]
}'

JSON response example (electronics store — one product with variants, one without):

{
"status": 200,
"success": true,
"data": {
"products": [
{
"id": "prod_nova_x1",
"name": "Nova X1 Smartphone",
"url": "https://electronics-store.com/products/nova-x1",
"description": "6.7-inch AMOLED display, 108MP camera, 5000mAh battery.",
"image": "https://cdn.electronics-store.com/nova-x1/hero.jpg",
"currency": "INR",
"tags": "smartphone,5g,android",
"catalogIds": ["cat_smartphones"],
"photos": [
{ "photoUrl": "https://cdn.electronics-store.com/nova-x1/front.jpg" },
{ "photoUrl": "https://cdn.electronics-store.com/nova-x1/back.jpg" }
],
"combinations": [
{
"id": "var_nova_x1_black_128",
"productId": "prod_nova_x1",
"name": "Midnight Black / 128GB",
"price": 49999,
"discountedPrice": 44999,
"currency": "INR",
"quantity": 25,
"image": "https://cdn.electronics-store.com/nova-x1/black.jpg",
"productUrl": "https://electronics-store.com/products/nova-x1?variant=black-128",
"options": { "Color": "Midnight Black", "Storage": "128GB" }
}
],
"metafields": [
{
"id": "mf_nova_x1_warranty",
"namespace": "specs",
"key": "warranty_months",
"value": "12"
}
]
},
{
"id": "prod_usb_c_cable",
"name": "Braided USB-C Cable — 1m",
"url": "https://electronics-store.com/products/usb-c-cable-1m",
"description": "Durable braided USB-C to USB-C cable, 100W PD, 1 meter.",
"image": "https://cdn.electronics-store.com/usb-c-cable/hero.jpg",
"currency": "INR",
"tags": "accessory,cable,usb-c",
"photos": [
{ "photoUrl": "https://cdn.electronics-store.com/usb-c-cable/hero.jpg" }
],
"combinations": [
{
"id": "var_usb_c_cable_default",
"productId": "prod_usb_c_cable",
"name": "Default",
"price": 799,
"discountedPrice": 599,
"currency": "INR",
"quantity": 200,
"image": "https://cdn.electronics-store.com/usb-c-cable/hero.jpg",
"productUrl": "https://electronics-store.com/products/usb-c-cable-1m"
}
]
}
]
}
}

Response parameters​

NameTypeDescription
statusnumberHTTP status code
successbooleanIndicates whether the request succeeded
dataBikProductsProduct data

BikProduct Type​

NameTypeDescription
idstringProduct ID
namestringProduct name
urlstringStorefront URL
descriptionstringProduct description
imagestringProduct image URL
currencystringCurrency code
photosBikPhoto[]Array of product photos
tagsstringComma-separated product tags
catalogIdsstring[]IDs of catalogs this product belongs to
combinationsBikCombination[]Array of product variant combinations
metafieldsMetafield[]Metafields associated with the product
addToCartDisabledbooleanIf true, the Add to Cart button should be hidden for this product

BikPhoto Type​

NameTypeDescription
photoUrlstringPhoto URL

Metafield Type​

NameTypeDescription
idstringMetafield ID
namespacestringMetafield namespace
keystringMetafield key
valuestringMetafield value

BikCombination Type​

NameTypeDescription
idstringCombination ID
namestringCombination name
productIdstringParent product ID
pricenumberCombination price
discountedPricenumberDiscounted price
quantitynumberAvailable quantity
imagestringCombination image URL
productUrlstringCombination product URL
currencystringCurrency code
optionsobjectMap of variant option values, e.g. { "Size": "XL", "Color": "Red" }

Errors​

Error CodeMeaning
400Invalid payload -- Your request is invalid.
401Unauthorized -- User is not authenticated.
404Not Found -- The specified API could not be found.
500Internal Server Error -- We had a problem with our server. Try again later.

Error response example:

{
"status": 400,
"errors": [
{
"message": "'productIds' is required."
}
]
}