curl --request POST \
--url https://api.example.com/api/dashboard/collections/{collection_id}/products \
--header 'Content-Type: application/json' \
--data '
{
"product_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"merchant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"description": "<string>",
"handle": "<string>",
"type": "<string>",
"image_url": "<string>",
"sort_order": "<string>",
"published": true,
"published_at": "2023-11-07T05:31:56Z",
"products_count": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"products": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"merchant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"slug": "<string>",
"description": "<string>",
"vendor": "<string>",
"product_type": "<string>",
"tags": [
"<string>"
],
"price": "<string>",
"compare_at_price": "<string>",
"cost_per_item": "<string>",
"currency": "<string>",
"images": [
{}
],
"has_variants": true,
"options": [
{}
],
"variants": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sku": "<string>",
"barcode": "<string>",
"option1": "<string>",
"option2": "<string>",
"option3": "<string>",
"price": "<string>",
"compare_at_price": "<string>",
"cost_per_item": "<string>",
"inventory_quantity": 123,
"inventory_policy": "<string>",
"low_stock_threshold": 123,
"weight": "<string>",
"weight_unit": "<string>",
"requires_shipping": true,
"image_url": "<string>",
"available": true,
"is_low_stock": true,
"is_out_of_stock": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"track_inventory": true,
"total_inventory": 123,
"in_stock": true,
"status": "<string>",
"published_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}Add products to a collection.
curl --request POST \
--url https://api.example.com/api/dashboard/collections/{collection_id}/products \
--header 'Content-Type: application/json' \
--data '
{
"product_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"merchant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"description": "<string>",
"handle": "<string>",
"type": "<string>",
"image_url": "<string>",
"sort_order": "<string>",
"published": true,
"published_at": "2023-11-07T05:31:56Z",
"products_count": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"products": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"merchant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"slug": "<string>",
"description": "<string>",
"vendor": "<string>",
"product_type": "<string>",
"tags": [
"<string>"
],
"price": "<string>",
"compare_at_price": "<string>",
"cost_per_item": "<string>",
"currency": "<string>",
"images": [
{}
],
"has_variants": true,
"options": [
{}
],
"variants": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sku": "<string>",
"barcode": "<string>",
"option1": "<string>",
"option2": "<string>",
"option3": "<string>",
"price": "<string>",
"compare_at_price": "<string>",
"cost_per_item": "<string>",
"inventory_quantity": 123,
"inventory_policy": "<string>",
"low_stock_threshold": 123,
"weight": "<string>",
"weight_unit": "<string>",
"requires_shipping": true,
"image_url": "<string>",
"available": true,
"is_low_stock": true,
"is_out_of_stock": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"track_inventory": true,
"total_inventory": 123,
"in_stock": true,
"status": "<string>",
"published_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}Documentation Index
Fetch the complete documentation index at: https://docs.stella-commerce.com/llms.txt
Use this file to discover all available pages before exploring further.
Schema for adding/removing products.
Successful Response
Schema for collection with products.
Show child attributes