Get Theme List
Get all the themes of your organization.
End Point
GET
https://api.cartup.ai/v1/theme
Query Parameters
Name | Type | Description |
---|---|---|
request* | String | Request Object (Refer below) |
Headers
Name | Type | Description |
---|---|---|
Accept* | String | application/json |
Content_type* | String | application/json |
X-Cartup-Access-Token* | String | $CARTUP_API_KEY |
X-Cartup-orgId* | String | $CARTUP_ORD_ID |
{
"errMsg": null,
"widgetThemes": [
{
"id": "7dd46eda-0d9f-4b9c-bafc-a3e154be8092",
"orgId": "8dbc90c4-ad66-48c4-9711-ce3065cfd189",
"orgName": "freshcouture",
"htmlTemplate": "<div style=\"display:block;position: relative;\">\n\t<div class=\"widgetDisplayName\"><h2 class=\"recent__title theme\">{{widget_displayName}}</h2></div>\n\t\t<div class=\"product-grid\" id=\"test-widget-wrapper\">\n\t\t\t<div class=\"product-item one-quarter small--one-half\">\n\t\t\t\t<a class=\"product-link\" href=\"{{product_currentPageUrl}}\">\n\t\t\t\t\t<div class=\"product-item__image\">\n\t\t\t\t\t\t<div class=\"product-item__bg\" style=\"background-image:url({{product_imageUrl}});\"></div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"product-information\">\n\t\t\t\t\t\t<span class=\"title\"><h5>{{product_name}}</h5></span>\n\t\t\t\t\t</div>\n\t\t\t\t</a>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>",
"name": null,
"type": "Custom",
"displayType": "carousel",
"payload": null,
"description": null,
"themeId": "cartup-theme",
"divisionId": null,
"jsTemplate": null,
"cssTemplate": null
},
{
"id": "a156fd99-6850-49be-ad16-1f24f93ba005",
"orgId": "8dbc90c4-ad66-48c4-9711-ce3065cfd189",
"orgName": "freshcouture",
"htmlTemplate": "<div style=\"display:block;position: relative;\">\n\t<div class=\"widgetDisplayName\"><h2 class=\"recent__title theme\">{{widget_displayName}}</h2></div>\n\t\t<div class=\"product-grid\" id=\"test-widget-wrapper\">\n\t\t\t\t<div isArray class=\"product-item one-quarter small--one-half\" style=\"min-height:100px\">\n\t\t\t\t\t<a class=\"product-link-box\" href=\"{{product_currentPageUrl}}\" style=\"display:block;color: #2b2b2b;\">\n\t\t\t\t\t\t<div class=\"product-item__image\">\n\t\t\t\t\t\t\t<div class=\"product-item__bg\" style=\"background-image:url({{product_imageUrl}});\"></div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"product-information\">\n\t\t\t\t\t\t\t<span class=\"title\"><h3 class=\"title\">{{product_name}}</h5></span>\n <span class=\"price sale\">\n <span class=\"old-price\"><span class=\"money money1\">{{product_discountedPrice}}</span></span>\n <span class=\"money money2\">{{product_price}}</span>\n </span>\n <span class=\"money money3\">{{nodiscount_price}}</span>\n \n\t\t\t\t\t\t</div>\n\t\t\t\t\t</a>\n <div class=\"variantDiv\">{{variant_name}}</div>\n <!--<form method=\"post\" action=\"/cart/add\" accept-charset=\"UTF-8\" class=\"product-form\" enctype=\"multipart/form-data\" data-swatches=\"true\">-->\n <input type=\"hidden\" name=\"form_type\" value=\"product\" />\n <input type=\"hidden\" name=\"utf8\" value=\"✓\" />\n <input type=\"hidden\" class=\"proId\" name=\"id\" value=\"\" />\n <div class=\"secondary-addto-links actions-secondary\" data-role=\"add-to-links\">\n <button onclick=\"addToCartAction(this);\" name=\"add1\" class=\"action btn add-js product__submit__add addToCartBtn\" style=\"margin:0 auto 20px;display: block;width: 42%;background: #fff;color: #333;border: 1px solid #333;height: 37px;\">\n <span class=\"addToCartBtn\">Add to Cart</span>\n </button> \n </div>\n <!-- </form>-->\n\t\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>",
"name": null,
"type": "Custom",
"displayType": "carousel",
"payload": null,
"description": null,
"themeId": "variant-test-theme",
"divisionId": null,
"jsTemplate": null,
"cssTemplate": ".variantDiv{padding: 5px 20px;\n display: block;\n z-index: 999;\n }\n.variantdropdown{\n height: 34px;\n width: 100%;\n padding: 5px;\n margin:5px 0;\n font-size: 1rem;\n line-height: 1.5;\n color: #495057;\n font-size:13px;\n background-color: #fff;\n background-clip: padding-box;\n border: 1px solid #ced4da;\n border-radius: .25rem;\n transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;\n}\n.variantdropdown:focus{outline:none;box-shadow:none}\n.soldOutVariantPro{border-color: #999 !important;\n background-color: #e6e6e6 !important;\n color: #999 !important;\n cursor: not-allowed;}"
},
{
"id": "f74d2273-bdfb-4798-9436-da2f6591af43",
"orgId": "8dbc90c4-ad66-48c4-9711-ce3065cfd189",
"orgName": "freshcouture",
"htmlTemplate": "<div class=\"bundle-wrapper\" style=\"display:block;position: relative;border-bottom:1px solid #f3f3f3\">\n <div class=\"bundle-div\" style=\"display:block;width:50%\">\n\t<div class=\"widgetDisplayName\"><h2 class=\"recent__title theme\">{{widget_displayName}}</h2></div>\n\t\t<div class=\"product-grid bundle-product-grid\" id=\"test-widget-wrapper\">\n\t\t\t\t<div isArray class=\"product-item small--one-half medium--one-half large-up--one-quarter\" style=\"min-height:100px;padding:5px;border:0\">\n\t\t\t\t\t<a class=\"product-link-box\" href=\"{{product_currentPageUrl}}\" style=\"display:block;color: #2b2b2b;\">\n\t\t\t\t\t\t<div class=\"product-item__image\">\n\t\t\t\t\t\t\t<div class=\"product-item__bg\" style=\"background-image:url({{product_imageUrl}});\"></div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"product-information\" style=\"padding-bottom:15px\">\n\t\t\t\t\t\t\t<span class=\"title\"><h3 class=\"title\">{{product_name}}</h5></span>\n <span class=\"price sale\">\n <span class=\"old-price\"><span class=\"money money1\">{{product_discountedPrice}}</span></span>\n <span class=\"money money2\">{{product_price}}</span>\n </span>\n <span class=\"price\">\n <span class=\"money money3\">{{nodiscount_price}}</span>\n </span>\n \n\t\t\t\t\t\t</div>\n\t\t\t\t\t</a>\n <div class=\"variantDiv\">{{variant_name}}</div>\n <input type=\"hidden\" class=\"proId\" name=\"id\" value=\"0\" />\n <input type=\"hidden\" class=\"stockval\" name=\"stock\"/>\n\t\t\t\t</div>\n\t\t</div>\n \t\t\t<div class=\"qty-cartBtn-wrapper\">\n <div class=\"quantityDiv\" style=\"width: 80px;display: inline-block;\">\n <span style=\"display:inline-block;width: 28px;margin-right:5px;\">Qty:</span><span style=\"display:inline-block;width: 45px;height:37px;\"><input type=\"number\" class=\"js-qty__num quantity__input\" value=\"1\" min=\"1\" aria-label=\"quantity\" pattern=\"[0-9]*\" name=\"quantity\" style=\"font-size:12px;height:37px;border: 1px solid #ddd;padding: 5px;\"></span>\n </div>\n \t\t<input type=\"hidden\" name=\"form_type\" value=\"product\" />\n <input type=\"hidden\" name=\"utf8\" value=\"✓\" />\n \n <div class=\"secondary-addto-links actions-secondary\" data-role=\"add-to-links\" style=\"display:inline-block;width:100px;\">\n <button onclick=\"addToCartActionCallForBundle(this);\" name=\"add1\" class=\"action btn add-js product__submit__add addToCartBtn1\" style=\"display: block;width:100px;background: #fff;color: #333;border: 1px solid #ddd;height: 37px;margin:0;\">\n <span class=\"addToCartBtn1 btnText\" style=\"font-size:12px;\">Add to Cart</span>\n </button> \n </div>\n <div class=\"quantityDiv\" style=\"width: 80px;display: inline-block;\">\n \t<span style=\"display:inline-block;width: 28px;margin-right:5px;\">Qty:</span><span style=\"display:inline-block;width: 45px;height:37px;\"><input type=\"number\" class=\"js-qty__num quantity__input\" value=\"1\" min=\"1\" aria-label=\"quantity\" pattern=\"[0-9]*\" name=\"quantity\" style=\"font-size:12px;height:37px;border: 1px solid #ddd;padding: 5px;\"></span>\n </div>\n </div>\n\t</div>\n</div>",
"name": null,
"type": "Custom",
"displayType": "bundle",
"payload": null,
"description": null,
"themeId": "cartup_bundle_theme",
"divisionId": null,
"jsTemplate": null,
"cssTemplate": ".bundle-product-grid{\n width:100%\n}\n.bundle-product-grid .product-item{\n width: 50%;\n}\n.variantDiv{\n padding: 0 5px;\n display: block;\n z-index: 999;\n width: 100%;\n max-width:190px;\n margin: 0 auto;\n }\n.variantdropdown{\n height: 34px;\n width: 100%;\n padding: 5px;\n margin:5px 0;\n font-size: 1rem;\n line-height: 1.5;\n color: #495057;\n font-size:13px;\n background-color: #fff;\n background-clip: padding-box;\n border: 1px solid #ced4da;\n transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;\n}\n.variantdropdown:focus{outline:none;box-shadow:none}\n.soldOutVariantPro{border-color: #999 !important;\n background-color: #e6e6e6 !important;\n color: #999 !important;\n cursor: not-allowed;}\n.bundle-div .qty-cartBtn-wrapper{max-width:277px;width:100%;padding:5px 5px 30px;margin:0 auto;}\n.qty-cartBtn-wrapper .secondary-addto-links:hover,.qty-cartBtn-wrapper:hover .addToCartBtn1,.qty-cartBtn-wrapper .addToCartBtn1:hover{background-color:#333 !important;color:#fff !important;transition:all .15s ease-in-out}\n.qty-cartBtn-wrapper:hover .addToCartBtn1.soldOutVariantPro,.qty-cartBtn-wrapper .addToCartBtn1.soldOutVariantPro:hover,.qty-cartBtn-wrapper .soldOutVariantPro .btnText{background-color:#e6e6e6 !important;color:#999 !important;}\n@media (max-width:991px) {\n .bundle-div{width:100% !important}\n}\n@media (max-width:440px) {\n .bundle-div .product-information{min-height:75px}\n}"
},
{
"id": "0c92695e-54e0-4fdd-b7d3-d490939eccb3",
"orgId": "8dbc90c4-ad66-48c4-9711-ce3065cfd189",
"orgName": "freshcouture",
"htmlTemplate": "<div style=\"display:block;position: relative;\">\n\t<div class=\"widgetDisplayName\"><h2 class=\"recent__title theme\">{{widget_displayName}}</h2></div>\n\t\t<div class=\"product-grid\" id=\"test-widget-wrapper\" style=\"margin: 20px;border: none;\">\n\t\t\t\t<div isArray class=\"product-item one-quarter small--one-half\" style=\"min-height: 100px;padding: 15px;border: 1px solid #ddd;margin: 10px;\">\n\t\t\t\t\t<a class=\"product-link-box\" href=\"{{product_currentPageUrl}}\" style=\"display:block;color: #2b2b2b;\">\n\t\t\t\t\t\t<div class=\"product-item__image\">\n\t\t\t\t\t\t\t<div class=\"product-item__bg\" style=\"background-image:url({{product_imageUrl}});\"></div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</a>\n <div class=\"product-link-box product-information\" style=\"padding-bottom:8px\">\n <input type=\"hidden\" name=\"form_type\" value=\"product\" />\n <input type=\"hidden\" name=\"utf8\" value=\"✓\" />\n <input type=\"hidden\" class=\"proId\" name=\"id\" value=\"\" />\n <div class=\"secondary-addto-links actions-secondary\" data-role=\"add-to-links\">\n <button onclick=\"addToCartAction(this);\" name=\"add1\" class=\"action btn add-js product__submit__add addToCartBtn\" style=\"margin:0 auto 20px;display: block;width: 135px;background: #fff;color: #333;border: 1px solid #333;height: 37px;\">\n <span class=\"addToCartBtn\">Add to Cart</span>\n </button> \n </div>\n\t\t\t\t\t\t\t<span class=\"title\"><h3 class=\"title\">{{product_name}}</h5></span>\n <span class=\"price sale\">\n <span class=\"old-price\"><span class=\"money money1\">{{product_discountedPrice}}</span></span>\n <span class=\"money money2\">{{product_price}}</span>\n </span>\n <span class=\"price\">\n <span class=\"money money3\">{{nodiscount_price}}</span>\n </span>\n\t\t\t\t </div>\n <div class=\"variantDiv\">{{variant_name}}</div>\n <div class=\"quantityDiv\" style=\"width: 200px;margin: 0 auto;\">\n <span style=\"display:inline-block;width: 30px;\">Qty:</span><span style=\"display:inline-block;width: 135px;\"><input type=\"number\" class=\"js-qty__num quantity__input\" value=\"1\" min=\"1\" aria-label=\"quantity\" pattern=\"[0-9]*\" name=\"quantity\" style=\"border: 1px solid #ddd;\"></span>\n </div>\n <!--<form method=\"post\" action=\"/cart/add\" accept-charset=\"UTF-8\" class=\"product-form\" enctype=\"multipart/form-data\" data-swatches=\"true\">-->\n \n <!-- </form>-->\n\t\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>",
"name": null,
"type": "Custom",
"displayType": "bundle",
"payload": null,
"description": null,
"themeId": "bundle-template",
"divisionId": null,
"jsTemplate": null,
"cssTemplate": ".variantDiv{padding: 5px 20px;\n display: block;\n z-index: 999;\n }\n.variantdropdown{\n height: 34px;\n width: 100%;\n padding: 5px;\n margin:5px 0;\n font-size: 1rem;\n line-height: 1.5;\n color: #495057;\n font-size:13px;\n background-color: #fff;\n background-clip: padding-box;\n border: 1px solid #ced4da;\n border-radius: .25rem;\n transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;\n}\n.variantdropdown:focus{outline:none;box-shadow:none}\n.soldOutVariantPro{border-color: #999 !important;\n background-color: #e6e6e6 !important;\n color: #999 !important;\n cursor: not-allowed;}"
},
{
"id": "bceba7ca-03f2-45f6-b54e-3a7691a64f7e",
"orgId": "8dbc90c4-ad66-48c4-9711-ce3065cfd189",
"orgName": "freshcouture",
"htmlTemplate": "<div style=\"display:block;position: relative;\">\n\t<div class=\"widgetDisplayName\"><h2 class=\"recent__title theme\">{{widget_displayName}}</h2></div>\n\t\t<div class=\"product-grid\" id=\"test-widget-wrapper\">\n\t\t\t\t<div isArray class=\"product-item one-quarter small--one-half\">\n\t\t\t\t\t<a class=\"product-link\" href=\"{{product_currentPageUrl}}\">\n\t\t\t\t\t\t<div class=\"product-item__image\">\n\t\t\t\t\t\t\t<div class=\"product-item__bg\" style=\"background-image:url({{product_imageUrl}});\"></div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"product-information\">\n\t\t\t\t\t\t\t<span class=\"title\"><h3 class=\"title\">{{product_name}}</h5></span>\n <span class=\"price sale\">\n <span class=\"old-price\"><span class=\"money\">{{product_discountedPrice}}</span></span>\n <span class=\"money\">{{product_price}}</span>\n </span>\n <span class=\"price\">\n \t<span class=\"money\">{{nodiscount_price}}</span>\n </span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</a>\n\t\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>",
"name": null,
"type": "Custom",
"displayType": "carousel",
"payload": null,
"description": null,
"themeId": "fcouture_default_theme1",
"divisionId": null,
"jsTemplate": null,
"cssTemplate": null
},
{
"id": "46de27b7-2383-4baf-b639-52d0acda359c",
"orgId": "8dbc90c4-ad66-48c4-9711-ce3065cfd189",
"orgName": "freshcouture",
"htmlTemplate": "<div class=\"mb-responsive-div\" style=\"display:block;position: relative;\">\n\t<div class=\"widgetDisplayName\"><h2 class=\"recent__title theme\">{{widget_displayName}}</h2></div>\n\t\t<div class=\"product-grid\" id=\"test-widget-wrapper\">\n\t\t\t\t<div isArray class=\"product-item small--one-half medium--one-half large-up--one-quarter\" style=\"min-height:100px\">\n\t\t\t\t\t<a class=\"product-link-box\" href=\"{{product_currentPageUrl}}\" style=\"display:block;color: #2b2b2b;\">\n\t\t\t\t\t\t<div class=\"product-item__image\">\n\t\t\t\t\t\t\t<div class=\"product-item__bg\" style=\"background-image:url({{product_imageUrl}});\"></div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"product-information\" style=\"padding-bottom:15px\">\n\t\t\t\t\t\t\t<span class=\"title\"><h3 class=\"title\">{{product_name}}</h5></span>\n <span class=\"price sale\">\n <span class=\"old-price\"><span class=\"money money1\">{{product_discountedPrice}}</span></span>\n <span class=\"money money2\">{{product_price}}</span>\n </span>\n <span class=\"price\">\n <span class=\"money money3\">{{nodiscount_price}}</span>\n </span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</a>\n <div class=\"variantDiv\">{{variant_name}}</div>\n <div class=\"qty-cartBtn-wrapper\">\n <div class=\"quantityDiv\" style=\"width: 80px;display: inline-block;\">\n <span style=\"display:inline-block;width: 28px;margin-right:5px;\">Qty:</span><span style=\"display:inline-block;width: 45px;height:37px;\"><input type=\"number\" class=\"js-qty__num quantity__input\" value=\"1\" min=\"1\" aria-label=\"quantity\" pattern=\"[0-9]*\" name=\"quantity\" style=\"font-size:12px;height:37px;border: 1px solid #ddd;padding: 5px;\"></span>\n </div>\n <!--<form method=\"post\" action=\"/cart/add\" accept-charset=\"UTF-8\" class=\"product-form\" enctype=\"multipart/form-data\" data-swatches=\"true\">-->\n <input type=\"hidden\" name=\"form_type\" value=\"product\" />\n <input type=\"hidden\" name=\"utf8\" value=\"✓\" />\n <input type=\"hidden\" class=\"proId\" name=\"id\" value=\"\" />\n <div class=\"secondary-addto-links actions-secondary\" data-role=\"add-to-links\" style=\"display:inline-block;width:100px;\">\n <button onclick=\"addToCartAction(this);\" name=\"add1\" class=\"action btn add-js product__submit__add addToCartBtn1\" style=\"display: block;width:100%;background: #fff;color: #333;border: 1px solid #ddd;height: 37px;margin:0;\">\n <span class=\"addToCartBtn1 btnText\" style=\"font-size:12px;\">Add to Cart</span>\n </button> \n </div>\n </div>\n\t\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>",
"name": null,
"type": "Custom",
"displayType": "carousel",
"payload": null,
"description": null,
"themeId": "cartup_mb_responsive_theme",
"divisionId": null,
"jsTemplate": null,
"cssTemplate": ".variantDiv{\n padding: 0 5px;\n display: block;\n z-index: 999;\n width: 100%;\n max-width:190px;\n margin: 0 auto;\n }\n.variantdropdown{\n height: 34px;\n width: 100%;\n padding: 5px;\n margin:5px 0;\n font-size: 1rem;\n line-height: 1.5;\n color: #495057;\n font-size:13px;\n background-color: #fff;\n background-clip: padding-box;\n border: 1px solid #ced4da;\n transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;\n}\n.variantdropdown:focus{outline:none;box-shadow:none}\n.soldOutVariantPro{border-color: #999 !important;\n background-color: #e6e6e6 !important;\n color: #999 !important;\n cursor: not-allowed;}\n.qty-cartBtn-wrapper{\nwidth:100%;margin:0 auto;padding:5px 5px 30px;max-width: 198px;\n}\n.qty-cartBtn-wrapper .secondary-addto-links:hover,.qty-cartBtn-wrapper:hover .addToCartBtn1,.qty-cartBtn-wrapper .addToCartBtn1:hover{background-color:#333 !important;color:#fff !important;transition:all .15s ease-in-out}\n.qty-cartBtn-wrapper:hover .addToCartBtn1.soldOutVariantPro,.qty-cartBtn-wrapper .addToCartBtn1.soldOutVariantPro:hover,.qty-cartBtn-wrapper .soldOutVariantPro .btnText{background-color:#e6e6e6 !important;color:#999 !important;}\n@media (max-width:440px) {\n .mb-responsive-div .product-information{min-height:75px}\n .mb-responsive-div .secondary-addto-links{width: 75% !important;\n margin: 0 auto;\n text-align: center;\n display: block !important;}\n .mb-responsive-div .quantityDiv{wisth:100%;text-align:center}\n .mb-responsive-div .qty-cartBtn-wrapper{text-align:center}\n .mb-responsive-div .quantity__input{font-size:11px !important;margin:0}\n .mb-responsive-div .addToCartBtn1{padding:0;margin:8px auto 0 !important}\n \n}"
},
{
"id": "d9d74dce-56af-40a8-946f-bd4b2dff62e8",
"orgId": "8dbc90c4-ad66-48c4-9711-ce3065cfd189",
"orgName": "freshcouture",
"htmlTemplate": "<div style=\"display:block;position: relative;\">\n\t<div class=\"widgetDisplayName\"><h2 class=\"recent__title theme\">{{widget_displayName}}</h2></div>\n\t\t<div class=\"product-grid\" id=\"test-widget-wrapper\">\n\t\t\t<div class=\"product-item one-quarter small--one-half\">\n\t\t\t\t<a class=\"product-link\" href=\"{{product_currentPageUrl}}\">\n\t\t\t\t\t<div class=\"product-item__image\">\n\t\t\t\t\t\t<div class=\"product-item__bg\" style=\"background-image:url({{product_imageUrl}});\"></div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"product-information\">\n\t\t\t\t\t\t<span class=\"title\"><h5>{{product_name}}</h5></span>\n\t\t\t\t\t</div>\n\t\t\t\t</a>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>",
"name": null,
"type": "Custom",
"displayType": "carousel",
"payload": null,
"description": null,
"themeId": "cartup-theme1",
"divisionId": null,
"jsTemplate": null,
"cssTemplate": null
}
]
}
{
errMsg: "request json is not present in request params",
widgetThemes: null
}
Curl Example
curl --request GET https://api.cartup.ai/v1/theme?request={"orgId":"850a8b8f-a6fe-49e4-88fc-874843279d66"}
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'X-Cartup-Access-Token: $CARTUP_API_KEY'
--header 'X-Cartup-orgId : $CARTUP_ORD_ID'
Request Object
Key | Type | Required | Description |
---|---|---|---|
orgId | String | Yes | Your Org ID |
Example
{
"orgId":"850a8b8f-a6fe-49e4-88fc-874843279d66"
}
Last updated