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

MethodURLExample
GET/api/v1/shops/<shopId>/designshttps://api.spreadshirt.net/api/v1/shops/100488332/designs?mediaType=json

...

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"
            }
         ],
      },
   ]
}


Details about a design

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

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

...