Design

Version 3.1 by Shop Team on 2019/08/01 12:13

List of all designs in the shop

Method

URL

Example

GET

/api/v1/shops/<shopId>/designs


Example Payload
{
  "sortField":"default",
  "sortOrder":"default",
  "offset":0,
  "limit":10,
  "count":2,
  "designs":[
      {
        "id":"163261757",
        "href":"https://api.spreadshirt.net/api/v1/shops/100488332/designs/163261757",
        "name":"I love you",
        "price":{
           "vatIncluded":0.0,
           "vatExcluded":0.0,
           "vat":0.0,
           "currency":{
              "id":"1",
              "href":"https://api.spreadshirt.net/api/v1/currencies/1"
            }
         },
        "backgroundColor":"#666666",
        "resources":[
            {
              "href":"https://image.spreadshirtmedia.net/image-server/v1/designs/163261757",
              "mediaType":"png",
              "type":"preview"
            }
         ],
        "version":1562573036
      },
      {
        "id":"163261722",
        "href":"https://api.spreadshirt.net/api/v1/shops/100488332/designs/163261722",
        "name":"pinguine",
        "price":{
           "vatIncluded":0.0,
           "vatExcluded":0.0,
           "vat":0.0,
           "currency":{
              "id":"1",
              "href":"https://api.spreadshirt.net/api/v1/currencies/1"
            }
         },
        "resources":[
            {
              "href":"https://image.spreadshirtmedia.net/image-server/v1/designs/163261722",
              "mediaType":"png",
              "type":"preview"
            }
         ],
        "version":1562573036
      },
   ]
}


Details about a design

Method

URL

Example

GET

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


Example Payload
{
  "href":"https://api.spreadshirt.net/api/v1/shops/100488332/designs/163261757",
  "id":"163261757",
  "created":"2019-07-08T08:03:56.000+0000",
  "modified":"2019-07-22T10:17:39.000+0000",
  "name":"I love you",
  "description":"A lovely design for you",
  "tags":"Love,Love hurts,Love me,Love parade,Love with heart,Loved,Lovestruck,You,Young money,Young wild and free,Your,Youtube,migration,shop api,test",
  "user":{
     "href":"https://api.spreadshirt.net/api/v1/users/117878306",
     "id":"117878306"
   },
  "size":{
     "width":3938.0,
     "height":1149.0,
     "unit":"px"
   },
  "colors":[

   ],
  "backgroundColor":"#666666",
  "printTypes":[
      {
        "href":"https://api.spreadshirt.net/api/v1/shops/100488332/printTypes/17",
        "id":"17"
      },
      {
        "href":"https://api.spreadshirt.net/api/v1/shops/100488332/printTypes/1",
        "id":"1"
      },
   ],
  "designCategories":[

   ],
  "price":{
     "vatExcluded":0.00,
     "vatIncluded":0.00,
     "vat":19.00,
     "currency":{
        "href":"https://api.spreadshirt.net/api/v1/currencies/1",
        "id":"1"
      }
   },
  "resources":[
      {
        "mediaType":"png",
        "type":"preview",
        "href":"https://image.spreadshirtmedia.net/image-server/v1/designs/163261757,backgroundColor=666666"
      },
      {
        "mediaType":"png",
        "type":"montage",
        "href":"https://image.spreadshirtmedia.net/image-server/v1/designs/163261757"
      }
   ],
}


Tags:
Created by Shop Team on 2019/08/01 11:50