About Collection ​
Access scope
Multiple access scopes needed — refer to each endpoint for access scope requirements.
Product Collections are essential organizational units in Genstore's product management system, enabling merchants to group related products for better presentation and management. Genstore provides a series of RESTful interfaces supporting the creation, management, and query of product collections, helping merchants create better browsing and shopping experiences.
Core Features
- Basic Operations: Create product series, update series information, delete product series.
- Information Query: Get series details, list series, count series.
- Manage Products in Collections: Add products to series, remove products from series, list series products.
Use Cases
- Product Category Display: Merchandising teams can organize products into collections, configure display rules, and manage seasonal layouts through the API, creating engaging shopping experiences that drive category performance.
- Marketing Campaign Support: Marketing teams can quickly create and update themed collections, schedule promotional displays, and coordinate multi-channel product launches, maximizing campaign effectiveness and product visibility.
- Product Management Optimization: Product managers can efficiently maintain multiple collections, synchronize product information across categories, and update collection rules in batch, streamlining collection maintenance and reducing operational overhead.
Endpoints
POST
/api/202412/collections: Create collection
POST
/api/202412/collections/collect: Add product to collection
PUT
/api/202412/collections/{collectionId}: Update collection
DELETE
/api/202412/collections/{collectionId}: Delete collection
DELETE
/api/202412/collections/collect: Remove from collection
GET
/api/202412/collections/{collectionId}: Get collection
GET
/api/202412/collections: Get collection list
GET
/api/202412/collections/count: Get collection count
Product Collection Object ​
The product collection object.
Properties ​
{
"collection": {
"collectionType": "1",
"image": {
"src": "https://cdn.shopify.com/s/files/1/0600/8317/5513/files/wax-special_150x.png?v=1716260624"
},
"ruleSet": {
"appliedDisjunctively": "true",
"rules": [
{
"condition": "["test"]",
"column": "title",
"relation": "equals"
}
]
},
"bodyHtml": "<p>Test Description</p>",
"published": "true",
"title": "Collection Title",
"collectionId": "102984300756584",
"collects": "[102744899756584,102744899756583]",
"countGoodsNum": "3"
}
}
POST
Create collection ​
Create a product collection.
Access scope
Requires ANY of the following access scopes: write_products
Endpoint
POST
/api/202412/collections
Request Params
Response Data
curl -X POST \
https://{shop}.genmystore.com/api/202412/collections" \
-H "X-Genstore-Access-Token: {access_token}" \
-H "Content-Type: application/json" \
-d '{
"collection":{
"collectionType":"1",
"image":{
"src":"https://cdn.shopify.com/s/files/1/0600/8317/5513/files/wax-special_150x.png?v=1716260624"
},
"ruleSet":{
"appliedDisjunctively":"true",
"rules":[
{
"condition":"[\"test\"]",
"column":"title",
"relation":"equals"
}
]
},
"bodyHtml":"<p>Test Description</p>",
"published":"true",
"title":"Collection Title",
"collects":"[102744899756584,102744899756583]",
"countGoodsNum":"3"
}
}'
HTTP/1.1 200 OK
{
"collection": {
"collectionType": "1",
"image": {
"src": "https://cdn.shopify.com/s/files/1/0600/8317/5513/files/wax-special_150x.png?v=1716260624"
},
"ruleSet": {
"appliedDisjunctively": "true",
"rules": [
{
"condition": "[\"test\"]",
"column": "title",
"relation": "equals"
}
]
},
"bodyHtml": "<p>Test Description</p>",
"published": "true",
"title": "Collection Title",
"collectionId": "102984300756584",
"collects": "[102744899756584,102744899756583]",
"countGoodsNum": "3"
}
}
POST
Add product to collection ​
Add a product to a specific product collection.
Access scope
Requires ANY of the following access scopes: write_products
Endpoint
POST
/api/202412/collections/collect
Request Params
Response Data
curl -X POST \
https://{shop}.genmystore.com/api/202412/collections/collect" \
-H "X-Genstore-Access-Token: {access_token}" \
-H "Content-Type: application/json" \
-d '{
"collect":{
"productIds":"[102745723756584]",
"collectionId":"11017685756584"
}
}'
HTTP/1.1 200 OK
{
"collections": {
"result": "true"
}
}
PUT
Update collection ​
Modify the product collection.
Access scope
Requires ANY of the following access scopes: write_products
Endpoint
PUT
/api/202412/collections/{collectionId}
Request Params
Response Data
curl -X PUT \
https://{shop}.genmystore.com/api/202412/collections/{collectionId}" \
-H "X-Genstore-Access-Token: {access_token}" \
-H "Content-Type: application/json" \
-d '{
"collection":{
"collectionType":"1",
"image":{
"src":"https://cdn.shopify.com/s/files/1/0600/8317/5513/files/wax-special_150x.png?v=1716260624"
},
"ruleSet":{
"appliedDisjunctively":"true",
"rules":[
{
"condition":"[\"test\"]",
"column":"title",
"relation":"equals"
}
]
},
"bodyHtml":"<p>Test Description</p>",
"published":"true",
"title":"Collection Title",
"collectionId":"102984300756584",
"collects":"[102744899756584,102744899756583]",
"countGoodsNum":"3"
}
}'
HTTP/1.1 200 OK
{
"collection": {
"collectionType": "1",
"image": {
"src": "https://cdn.shopify.com/s/files/1/0600/8317/5513/files/wax-special_150x.png?v=1716260624"
},
"ruleSet": {
"appliedDisjunctively": "true",
"rules": [
{
"condition": "[\"test\"]",
"column": "title",
"relation": "equals"
}
]
},
"bodyHtml": "<p>Test Description</p>",
"published": "true",
"title": "Collection Title",
"collectionId": "102984300756584",
"collects": "[102744899756584,102744899756583]",
"countGoodsNum": "3"
}
}
DELETE
Delete collection ​
Delete a product collection.
Access scope
Requires ANY of the following access scopes: write_products
Endpoint
DELETE
/api/202412/collections/{collectionId}
Request Params
Response Data
curl -X DELETE \
https://{shop}.genmystore.com/api/202412/collections/{collectionId}" \
-H "X-Genstore-Access-Token: {access_token}" \
HTTP/1.1 200 OK
{}
DELETE
Remove from collection ​
Delete specific products from a product collection.
Access scope
Requires ANY of the following access scopes: write_products
Endpoint
DELETE
/api/202412/collections/collect
Request Params
Response Data
curl -X DELETE \
https://{shop}.genmystore.com/api/202412/collections/collect" \
-H "X-Genstore-Access-Token: {access_token}" \
HTTP/1.1 200 OK
{
"collections": {
"result": "true"
}
}
GET
Get collection ​
Retrieve a single product collection.
Access scope
Requires ANY of the following access scopes: write_products
read_products
Endpoint
GET
/api/202412/collections/{collectionId}
Request Params
Response Data
curl -X GET \
https://{shop}.genmystore.com/api/202412/collections/{collectionId}" \
-H "X-Genstore-Access-Token: {access_token}" \
HTTP/1.1 200 OK
{
"collection": {
"collectionType": "1",
"image": {
"src": "https://cdn.shopify.com/s/files/1/0600/8317/5513/files/wax-special_150x.png?v=1716260624"
},
"ruleSet": {
"appliedDisjunctively": "true",
"rules": [
{
"condition": "[\"test\"]",
"column": "title",
"relation": "equals"
}
]
},
"bodyHtml": "<p>Test Description</p>",
"published": "true",
"title": "Collection Title",
"collectionId": "102984300756584",
"collects": "[102744899756584,102744899756583]",
"countGoodsNum": "3"
}
}
GET
Get collection list ​
Retrieve a list of product collections.
Access scope
Requires ANY of the following access scopes: write_products
read_products
Endpoint
GET
/api/202412/collections
Request Params
* created - Sort by creation time in ascending order;
* created-desc - Sort by creation time in descending order;
* updated - Sort by update time in ascending order;
* updated-desc - Sort by update time in descending order.
Response Data
curl -X GET \
https://{shop}.genmystore.com/api/202412/collections" \
-H "X-Genstore-Access-Token: {access_token}" \
HTTP/1.1 200 OK
{
"collections": [
{
"collectionType": "1",
"image": {
"src": "https://cdn.shopify.com/s/files/1/0600/8317/5513/files/wax-special_150x.png?v=1716260624"
},
"ruleSet": {
"appliedDisjunctively": "true",
"rules": [
{
"condition": "[\"test\"]",
"column": "title",
"relation": "equals"
}
]
},
"bodyHtml": "<p>Test Description</p>",
"published": "true",
"title": "Collection Title",
"collectionId": "102984300756584",
"collects": "[102744899756584,102744899756583]",
"countGoodsNum": "3"
}
]
}
GET
Get collection count ​
Retrieve a count of product collections.
Access scope
Requires ANY of the following access scopes: write_products
read_products
Endpoint
GET
/api/202412/collections/count
Request Params
Response Data
curl -X GET \
https://{shop}.genmystore.com/api/202412/collections/count" \
-H "X-Genstore-Access-Token: {access_token}" \
HTTP/1.1 200 OK
{
"count": "3"
}
About Collection
Access scope
Multiple access scopes needed — refer to each endpoint for access scope requirements.
Product Collections are essential organizational units in Genstore's product management system, enabling merchants to group related products for better presentation and management. Genstore provides a series of RESTful interfaces supporting the creation, management, and query of product collections, helping merchants create better browsing and shopping experiences.
Core Features
- Basic Operations: Create product series, update series information, delete product series.
- Information Query: Get series details, list series, count series.
- Manage Products in Collections: Add products to series, remove products from series, list series products.
Use Cases
- Product Category Display: Merchandising teams can organize products into collections, configure display rules, and manage seasonal layouts through the API, creating engaging shopping experiences that drive category performance.
- Marketing Campaign Support: Marketing teams can quickly create and update themed collections, schedule promotional displays, and coordinate multi-channel product launches, maximizing campaign effectiveness and product visibility.
- Product Management Optimization: Product managers can efficiently maintain multiple collections, synchronize product information across categories, and update collection rules in batch, streamlining collection maintenance and reducing operational overhead.
Product Collection Object
The product collection object.
Properties
POST
Create collection
Create a product collection.
Access scope
Requires ANY of the following access scopes: write_products
Endpoint
POST
/api/202412/collections
POST
Add product to collection
Add a product to a specific product collection.
Access scope
Requires ANY of the following access scopes: write_products
Endpoint
POST
/api/202412/collections/collect
PUT
Update collection
Modify the product collection.
Access scope
Requires ANY of the following access scopes: write_products
Endpoint
PUT
/api/202412/collections/{collectionId}
DELETE
Delete collection
Delete a product collection.
Access scope
Requires ANY of the following access scopes: write_products
Endpoint
DELETE
/api/202412/collections/{collectionId}
DELETE
Remove from collection
Delete specific products from a product collection.
Access scope
Requires ANY of the following access scopes: write_products
Endpoint
DELETE
/api/202412/collections/collect
GET
Get collection
Retrieve a single product collection.
Access scope
Requires ANY of the following access scopes: write_products
read_products
Endpoint
GET
/api/202412/collections/{collectionId}
GET
Get collection list
Retrieve a list of product collections.
Access scope
Requires ANY of the following access scopes: write_products
read_products
Endpoint
GET
/api/202412/collections
GET
Get collection count
Retrieve a count of product collections.
Access scope
Requires ANY of the following access scopes: write_products
read_products
Endpoint
GET
/api/202412/collections/count