Skip to main content

Get

You can use the get products API to get the catalogs details.

Request parameters

NameTypeRequired/OptionalDescription
productIdsstring[]RequiredList of product ids

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
statusnumberResponse status
successbooleanIs successful response or not
dataBikProductsList of products

BikProduct Type

NameTypeDescription
idstringProduct ID
namestringName of the product
urlstringURL of the product on the storefront
descriptionstringProduct description
imagestringProduct image
currencystringCurrency of the country
photosBikPhoto[]List of photos
tagsstringComma-separated product tags
catalogIdsstring[]List of catalog ids this product belongs to
combinationsBikCombination[]List of product combinations
metafieldsMetafield[]Metafields associated with the product

BikPhoto Type

NameTypeDescription
photoUrlstringProduct photo

Metafield Type

NameTypeDescription
idstringMetafield id
namespacestringMetafield namespace
keystringMetafield key
valuestringMetafield value

BikCombination Type

NameTypeDescription
idstringCombination id
namestringCombination name
productIdstringProduct id
pricenumberCombination price
discountedPricenumberCombination discount price
quantitynumberCombination quantity available
imagestringCombination image
productUrlstringCombination product url
currencystringCurrency of the combination
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."
}
]
}