Changes for page Sellables

Last modified by Shop Team on 2023/02/13 22:56

<
From version < 17.1 >
edited by Shop Team
on 2023/02/13 22:56
To version < 14.1 >
edited by Shop Team
on 2019/10/28 13:39
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Parent
... ... @@ -1,1 +1,0 @@
1 -API REST Resources
Content
... ... @@ -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,12 +120,12 @@
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
127 127  )))|(((
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]].
129 +Identifies the 'type of garment' used. Can be used to lookup additional meta data from the product type resources described [[here>>doc:ProductType]].
129 129  )))
130 130  |(((
131 131  price
... ... @@ -167,7 +167,7 @@
167 167  appearanceIds
168 168  )))|(% colspan="1" %)(% colspan="1" %)
169 169  (((
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.
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.
171 171  )))
172 172  |(% colspan="1" %)(% colspan="1" %)
173 173  (((
... ... @@ -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.
... ... @@ -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:API.Spreadshirt Public Shop API Documentation.API REST Resources.ProductType.WebHome]].
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]].
319 319  )))
320 320  |(((
321 321  images
... ... @@ -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  
venn.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.XWikiGuest
Size
... ... @@ -1,1 +1,0 @@
1 -81.8 KB
Content
Confluence.Code.ConfluencePageClass[0]
id
... ... @@ -1,1 +1,1 @@
1 -28278792
1 +36732929
url
... ... @@ -1,1 +1,1 @@
1 -https://developer.spreadshirt.net/wiki/spaces/API/pages/28278792/Sellables
1 +https://developer.spreadshirt.net/wiki/spaces/API/pages/36732929/Sellables