Skip to main content
POST
/
api
/
v1
/
hub
/
shop
/
{shopId}
/
collections
/
{collectionId}
/
products
Add Products to Collection
curl --request POST \
  --url https://api.sabivendor.com/api/v1/hub/shop/{shopId}/collections/{collectionId}/products \
  --header 'Content-Type: application/json' \
  --header 'X-Shop-API-Key: <x-shop-api-key>' \
  --data '
{
  "productIds": [
    {}
  ]
}
'
{
  "status": "success",
  "message": "Products added to collection successfully"
}
Maps products to a collection to display them under collection catalog views.

Authorizations

X-Shop-API-Key
string
required
Your Secret API Key (sk_live_... or sk_test_...) generated from the Developer dashboard. Must be kept secret.

Path Parameters

shopId
string
required
The unique UUID of the shop.
collectionId
number
required
The unique ID of the collection.

Request Body (JSON)

productIds
array
required
List of product integer IDs to map. Must contain at least 1 product ID.
{
  "status": "success",
  "message": "Products added to collection successfully"
}