API resource
Store collections and discounts
Group products into collections and run discounts: codes buyers type, or automatic discounts applied at checkout, as a percentage, a fixed amount or free shipping. Discounts need the discounts permission (see Get a store). Pick the store with accountId.
List collections
/v1/commerce/collectionsWorks on: Shopify, WooCommerce
Query parameters
accountIdstringrequiredConnected store account id.
limitintegercursorstringquerystringPlatform collection search syntax (Shopify: title, handle, collection_type, ...).
curl "https://creatoros-production-5658.up.railway.app/v1/commerce/collections?accountId=acc_Sh4Vp9Kz2Ny7Tx3Lm1Rc6Wb5Js8Df0Ga4Ue7Ki2Oq3H" \
-H "Authorization: Bearer $CREATOROS_API_KEY"{
"collections": [
{
"id": "string",
"accountId": "acc_Sh4Vp9Kz2Ny7Tx3Lm1Rc6Wb5Js8Df0Ga4Ue7Ki2Oq3H",
"platform": "shopify",
"title": "string",
"handle": "string",
"descriptionHtml": "string",
"image": {
"id": "string",
"url": "string",
"altText": "string"
},
"sortOrder": "manual",
"productCount": 0,
"seo": {
"title": "string",
"description": "string"
},
"updatedAt": "2026-10-10T00:00:00.000Z",
"platformData": {}
}
],
"nextCursor": "string"
}Create a collection
/v1/commerce/collectionsWorks on: Shopify, WooCommerce
Body
accountIdstringrequiredtitlestringrequireddescriptionHtmlstringhandlestringsortOrderstringseoobjectimageobjectproductIdsstring[]curl -X POST "https://creatoros-production-5658.up.railway.app/v1/commerce/collections" \
-H "Authorization: Bearer $CREATOROS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"accountId": "acc_Sh4Vp9Kz2Ny7Tx3Lm1Rc6Wb5Js8Df0Ga4Ue7Ki2Oq3H",
"title": "string"
}'{
"collection": {
"id": "string",
"accountId": "acc_Sh4Vp9Kz2Ny7Tx3Lm1Rc6Wb5Js8Df0Ga4Ue7Ki2Oq3H",
"platform": "shopify",
"title": "string",
"handle": "string",
"descriptionHtml": "string",
"image": {
"id": "string",
"url": "string",
"altText": "string"
},
"sortOrder": "manual",
"productCount": 0,
"seo": {
"title": "string",
"description": "string"
},
"updatedAt": "2026-10-10T00:00:00.000Z",
"platformData": {}
}
}Delete a collection
/v1/commerce/collections/{collectionId}Works on: Shopify, WooCommerce
Path parameters
collectionIdstringrequiredPlatform-native collection id.
Query parameters
accountIdstringrequiredConnected store account id.
curl -X DELETE "https://creatoros-production-5658.up.railway.app/v1/commerce/collections/459876543210?accountId=acc_Sh4Vp9Kz2Ny7Tx3Lm1Rc6Wb5Js8Df0Ga4Ue7Ki2Oq3H" \
-H "Authorization: Bearer $CREATOROS_API_KEY"{
"deleted": true,
"collectionId": "459876543210"
}Get a collection
/v1/commerce/collections/{collectionId}Works on: Shopify, WooCommerce
Path parameters
collectionIdstringrequiredPlatform-native collection id.
Query parameters
accountIdstringrequiredConnected store account id.
curl "https://creatoros-production-5658.up.railway.app/v1/commerce/collections/459876543210?accountId=acc_Sh4Vp9Kz2Ny7Tx3Lm1Rc6Wb5Js8Df0Ga4Ue7Ki2Oq3H" \
-H "Authorization: Bearer $CREATOROS_API_KEY"{
"collection": {
"id": "string",
"accountId": "acc_Sh4Vp9Kz2Ny7Tx3Lm1Rc6Wb5Js8Df0Ga4Ue7Ki2Oq3H",
"platform": "shopify",
"title": "string",
"handle": "string",
"descriptionHtml": "string",
"image": {
"id": "string",
"url": "string",
"altText": "string"
},
"sortOrder": "manual",
"productCount": 0,
"seo": {
"title": "string",
"description": "string"
},
"updatedAt": "2026-10-10T00:00:00.000Z",
"platformData": {}
}
}Update a collection
/v1/commerce/collections/{collectionId}Works on: Shopify, WooCommerce
Path parameters
collectionIdstringrequiredPlatform-native collection id.
Body
accountIdstringrequiredtitlestringdescriptionHtmlstringhandlestringsortOrderstringseoobjectimageobjectcurl -X PATCH "https://creatoros-production-5658.up.railway.app/v1/commerce/collections/459876543210" \
-H "Authorization: Bearer $CREATOROS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"accountId": "acc_Sh4Vp9Kz2Ny7Tx3Lm1Rc6Wb5Js8Df0Ga4Ue7Ki2Oq3H"
}'{
"collection": {
"id": "string",
"accountId": "acc_Sh4Vp9Kz2Ny7Tx3Lm1Rc6Wb5Js8Df0Ga4Ue7Ki2Oq3H",
"platform": "shopify",
"title": "string",
"handle": "string",
"descriptionHtml": "string",
"image": {
"id": "string",
"url": "string",
"altText": "string"
},
"sortOrder": "manual",
"productCount": 0,
"seo": {
"title": "string",
"description": "string"
},
"updatedAt": "2026-10-10T00:00:00.000Z",
"platformData": {}
}
}Publish or unpublish a collection
/v1/commerce/collections/{collectionId}/channelsWorks on: Shopify, WooCommerce
Path parameters
collectionIdstringrequiredPlatform-native id.
Body
accountIdstringrequiredpublishstring[]Channel ids from GET /v1/commerce/channels.
unpublishstring[]curl -X POST "https://creatoros-production-5658.up.railway.app/v1/commerce/collections/459876543210/channels" \
-H "Authorization: Bearer $CREATOROS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"accountId": "acc_Sh4Vp9Kz2Ny7Tx3Lm1Rc6Wb5Js8Df0Ga4Ue7Ki2Oq3H"
}'{
"collectionId": "459876543210",
"published": [
"string"
],
"unpublished": [
"string"
]
}Delete collection metafields
/v1/commerce/collections/{collectionId}/metafieldsWorks on: Shopify, WooCommerce
Path parameters
collectionIdstringrequiredPlatform-native id.
Query parameters
accountIdstringrequiredConnected store account id.
keysstringrequiredComma-separated namespace.key pairs.
curl -X DELETE "https://creatoros-production-5658.up.railway.app/v1/commerce/collections/459876543210/metafields?accountId=acc_Sh4Vp9Kz2Ny7Tx3Lm1Rc6Wb5Js8Df0Ga4Ue7Ki2Oq3H&keys=%3Ckeys%3E" \
-H "Authorization: Bearer $CREATOROS_API_KEY"{
"deleted": 0
}List collection metafields
/v1/commerce/collections/{collectionId}/metafieldsWorks on: Shopify, WooCommerce
Path parameters
collectionIdstringrequiredPlatform-native id.
Query parameters
accountIdstringrequiredConnected store account id.
curl "https://creatoros-production-5658.up.railway.app/v1/commerce/collections/459876543210/metafields?accountId=acc_Sh4Vp9Kz2Ny7Tx3Lm1Rc6Wb5Js8Df0Ga4Ue7Ki2Oq3H" \
-H "Authorization: Bearer $CREATOROS_API_KEY"{
"metafields": [
{
"namespace": "string",
"key": "string",
"type": "string",
"value": "string"
}
]
}Set collection metafields
/v1/commerce/collections/{collectionId}/metafieldsWorks on: Shopify, WooCommerce
Path parameters
collectionIdstringrequiredPlatform-native id.
Body
accountIdstringrequiredmetafieldsobject[]requiredcurl -X PUT "https://creatoros-production-5658.up.railway.app/v1/commerce/collections/459876543210/metafields" \
-H "Authorization: Bearer $CREATOROS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"accountId": "acc_Sh4Vp9Kz2Ny7Tx3Lm1Rc6Wb5Js8Df0Ga4Ue7Ki2Oq3H",
"metafields": [
{
"namespace": "string",
"key": "string",
"type": "string",
"value": "string"
}
]
}'{
"metafields": [
{
"namespace": "string",
"key": "string",
"type": "string",
"value": "string"
}
]
}Add or remove products in a collection
/v1/commerce/collections/{collectionId}/productsWorks on: Shopify, WooCommerce
Path parameters
collectionIdstringrequiredPlatform-native collection id.
Body
accountIdstringrequiredaddstring[]removestring[]curl -X POST "https://creatoros-production-5658.up.railway.app/v1/commerce/collections/459876543210/products" \
-H "Authorization: Bearer $CREATOROS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"accountId": "acc_Sh4Vp9Kz2Ny7Tx3Lm1Rc6Wb5Js8Df0Ga4Ue7Ki2Oq3H"
}'{
"collection": {
"id": "string",
"accountId": "acc_Sh4Vp9Kz2Ny7Tx3Lm1Rc6Wb5Js8Df0Ga4Ue7Ki2Oq3H",
"platform": "shopify",
"title": "string",
"handle": "string",
"descriptionHtml": "string",
"image": {
"id": "string",
"url": "string",
"altText": "string"
},
"sortOrder": "manual",
"productCount": 0,
"seo": {
"title": "string",
"description": "string"
},
"updatedAt": "2026-10-10T00:00:00.000Z",
"platformData": {}
},
"pending": true
}Reorder products in a collection
/v1/commerce/collections/{collectionId}/reorderWorks on: Shopify, WooCommerce
Path parameters
collectionIdstringrequiredPlatform-native id.
Body
accountIdstringrequiredmovesobject[]requiredcurl -X POST "https://creatoros-production-5658.up.railway.app/v1/commerce/collections/459876543210/reorder" \
-H "Authorization: Bearer $CREATOROS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"accountId": "acc_Sh4Vp9Kz2Ny7Tx3Lm1Rc6Wb5Js8Df0Ga4Ue7Ki2Oq3H",
"moves": [
{
"productId": "8214569812345",
"position": 0
}
]
}'{
"pending": true
}List discounts
/v1/commerce/discountsWorks on: Shopify, WooCommerce
Query parameters
accountIdstringrequiredConnected store account id.
limitintegercursorstringquerystringPlatform search syntax, passed through.
curl "https://creatoros-production-5658.up.railway.app/v1/commerce/discounts?accountId=acc_Sh4Vp9Kz2Ny7Tx3Lm1Rc6Wb5Js8Df0Ga4Ue7Ki2Oq3H" \
-H "Authorization: Bearer $CREATOROS_API_KEY"{
"discounts": [
{
"id": "string",
"accountId": "acc_Sh4Vp9Kz2Ny7Tx3Lm1Rc6Wb5Js8Df0Ga4Ue7Ki2Oq3H",
"platform": "shopify",
"title": "string",
"method": "code",
"type": "percentage",
"codes": [
"string"
],
"codeCount": 0,
"value": {
"type": "percentage",
"percentage": 15
},
"appliesTo": {
"type": "all",
"productIds": [],
"variantIds": [],
"collectionIds": []
},
"minimum": {
"type": "subtotal",
"amount": {},
"quantity": 0
},
"usageLimit": 0,
"oncePerCustomer": true,
"usageCount": 0,
"startsAt": "2026-10-10T00:00:00.000Z",
"endsAt": "2026-10-10T00:00:00.000Z",
"status": "active",
"platformStatus": "string",
"summary": "string",
"platformData": {}
}
],
"nextCursor": "string"
}Create a discount
/v1/commerce/discountsWorks on: Shopify, WooCommerce
Body
accountIdstringrequiredtitlestringrequiredmethodstringrequiredtypestringrequiredcodestringRequired for method code.
percentagenumberFor type percentage, e.g. 15 for 15%.
amountstringFor type fixed_amount, a decimal in the store currency.
appliesOnEachItembooleanfixed_amount only: take the amount off each item instead of once per order.
minimumSubtotalstringMinimum order subtotal, a decimal in the store currency.
minimumQuantityintegerusageLimitintegerCode discounts only: total uses allowed.
oncePerCustomerbooleanCode discounts only.
startsAtstringDefaults to now.
endsAtstringproductIdsstring[]collectionIdsstring[]curl -X POST "https://creatoros-production-5658.up.railway.app/v1/commerce/discounts" \
-H "Authorization: Bearer $CREATOROS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"accountId": "acc_Sh4Vp9Kz2Ny7Tx3Lm1Rc6Wb5Js8Df0Ga4Ue7Ki2Oq3H",
"title": "string",
"method": "code",
"type": "percentage"
}'{
"discount": {
"id": "string",
"accountId": "acc_Sh4Vp9Kz2Ny7Tx3Lm1Rc6Wb5Js8Df0Ga4Ue7Ki2Oq3H",
"platform": "shopify",
"title": "string",
"method": "code",
"type": "percentage",
"codes": [
"string"
],
"codeCount": 0,
"value": {
"type": "percentage",
"percentage": 15
},
"appliesTo": {
"type": "all",
"productIds": [
"string"
],
"variantIds": [
"string"
],
"collectionIds": [
"string"
]
},
"minimum": {
"type": "subtotal",
"amount": {
"amount": "19.90",
"currency": "USD"
},
"quantity": 0
},
"usageLimit": 0,
"oncePerCustomer": true,
"usageCount": 0,
"startsAt": "2026-10-10T00:00:00.000Z",
"endsAt": "2026-10-10T00:00:00.000Z",
"status": "active",
"platformStatus": "string",
"summary": "string",
"platformData": {}
}
}Delete a discount
/v1/commerce/discounts/{discountId}Works on: Shopify, WooCommerce
Path parameters
discountIdstringrequiredPlatform-native id.
Query parameters
accountIdstringrequiredConnected store account id.
curl -X DELETE "https://creatoros-production-5658.up.railway.app/v1/commerce/discounts/1432109876543?accountId=acc_Sh4Vp9Kz2Ny7Tx3Lm1Rc6Wb5Js8Df0Ga4Ue7Ki2Oq3H" \
-H "Authorization: Bearer $CREATOROS_API_KEY"{
"deleted": true,
"discountId": "1432109876543"
}Get a discount
/v1/commerce/discounts/{discountId}Works on: Shopify, WooCommerce
Path parameters
discountIdstringrequiredPlatform-native id.
Query parameters
accountIdstringrequiredConnected store account id.
curl "https://creatoros-production-5658.up.railway.app/v1/commerce/discounts/1432109876543?accountId=acc_Sh4Vp9Kz2Ny7Tx3Lm1Rc6Wb5Js8Df0Ga4Ue7Ki2Oq3H" \
-H "Authorization: Bearer $CREATOROS_API_KEY"{
"discount": {
"id": "string",
"accountId": "acc_Sh4Vp9Kz2Ny7Tx3Lm1Rc6Wb5Js8Df0Ga4Ue7Ki2Oq3H",
"platform": "shopify",
"title": "string",
"method": "code",
"type": "percentage",
"codes": [
"string"
],
"codeCount": 0,
"value": {
"type": "percentage",
"percentage": 15
},
"appliesTo": {
"type": "all",
"productIds": [
"string"
],
"variantIds": [
"string"
],
"collectionIds": [
"string"
]
},
"minimum": {
"type": "subtotal",
"amount": {
"amount": "19.90",
"currency": "USD"
},
"quantity": 0
},
"usageLimit": 0,
"oncePerCustomer": true,
"usageCount": 0,
"startsAt": "2026-10-10T00:00:00.000Z",
"endsAt": "2026-10-10T00:00:00.000Z",
"status": "active",
"platformStatus": "string",
"summary": "string",
"platformData": {}
}
}Update a discount
/v1/commerce/discounts/{discountId}Works on: Shopify, WooCommerce
Path parameters
discountIdstringrequiredPlatform-native id.
Body
accountIdstringrequiredtitlestringcodestringRequired for method code.
percentagenumberFor type percentage, e.g. 15 for 15%.
amountstringFor type fixed_amount, a decimal in the store currency.
appliesOnEachItembooleanfixed_amount only: take the amount off each item instead of once per order.
minimumSubtotalstringMinimum order subtotal, a decimal in the store currency.
minimumQuantityintegerusageLimitintegerCode discounts only: total uses allowed.
oncePerCustomerbooleanCode discounts only.
startsAtstringDefaults to now.
endsAtstringcurl -X PATCH "https://creatoros-production-5658.up.railway.app/v1/commerce/discounts/1432109876543" \
-H "Authorization: Bearer $CREATOROS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"accountId": "acc_Sh4Vp9Kz2Ny7Tx3Lm1Rc6Wb5Js8Df0Ga4Ue7Ki2Oq3H"
}'{
"discount": {
"id": "string",
"accountId": "acc_Sh4Vp9Kz2Ny7Tx3Lm1Rc6Wb5Js8Df0Ga4Ue7Ki2Oq3H",
"platform": "shopify",
"title": "string",
"method": "code",
"type": "percentage",
"codes": [
"string"
],
"codeCount": 0,
"value": {
"type": "percentage",
"percentage": 15
},
"appliesTo": {
"type": "all",
"productIds": [
"string"
],
"variantIds": [
"string"
],
"collectionIds": [
"string"
]
},
"minimum": {
"type": "subtotal",
"amount": {
"amount": "19.90",
"currency": "USD"
},
"quantity": 0
},
"usageLimit": 0,
"oncePerCustomer": true,
"usageCount": 0,
"startsAt": "2026-10-10T00:00:00.000Z",
"endsAt": "2026-10-10T00:00:00.000Z",
"status": "active",
"platformStatus": "string",
"summary": "string",
"platformData": {}
}
}Add codes to a discount
/v1/commerce/discounts/{discountId}/codesWorks on: Shopify, WooCommerce
Path parameters
discountIdstringrequiredPlatform-native id.
Body
accountIdstringrequiredcodesstring[]requiredcurl -X POST "https://creatoros-production-5658.up.railway.app/v1/commerce/discounts/1432109876543/codes" \
-H "Authorization: Bearer $CREATOROS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"accountId": "acc_Sh4Vp9Kz2Ny7Tx3Lm1Rc6Wb5Js8Df0Ga4Ue7Ki2Oq3H",
"codes": [
"string"
]
}'{
"pending": true
}Activate or deactivate a discount
/v1/commerce/discounts/{discountId}/stateWorks on: Shopify, WooCommerce
Path parameters
discountIdstringrequiredPlatform-native id.
Body
accountIdstringrequiredactivebooleanrequiredcurl -X POST "https://creatoros-production-5658.up.railway.app/v1/commerce/discounts/1432109876543/state" \
-H "Authorization: Bearer $CREATOROS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"accountId": "acc_Sh4Vp9Kz2Ny7Tx3Lm1Rc6Wb5Js8Df0Ga4Ue7Ki2Oq3H",
"active": true
}'{
"discount": {
"id": "string",
"accountId": "acc_Sh4Vp9Kz2Ny7Tx3Lm1Rc6Wb5Js8Df0Ga4Ue7Ki2Oq3H",
"platform": "shopify",
"title": "string",
"method": "code",
"type": "percentage",
"codes": [
"string"
],
"codeCount": 0,
"value": {
"type": "percentage",
"percentage": 15
},
"appliesTo": {
"type": "all",
"productIds": [
"string"
],
"variantIds": [
"string"
],
"collectionIds": [
"string"
]
},
"minimum": {
"type": "subtotal",
"amount": {
"amount": "19.90",
"currency": "USD"
},
"quantity": 0
},
"usageLimit": 0,
"oncePerCustomer": true,
"usageCount": 0,
"startsAt": "2026-10-10T00:00:00.000Z",
"endsAt": "2026-10-10T00:00:00.000Z",
"status": "active",
"platformStatus": "string",
"summary": "string",
"platformData": {}
}
}