Changes for page Design Details
Last modified by Shop Team on 2023/02/13 22:56
Summary
-
Page properties (3 modified, 0 added, 0 removed)
-
Attachments (0 modified, 0 added, 1 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,1 @@ 1 -Design Details1 +Design - Parent
-
... ... @@ -1,1 +1,0 @@ 1 -API REST Resources - Content
-
... ... @@ -1,5 +1,7 @@ 1 -In our terminology, a design represents a pixel (png, jpg, gif) or vector image (svg) that youuploaded in the PartnerArea.Every entry from theĀ [[Sellables endpoint>>doc:API.Sellables]] contains a field"mainDesignId". This idcanbeusedtoaccess the resource below in ordertoretrieve additionalinformation aboutthe upload. In the vast majorityof implementations, this information is not necessary andit sufficestousethe"Sellables" resource.1 +In our terminology, a design represents a pixel (png, jpg, gif) or vector image (svg) that a customer or partner can use to put it on a product type. 2 2 3 += List of all designs in the shop = 4 + 3 3 (% class="wrapped" %) 4 4 |=((( 5 5 Method ... ... @@ -11,6 +11,63 @@ 11 11 |((( 12 12 GET 13 13 )))|((( 16 +/api/v1/shops/<shopId>/designs 17 +)))|((( 18 +[[https:~~/~~/api.spreadshirt.net/api/v1/shops/100488332/designs?mediaType=json>>url:https://api.spreadshirt.net/api/v1/shops/100488332/designs?mediaType=json||shape="rect"]] 19 +))) 20 + 21 +\\ 22 + 23 +{{code language="js" theme="Emacs" title="Example Payload" collapse="true"}} 24 +{ 25 + "offset":0, 26 + "limit":10, 27 + "count":2, 28 + "designs":[ 29 + { 30 + "id":"163261757", 31 + "href":"https://api.spreadshirt.net/api/v1/shops/100488332/designs/163261757", 32 + "name":"I love you", 33 + "backgroundColor":"#666666", 34 + "resources":[ 35 + { 36 + "href":"https://image.spreadshirtmedia.net/image-server/v1/designs/163261757", 37 + "mediaType":"png", 38 + "type":"preview" 39 + } 40 + ], 41 + }, 42 + { 43 + "id":"163261722", 44 + "href":"https://api.spreadshirt.net/api/v1/shops/100488332/designs/163261722", 45 + "name":"pinguine", 46 + "resources":[ 47 + { 48 + "href":"https://image.spreadshirtmedia.net/image-server/v1/designs/163261722", 49 + "mediaType":"png", 50 + "type":"preview" 51 + } 52 + ], 53 + }, 54 + ] 55 +} 56 +{{/code}} 57 + 58 +\\ 59 + 60 += Details about a design = 61 + 62 +(% class="wrapped" %) 63 +|=((( 64 +Method 65 +)))|=((( 66 +URL 67 +)))|=((( 68 +Example 69 +))) 70 +|((( 71 +GET 72 +)))|((( 14 14 /api/v1/shops/<shopId>/designs/<designId> 15 15 )))|((( 16 16 [[https:~~/~~/api.spreadshirt.net/api/v1/shops/100488332/designs/163261757?mediaType=json>>url:https://api.spreadshirt.net/api/v1/shops/100488332/designs/163261757?mediaType=json||shape="rect"]] ... ... @@ -20,7 +20,7 @@ 20 20 21 21 A design has the following characteristics: 22 22 23 -* Each design has a name, a description, a size. 82 +* Each design has a name, a description, a size and a price. The price is in this case the commission that the owner of the design earns for each usage. 24 24 * **Images:** To retrieve a design image, you can use a URL similar to the following one: [[https:~~/~~/image.spreadshirtmedia.net/image-server/v1/designs/2484607>>url:https://image.spreadshirtmedia.net/image-server/v1/designs/2484607||shape="rect"]]. These URLs are provided within the resources part of the design payload. 25 25 * **Color Layers:** Vector designs consist of one or more color layers. We provide for each color layer, the original color of the uploaded design as well as the color set by the owner as actual default color. Example: 26 26 [[image:attach:design-layer2.png]] ... ... @@ -61,6 +61,18 @@ 61 61 "id":"1" 62 62 }, 63 63 ], 123 + "designCategories":[ 124 + 125 + ], 126 + "price":{ 127 + "vatExcluded":0.00, 128 + "vatIncluded":0.00, 129 + "vat":19.00, 130 + "currency":{ 131 + "href":"https://api.spreadshirt.net/api/v1/currencies/1", 132 + "id":"1" 133 + } 134 + }, 64 64 "resources":[ 65 65 { 66 66 "mediaType":"png",
- design-layer2.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.XWikiGuest - Size
-
... ... @@ -1,1 +1,0 @@ 1 -31.8 KB - Content
- Confluence.Code.ConfluencePageClass[0]
-
- id
-
... ... @@ -1,1 +1,1 @@ 1 -282788 561 +28278865 - url
-
... ... @@ -1,1 +1,1 @@ 1 -https://developer.spreadshirt.net/wiki/spaces/API/pages/282788 56/DesignDetails1 +https://developer.spreadshirt.net/wiki/spaces/API/pages/28278865/Design