Skip to main content

List

You can use the list catalogs API to get all the catalogs.

Request parameters

NameTypeRequired/OptionalDescription
afterCatalogIdstringOptionalCatalog ID used to fetch catalogs after this in the database

Request Information

CategoryValue
Http requestPOST
URLhttps://bikapi.bikayi.app/integrations/bikPlatformFunctions-catalogs/list

Sample request

curl --location 'https://bikapi.bikayi.app/integrations/bikPlatformFunctions-catalogs/list' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic AUTH_TOKEN' \
--data '{
"afterCatalogId": "453048500523"
}'

JSON response example:

{
"status": 200,
"success": true,
"data": {
"catalogs": [
{
"image": "https://cdn.shopify.com/s/files/1/0672/6267/7292/collections/Football_Pallo_valmiina-cropped.jpg?v=1713341921",
"isSmartCollection": true,
"name": "Bottles",
"handle": "bottles",
"id": "473936298284",
"isPrivate": true,
"isHidden": true,
"description": "This is a smart collection with multiple products"
}
]
}
}

Response parameters

NameTypeDescription
statusnumberResponse status
successbooleanIs successful response or not
dataBikCatalogsList of catalogs

BikCatalog Type

NameTypeDescription
idstringCatalog ID
namestringName of the catalog
descriptionstringCatalog description
imagestringCatalog image
handlestringCatalog handle
isSmartCollectionbooleanIs the catalog is a smart collection or not
isPrivatebooleanIs the catalog is private
isHiddenbooleanIs the catalog is hidden

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.