{"id":275805,"url":"\/api-docs\/catalog\/","layout":"standard","version":"2022-12-08T14:21:15.000000Z","blocks":[{"id":2002708,"type":"banner","published":1,"size":{"x":12,"y":0},"order":0,"items":[],"properties":{"type":{"id":36234377,"value":"slim"},"title":{"id":36234378,"value":"Catalog API"},"copy":{"id":36234379,"value":"Manage products stored on your account"},"titleColor":{"id":36234380,"value":"#{banner.title.color}"},"titleBackground":{"id":36234381,"value":"#{banner.title.background.color}"},"copyColor":{"id":36234382,"value":"#{banner.copy.color}"},"copyBackground":{"id":36234383,"value":"#{banner.copy.background.color}"},"contentWidth":{"id":36234384,"value":"95%"},"textShadow":{"id":36234385,"value":"#{banner.text.shadow}"},"borderRadius":{"id":36234386,"value":"0px"},"buttonBorderRadius":{"id":36234387,"value":"#{button.border.radius}"},"buttonBackgroundColor":{"id":36234388,"value":"#{button.primary.color}"},"buttonStyle":{"id":36234389,"value":"secondary"},"buttonSize":{"id":36234390,"value":"standard"},"overlayOpacity":{"id":36234391,"value":"0.15"},"overlayColourStart":{"id":36234392,"value":"#000000"},"overlayColourEnd":{"id":36234393,"value":"#000000"},"overlayDirection":{"id":36234394,"value":"90"},"image":{"id":36234395,"value":"{\"src\":\"https:\\\/\\\/images.podos.io\\\/vsbhuyein7fmtgcrgpbuhbb2sgysujadiyq4exhvte6xutel.jpeg.jpg?w=auto&h=auto\",\"alt\":\"\"}"},"video":{"id":36234396,"value":null},"media":{"id":36234397,"value":"image"},"align":{"id":36234398,"value":"left"},"verticalAlignment":{"id":36234399,"value":"center"},"font":{"id":36234400,"value":"#{heading1.font}"},"actions":{"id":36234401,"value":"[{\"text\":\"\",\"href\":\"#\"},{\"text\":\"\",\"href\":\"#\"}]"},"padding":{"id":36234403,"value":"6"},"fullWidth":{"id":36234404,"value":"1"},"fullBackgroundColor":{"id":36234405,"value":"#{banner.fullBackground.color}"},"published":{"id":36234406,"value":"1"},"conditions":{"id":36234407,"value":"[]"},"template":{"id":39654002,"value":"banner"}}},{"id":2002710,"type":"textBlock","published":1,"size":{"x":12,"y":0},"order":2,"items":[],"properties":{"html":{"id":36234441,"value":"<h2><span style=\"display:block;\"><strong>Authorisation<\/strong><\/span><\/h2><p><span style=\"display:block;\">To authenticate with any endpoint within the Catalog API, you'll need to pass a \"project\" GET parameter containing your project name and an \"Authorization\" header containing your\u00a0<em>private<\/em>\u00a0API Key. Your project name is in your\u00a0<a href=\"https:\/\/teemill.com\/settings\/\" target=\"_blank\" rel=\"noreferrer noopener\">developer settings<\/a>\u00a0along with your Auth keys.<\/span><\/p>"},"borderRadius":{"id":36234442,"value":"#{text.border.radius}"},"textColor":{"id":36234443,"value":"#{text.color}"},"backgroundColour":{"id":36234444,"value":"#0000"},"truncateHeight":{"id":36234445,"value":null},"padding":{"id":36234447,"value":"1"},"fullWidth":{"id":36234448,"value":"0"},"fullBackgroundColor":{"id":36234449,"value":"#{text.fullBackground.color}"},"published":{"id":36234450,"value":"1"},"conditions":{"id":36234451,"value":"[]"},"template":{"id":39645199,"value":"text"}}},{"id":2142253,"type":"textBlock","published":1,"size":{"x":12,"y":0},"order":5,"items":[],"properties":{"html":{"id":39645294,"value":"<p>Use the <strong><a href=\"https:\/\/teemill.stoplight.io\/docs\/public-api\/71986ac6c9a54-list-products\" target=\"_blank\" rel=\"noreferrer noopener\">List products<\/a><\/strong> endpoint to retrieve all products stored on your account.<\/p>"},"borderRadius":{"id":39645295,"value":"#{text.border.radius}"},"textColor":{"id":39645296,"value":"#{text.color}"},"backgroundColour":{"id":39645297,"value":"#0000"},"truncateHeight":{"id":39645298,"value":null},"padding":{"id":39645300,"value":"1"},"fullWidth":{"id":39645301,"value":"0"},"fullBackgroundColor":{"id":39645302,"value":"#{text.fullBackground.color}"},"published":{"id":39645303,"value":"1"},"conditions":{"id":39645304,"value":"[]"},"template":{"id":39653194,"value":"text"}}},{"id":2142496,"type":"textBlock","published":1,"size":{"x":12,"y":0},"order":4,"items":[],"properties":{"html":{"id":39651470,"value":"<h2>Endpoints<\/h2>"},"borderRadius":{"id":39651471,"value":"#{text.border.radius}"},"textColor":{"id":39651472,"value":"#{text.color}"},"backgroundColour":{"id":39651473,"value":"#0000"},"truncateHeight":{"id":39651474,"value":null},"template":{"id":39651475,"value":"text"},"padding":{"id":39651476,"value":"3"},"fullWidth":{"id":39651477,"value":"0"},"fullBackgroundColor":{"id":39651478,"value":"#{text.fullBackground.color}"},"published":{"id":39651479,"value":"1"},"conditions":{"id":39651480,"value":"[]"}}},{"id":2142517,"type":"textBlock","published":1,"size":{"x":12,"y":0},"order":3,"items":[],"properties":{"html":{"id":39651926,"value":"<pre><code class=\"language-curl\">curl --request POST \\\n  --url 'https:\/\/api.teemill.com\/v1\/catalog\/products?project={your_project_name}' \\\n  --header 'Authorization: {your_private_secure_key}'<\/code><\/pre>"},"borderRadius":{"id":39651927,"value":"#{text.border.radius}"},"textColor":{"id":39651928,"value":"#{text.color}"},"backgroundColour":{"id":39651929,"value":"#0000"},"truncateHeight":{"id":39651930,"value":null},"template":{"id":39651931,"value":"text"},"padding":{"id":39651932,"value":"6"},"fullWidth":{"id":39651933,"value":"0"},"fullBackgroundColor":{"id":39651934,"value":"#{text.fullBackground.color}"},"published":{"id":39651935,"value":"1"},"conditions":{"id":39651936,"value":"[]"}}},{"id":2142518,"type":"textBlock","published":1,"size":{"x":12,"y":0},"order":6,"items":[],"properties":{"html":{"id":39651938,"value":"<pre><code class=\"language-http\">GET https:\/\/api.teemill.com\/v1\/catalog\/products HTTP\/2<\/code><\/pre>"},"borderRadius":{"id":39651939,"value":"#{text.border.radius}"},"textColor":{"id":39651940,"value":"#{text.color}"},"backgroundColour":{"id":39651941,"value":"#0000"},"truncateHeight":{"id":39651942,"value":null},"template":{"id":39651943,"value":"text"},"padding":{"id":39651944,"value":"3"},"fullWidth":{"id":39651945,"value":"0"},"fullBackgroundColor":{"id":39651946,"value":"#{text.fullBackground.color}"},"published":{"id":39651947,"value":"1"},"conditions":{"id":39651948,"value":"[]"}}},{"id":2142519,"type":"textBlock","published":1,"size":{"x":12,"y":0},"order":7,"items":[],"properties":{"html":{"id":39651949,"value":"<p>The<strong> <a href=\"https:\/\/teemill.stoplight.io\/docs\/public-api\/33c4ac4cb7827-get-product\" target=\"_blank\" rel=\"noreferrer noopener\">Get product<\/a><\/strong> endpoint allows you get the full details for a specific product.<\/p>"},"borderRadius":{"id":39651950,"value":"#{text.border.radius}"},"textColor":{"id":39651951,"value":"#{text.color}"},"backgroundColour":{"id":39651952,"value":"#0000"},"truncateHeight":{"id":39651953,"value":null},"padding":{"id":39651955,"value":"1"},"fullWidth":{"id":39651956,"value":"0"},"fullBackgroundColor":{"id":39651957,"value":"#{text.fullBackground.color}"},"published":{"id":39651958,"value":"1"},"conditions":{"id":39651959,"value":"[]"},"template":{"id":39653195,"value":"text"}}},{"id":2142520,"type":"textBlock","published":1,"size":{"x":12,"y":0},"order":8,"items":[],"properties":{"html":{"id":39651960,"value":"<pre><code class=\"language-http\">GET https:\/\/api.teemill.com\/v1\/catalog\/products\/{productId} HTTP\/2<\/code><\/pre>"},"borderRadius":{"id":39651961,"value":"#{text.border.radius}"},"textColor":{"id":39651962,"value":"#{text.color}"},"backgroundColour":{"id":39651963,"value":"#0000"},"truncateHeight":{"id":39651964,"value":null},"template":{"id":39651965,"value":"text"},"padding":{"id":39651966,"value":"3"},"fullWidth":{"id":39651967,"value":"0"},"fullBackgroundColor":{"id":39651968,"value":"#{text.fullBackground.color}"},"published":{"id":39651969,"value":"1"},"conditions":{"id":39651970,"value":"[]"}}},{"id":2142521,"type":"textBlock","published":1,"size":{"x":12,"y":0},"order":9,"items":[],"properties":{"html":{"id":39651971,"value":"<p>The <strong><a href=\"https:\/\/teemill.stoplight.io\/docs\/public-api\/eb87e45cc1f43-list-variants\" target=\"_blank\" rel=\"noreferrer noopener\">List variants<\/a><\/strong> endpoint returns all colour\/size combinations for all products on your store. You'll use the variantRefs returned to identify what you are ordering when using the <a href=\"\/api-docs\/orders\/\" target=\"_blank\" rel=\"noreferrer noopener\">Orders API<\/a>.<\/p>"},"borderRadius":{"id":39651972,"value":"#{text.border.radius}"},"textColor":{"id":39651973,"value":"#{text.color}"},"backgroundColour":{"id":39651974,"value":"#0000"},"truncateHeight":{"id":39651975,"value":null},"padding":{"id":39651977,"value":"1"},"fullWidth":{"id":39651978,"value":"0"},"fullBackgroundColor":{"id":39651979,"value":"#{text.fullBackground.color}"},"published":{"id":39651980,"value":"1"},"conditions":{"id":39651981,"value":"[]"},"template":{"id":39655040,"value":"text"}}},{"id":2142522,"type":"textBlock","published":1,"size":{"x":12,"y":0},"order":10,"items":[],"properties":{"html":{"id":39651982,"value":"<pre><code class=\"language-http\">GET https:\/\/api.teemill.com\/v1\/catalog\/variants HTTP\/2<\/code><\/pre>"},"borderRadius":{"id":39651983,"value":"#{text.border.radius}"},"textColor":{"id":39651984,"value":"#{text.color}"},"backgroundColour":{"id":39651985,"value":"#0000"},"truncateHeight":{"id":39651986,"value":null},"template":{"id":39651987,"value":"text"},"padding":{"id":39651988,"value":"3"},"fullWidth":{"id":39651989,"value":"0"},"fullBackgroundColor":{"id":39651990,"value":"#{text.fullBackground.color}"},"published":{"id":39651991,"value":"1"},"conditions":{"id":39651992,"value":"[]"}}},{"id":2142523,"type":"textBlock","published":1,"size":{"x":12,"y":0},"order":11,"items":[],"properties":{"html":{"id":39651993,"value":"<p>Use the<strong> <a href=\"https:\/\/teemill.stoplight.io\/docs\/public-api\/d1b0fdc070e75-get-variant\" target=\"_blank\" rel=\"noreferrer noopener\">Get variant<\/a><\/strong> endpoint to retrieve the full details of one specific variant.<\/p>"},"borderRadius":{"id":39651994,"value":"#{text.border.radius}"},"textColor":{"id":39651995,"value":"#{text.color}"},"backgroundColour":{"id":39651996,"value":"#0000"},"truncateHeight":{"id":39651997,"value":null},"padding":{"id":39651999,"value":"1"},"fullWidth":{"id":39652000,"value":"0"},"fullBackgroundColor":{"id":39652001,"value":"#{text.fullBackground.color}"},"published":{"id":39652002,"value":"1"},"conditions":{"id":39652003,"value":"[]"},"template":{"id":39653197,"value":"text"}}},{"id":2142524,"type":"textBlock","published":1,"size":{"x":12,"y":0},"order":12,"items":[],"properties":{"html":{"id":39652004,"value":"<pre><code class=\"language-http\">GET https:\/\/api.teemill.com\/v1\/catalog\/variants\/{variantId} HTTP\/2<\/code><\/pre>"},"borderRadius":{"id":39652005,"value":"#{text.border.radius}"},"textColor":{"id":39652006,"value":"#{text.color}"},"backgroundColour":{"id":39652007,"value":"#0000"},"truncateHeight":{"id":39652008,"value":null},"template":{"id":39652009,"value":"text"},"padding":{"id":39652010,"value":"6"},"fullWidth":{"id":39652011,"value":"0"},"fullBackgroundColor":{"id":39652012,"value":"#{text.fullBackground.color}"},"published":{"id":39652013,"value":"1"},"conditions":{"id":39652014,"value":"[]"}}},{"id":2142601,"type":"textBlock","published":1,"size":{"x":12,"y":0},"order":1,"items":[],"properties":{"html":{"id":39654851,"value":"<h2>Sustainable print-on-demand products<\/h2><p>This API allows you to manage the products stored on your account. You'll find endpoints that let you retrieve information about your products and their variants.<\/p><ul><li><p><span style=\"display:block;\"><em>A \"variant\" is a colour\/size combination for a specific product stored on your account.<\/em><\/span><\/p><\/li><\/ul><p><\/p><p>You'll use references to those variants to determine which product you are purchasing when using the <a href=\"\/api-docs\/orders\/\" target=\"_blank\" rel=\"noreferrer noopener\">Orders API <\/a>- these are called <strong>variantRefs<\/strong>.<\/p>"},"borderRadius":{"id":39654852,"value":"#{text.border.radius}"},"textColor":{"id":39654853,"value":"#{text.color}"},"backgroundColour":{"id":39654854,"value":"#0000"},"truncateHeight":{"id":39654855,"value":null},"template":{"id":39654856,"value":"text"},"padding":{"id":39654857,"value":"6"},"fullWidth":{"id":39654858,"value":"0"},"fullBackgroundColor":{"id":39654859,"value":"#{text.fullBackground.color}"},"published":{"id":39654860,"value":"1"},"conditions":{"id":39654861,"value":"[]"}}}],"properties":{"title":{"id":36234372,"value":"Catalog API Documentation"},"isStorePage":{"id":36234373,"value":"1"},"isMailPage":{"id":36234374,"value":"0"},"loginState":{"id":36234375,"value":"everyone"},"ogImage":{"id":36234376,"value":"https:\/\/images.podos.io\/3p6juhluxtqvmv6npelavekexfvy0g3ixl5cahtvuwdpakxi.jpeg.jpg?w=1200&h=auto"},"description":{"id":36337040,"value":null}},"labels":{"monitorCheckExcluded":"1"},"published":1,"sitemap":1,"divisionId":12,"edited":true}