Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In our terminology, a design represents a pixel (png, jpg, gif) or vector image (svg) that you uploaded in the Partner Area.

List of all designs in the shop

...

Code Block
languagejs
titleExample Payload
{
   "offset":0,
   "limit":10,
   "count":2,
   "designs":[
      {
         "id":"163261757",
         "href":"https://api.spreadshirt.net/api/v1/shops/100488332/designs/163261757",
         "name":"I love you",
         "backgroundColor":"#666666",
         "resources":[
            {
               "href":"https://image.spreadshirtmedia.net/image-server/v1/designs/163261757",
               "mediaType":"png",
               "type":"preview"
            }
         ],
      },
      {
         "id":"163261722",
         "href":"https://api.spreadshirt.net/api/v1/shops/100488332/designs/163261722",
         "name":"pinguine",
         "resources":[
            {
               "href":"https://image.spreadshirtmedia.net/image-server/v1/designs/163261722",
               "mediaType":"png",
               "type":"preview"
            }
         ],
      },
   ]
}

...

Every entry from the Sellables endpoint contains a field "mainDesignId". This id can be used to access the resource below in order to retrieve additional information about the upload. In the vast majority of implementations, this information is not necessary and it suffices to use the "Sellables" resource.

MethodURLExample
GET/api/v1/shops/<shopId>/designs/<designId>

https://api.spreadshirt.net/api/v1/shops/100488332/designs/163261757?mediaType=json

...