... |
... |
@@ -27,7 +27,6 @@ |
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 |
|
- |
31 |
31 |
Returns a paginated list of the shop's sellables in a format like this: |
32 |
32 |
|
33 |
33 |
{{code language="js" title="Response Payload"}} |
... |
... |
@@ -121,17 +121,17 @@ |
121 |
121 |
(% class="objectBox objectBox-string" %)mainDesignId |
122 |
122 |
)))|(% colspan="1" %)(% colspan="1" %) |
123 |
123 |
((( |
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. |
|
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. |
125 |
125 |
))) |
126 |
126 |
|((( |
127 |
127 |
productTypeId |
128 |
128 |
)))|((( |
129 |
|
-Identifies the 'type of garment' used. Can be used to lookup additional meta data from the product type resources described [[here>>doc:ProductType]]. |
|
128 |
+Identifies the 'type of garment' used. Can be used to lookup additional meta data from the product type resources described [[here>>doc:API.Spreadshirt Public Shop API Documentation.API REST Resources.ProductType.WebHome]]. |
130 |
130 |
))) |
131 |
131 |
|((( |
132 |
132 |
price |
133 |
133 |
)))|((( |
134 |
|
-Always in the currency of the shop. Check [[this>>doc:Price Formatting Guide]] for hints on how to format the price in a user-friendly way. |
|
133 |
+Always in the currency of the shop. Check [[this>>doc:API.Price Formatting Guide]] for hints on how to format the price in a user-friendly way. |
135 |
135 |
))) |
136 |
136 |
|((( |
137 |
137 |
name |
... |
... |
@@ -168,7 +168,7 @@ |
168 |
168 |
appearanceIds |
169 |
169 |
)))|(% colspan="1" %)(% colspan="1" %) |
170 |
170 |
((( |
171 |
|
-The 'colors' a sellable currently has available for purchase. If you need more information on the colors, the product type resource [[here>>doc:ProductType]] is useful. |
|
170 |
+The 'colors' a sellable currently has available for purchase. If you need more information on the colors, the product type resource [[here>>doc:API.Spreadshirt Public Shop API Documentation.API REST Resources.ProductType.WebHome]] is useful. |
172 |
172 |
))) |
173 |
173 |
|(% colspan="1" %)(% colspan="1" %) |
174 |
174 |
((( |
... |
... |
@@ -178,6 +178,7 @@ |
178 |
178 |
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. |
179 |
179 |
))) |
180 |
180 |
|
|
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. |
... |
... |
@@ -315,7 +315,7 @@ |
315 |
315 |
|((( |
316 |
316 |
sizeIds |
317 |
317 |
)))|((( |
318 |
|
-Describes the sizes available for purchase for the sellable in this appearance. For more information on sizes, check the product type resource [[here>>doc:ProductType]]. |
|
318 |
+Describes the sizes available for purchase for the sellable in this appearance. For more information on sizes, check the product type resource [[here>>doc:API.Spreadshirt Public Shop API Documentation.API REST Resources.ProductType.WebHome]]. |
319 |
319 |
))) |
320 |
320 |
|((( |
321 |
321 |
images |
... |
... |
@@ -323,7 +323,6 @@ |
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 |
|
- |
327 |
327 |
Implementation remarks: It is not feasible to import these detail resources into your own data base (because the number of entries can skyrocket quickly). |
328 |
328 |
Instead, it is recommended to request the API dynamically in an ad-hoc manner once a customer visits a detail page. |
329 |
329 |
|