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

<
From version < 2.1 >
edited by Shop Team
on 2019/08/01 11:18
To version < 3.1 >
edited by Shop Team
on 2019/08/01 11:22
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,1 @@
1 -ProductType departments
1 +ProductType Departments
Content
... ... @@ -1,7 +1,7 @@
1 1  (% class="auto-cursor-target" %)
2 2  \\
3 3  
4 -(% class="relative-table" style="width: 57.0968%;" %)
4 +(% class="relative-table wrapped" style="width: 57.0968%;" %)
5 5  |=(((
6 6  Method
7 7  )))|=(((
... ... @@ -12,38 +12,110 @@
12 12  |(((
13 13  GET
14 14  )))|(((
15 -/api/v1/shops/<shopId>/productTypeDetpartments
15 +/api/v1/shops/<shopId>/productTypeDepartments
16 16  )))|(((
17 -[[https:~~/~~/api.spreadshirt.net/api/v1/shops/100488332/productTypeDetpartments?mediaType=json>>url:https://api.spreadshirt.net/api/v1/shops/100488332/productTypeDetpartments?mediaType=json||shape="rect"]]
17 +[[https:~~/~~/api.spreadshirt.net/api/v1/shops/100488332/productTypeDepartments?mediaType=json&fullData=true>>url:https://api.spreadshirt.net/api/v1/shops/100488332/productTypeDepartments?mediaType=json&fullData=true||shape="rect"]]
18 18  )))
19 19  
20 20  \\
21 21  
22 -This resource is probably only relevant for somewhat generic implementations because it allows them to access a shop's name and localization settings.
22 +This resource will list all available ProductType Departments of the given shop. It is recommended to use the **fullData** query parameter to avoid unnecessary requests for each ProductType Department.
23 23  
24 24  \\
25 25  
26 26  {{code language="js" title="Example Payload"}}
27 27  {
28 - "href" : "https://api.spreadshirt.net/api/v1/shops/100488332",
29 - "id" : "100488332",
30 - "name" : "shop-api-migration-example",
31 - "descriptionName" : "shop-api-migration-example",
32 - "country" :
28 + "offset":0,
29 + "limit":50,
30 + "count":1,
31 + "productTypeDepartments":[
33 33   {
34 - "href" : "https://api.spreadshirt.net/api/v1/countries/1",
35 - "id" : "1"
33 + "href":"https://api.spreadshirt.net/api/v1/shops/100488332/productTypeDepartments/1",
34 + "id":"1",
35 + "lifeCycleState":"ACTIVATED",
36 + "name":"Men",
37 + "weight":1.0,
38 + "categories":[
39 + {
40 + "id":"24",
41 + "name":"T-Shirts",
42 + "nameSingular":"T-Shirt",
43 + "productTypes":[
44 + {
45 + "href":"https://api.spreadshirt.net/api/v1/shops/100488332/productTypes/812",
46 + "id":"812"
47 + },
48 + {
49 + "href":"https://api.spreadshirt.net/api/v1/shops/100488332/productTypes/6",
50 + "id":"6"
51 + },
52 + {
53 + "href":"https://api.spreadshirt.net/api/v1/shops/100488332/productTypes/1183",
54 + "id":"1183"
55 + },
56 + ]
57 + },
58 + {
59 + "id":"25",
60 + "name":"Long sleeve shirts",
61 + "nameSingular":"Long Sleeve Shirt",
62 + "productTypes":[
63 + {
64 + "href":"https://api.spreadshirt.net/api/v1/shops/100488332/productTypes/1287",
65 + "id":"1287"
66 + },
67 + {
68 + "href":"https://api.spreadshirt.net/api/v1/shops/100488332/productTypes/875",
69 + "id":"875"
70 + },
71 + {
72 + "href":"https://api.spreadshirt.net/api/v1/shops/100488332/productTypes/36",
73 + "id":"36"
74 + }
75 + ]
76 + },
77 + {
78 + "id":"27",
79 + "name":"Hoodies & Sweatshirts",
80 + "nameSingular":"Hoodie",
81 + "productTypes":[
82 + {
83 + "href":"https://api.spreadshirt.net/api/v1/shops/100488332/productTypes/20",
84 + "id":"20"
85 + },
86 + {
87 + "href":"https://api.spreadshirt.net/api/v1/shops/100488332/productTypes/1388",
88 + "id":"1388"
89 + }
90 + ]
91 + },
92 + {
93 + "id":"28",
94 + "name":"Jackets & Vests",
95 + "nameSingular":"Jacket",
96 + "productTypes":[
97 + {
98 + "href":"https://api.spreadshirt.net/api/v1/shops/100488332/productTypes/1215",
99 + "id":"1215"
100 + },
101 + {
102 + "href":"https://api.spreadshirt.net/api/v1/shops/100488332/productTypes/93",
103 + "id":"93"
104 + },
105 + {
106 + "href":"https://api.spreadshirt.net/api/v1/shops/100488332/productTypes/1114",
107 + "id":"1114"
108 + },
109 + {
110 + "href":"https://api.spreadshirt.net/api/v1/shops/100488332/productTypes/644",
111 + "id":"644"
112 + }
113 + ]
114 + },
115 + ]
36 36   },
37 - "language" :
38 - {
39 - "href" : "https://api.spreadshirt.net/api/v1/languages/1",
40 - "id" : "1"
41 - },
42 - "currency" :
43 - {
44 - "href" : "https://api.spreadshirt.net/api/v1/currencies/1",
45 - "id" : "1"
46 - }
117 + ],
118 + "href":"https://api.spreadshirt.net/api/v1/shops/100488332/productTypeDepartments"
47 47  }
48 48  {{/code}}
49 49  
Confluence.Code.ConfluencePageClass[0]
id
... ... @@ -1,1 +1,1 @@
1 -28278853
1 +28278854
url
... ... @@ -1,1 +1,1 @@
1 -https://developer.spreadshirt.net/wiki/spaces/API/pages/28278853/ProductType departments
1 +https://developer.spreadshirt.net/wiki/spaces/API/pages/28278854/ProductType Departments