... |
... |
@@ -27,6 +27,7 @@ |
27 |
27 |
(% style="color: rgb(80,80,80);" %)[[https:~~/~~/api.spreadshirt.net/api/v1/shops/100488332/sellables?page=0>>url:https://api.spreadshirt.net/api/v1/shops/100488332/sellables?page=0||shape="rect"]] |
28 |
28 |
))) |
29 |
29 |
|
|
30 |
+ |
30 |
30 |
Returns a paginated list of the shop's sellables in a format like this: |
31 |
31 |
|
32 |
32 |
{{code language="js" title="Response Payload"}} |
... |
... |
@@ -120,7 +120,7 @@ |
120 |
120 |
(% class="objectBox objectBox-string" %)mainDesignId |
121 |
121 |
)))|(% colspan="1" %)(% colspan="1" %) |
122 |
122 |
((( |
123 |
|
-Identifies the main image/design which is used for this Idea (usually the first design you add in the Partner Area). Can be used if you want to useĀ the [[Designs Resource>>doc:API.Spreadshirt Public Shop API Documentation.API REST Resources.Design Details.WebHome]] in combination with this resource. |
|
124 |
+Identifies the main image/design which is used for this Idea (usually the first design you add in the Partner Area). Can be used if you want to useĀ the [[Designs Resource>>doc:Designs]] in combination with this resource. |
124 |
124 |
))) |
125 |
125 |
|((( |
126 |
126 |
productTypeId |
... |
... |
@@ -177,7 +177,6 @@ |
177 |
177 |
The default 'color' you can set in the Partner Area. This is the color the previewImage is in. It also provides a good starting point when linking to a detail page. |
178 |
178 |
))) |
179 |
179 |
|
180 |
|
-Please note that this resource returns a maximum of 9504 sellables or 198 full pages. The page parameter must thus always be between 0 and 197 (inclusively). |
181 |
181 |
|
182 |
182 |
Implementation remarks: For advanced implementations, it is usually best to import the content of the sellable list into your own data base in regular intervals (for example once every 24h). |
183 |
183 |
This allows you to implement a custom navigation structure, filters, etc. according to your needs. |
... |
... |
@@ -323,6 +323,7 @@ |
323 |
323 |
A number of images giving an adequate overview over the sellable and it's properties in this appearance when displayed (ordered from most important to least important image). The exact number and shape of the images depend on your shop settings and the specifications you set when uploading the design. This object has the same structure as **previewImage** (mentioned in the list resource section). |
324 |
324 |
))) |
325 |
325 |
|
|
326 |
+ |
326 |
326 |
Implementation remarks: It is not feasible to import these detail resources into your own data base (because the number of entries can skyrocket quickly). |
327 |
327 |
Instead, it is recommended to request the API dynamically in an ad-hoc manner once a customer visits a detail page. |
328 |
328 |
|