Comments API

1
GET /reviews
Field Type required Desc
per_page number false per_page default(10)
page number false page default(0)
reviewer_id number false reviewer_id
product_id number true product_id
rating number false rating
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
{
"data": {
"reviews": {
"264": {
"id": 278,
"name": "Lieselotte Thies",
"title": "Schwarzer BH - Größe M",
"rating": 5,
"comment": "Schönes Material - angenehmes Tragen!",
"status": "approved",
"product_id": 3011,
"customer_id": 278,
"created_at": "2024-05-15T09:21:46.000000Z",
"updated_at": "2024-05-15T09:21:46.000000Z",
"customer": {
"id": 278,
"first_name": "Lieselotte Thies",
"last_name": "",
"gender": null,
"date_of_birth": null,
"image": null,
"status": 1,
"customer_group_id": 2,
"subscribed_to_news_letter": false,
"is_verified": 1,
"is_suspended": 0,
"token": null,
"created_at": "2024-05-15T09:21:46.000000Z",
"updated_at": "2024-05-15T09:21:46.000000Z",
"image_url": null
},
"images": []
},
"267": {
"id": 282,
"name": "Martina Wiencke",
"title": "Angenehmes Tragegefühl",
"rating": 5,
"comment": "Sehr angenehm zu tragen, hat mich überzeugt.",
"status": "approved",
"product_id": 3011,
"customer_id": 282,
"created_at": "2024-05-15T09:21:46.000000Z",
"updated_at": "2024-05-15T09:21:46.000000Z",
"customer": {
"id": 282,
"first_name": "Martina Wiencke",
"last_name": "",
"gender": null,
"date_of_birth": null,
"image": null,
"status": 1,
"customer_group_id": 2,
"subscribed_to_news_letter": false,
"is_verified": 1,
"is_suspended": 0,
"token": null,
"created_at": "2024-05-15T09:21:46.000000Z",
"updated_at": "2024-05-15T09:21:46.000000Z",
"image_url": null
},
"images": []
},
"269": {
"id": 285,
"name": "Dagmar Behrendt",
"title": "Befreiung",
"rating": 5,
"comment": "Kein Gefühl der Einengung. Sitzt einfach toll.",
"status": "approved",
"product_id": 3011,
"customer_id": 285,
"created_at": "2024-05-15T09:21:47.000000Z",
"updated_at": "2024-05-15T09:21:47.000000Z",
"customer": {
"id": 285,
"first_name": "Dagmar Behrendt",
"last_name": "",
"gender": null,
"date_of_birth": null,
"image": null,
"status": 1,
"customer_group_id": 2,
"subscribed_to_news_letter": false,
"is_verified": 1,
"is_suspended": 0,
"token": null,
"created_at": "2024-05-15T09:21:47.000000Z",
"updated_at": "2024-05-15T09:21:47.000000Z",
"image_url": null
},
"images": []
},
"281": {
"id": 298,
"name": "Barbara Leitsch",
"title": "Bestellung vom 8.4.24",
"rating": 5,
"comment": "Ich habe bis jetzt nichts erhalten!",
"status": "approved",
"product_id": 3011,
"customer_id": 298,
"created_at": "2024-05-15T09:21:49.000000Z",
"updated_at": "2024-05-15T09:21:49.000000Z",
"customer": {
"id": 298,
"first_name": "Barbara Leitsch",
"last_name": "",
"gender": null,
"date_of_birth": null,
"image": null,
"status": 1,
"customer_group_id": 2,
"subscribed_to_news_letter": false,
"is_verified": 1,
"is_suspended": 0,
"token": null,
"created_at": "2024-05-15T09:21:49.000000Z",
"updated_at": "2024-05-15T09:21:49.000000Z",
"image_url": null
},
"images": []
},
"282": {
"id": 299,
"name": "Eicher Karl",
"title": "schlechte passform geht gar nicht",
"rating": 5,
"comment": "gar nichr akzeptabel",
"status": "approved",
"product_id": 3011,
"customer_id": 299,
"created_at": "2024-05-15T09:21:49.000000Z",
"updated_at": "2024-05-15T09:21:49.000000Z",
"customer": {
"id": 299,
"first_name": "Eicher Karl",
"last_name": "",
"gender": null,
"date_of_birth": null,
"image": null,
"status": 1,
"customer_group_id": 2,
"subscribed_to_news_letter": false,
"is_verified": 1,
"is_suspended": 0,
"token": null,
"created_at": "2024-05-15T09:21:49.000000Z",
"updated_at": "2024-05-15T09:21:49.000000Z",
"image_url": null
},
"images": []
},
"283": {
"id": 300,
"name": "Gunther Krebes",
"title": "1stern ist zuviel, 0 ist ok",
"rating": 5,
"comment": "Es ist bis heute nichts angekommen und ich hoffe sie haben dis Einnahmen schon anderweitig erhalten \r\nInvestiert …",
"status": "approved",
"product_id": 3011,
"customer_id": 300,
"created_at": "2024-05-15T09:21:50.000000Z",
"updated_at": "2024-05-15T09:21:50.000000Z",
"customer": {
"id": 300,
"first_name": "Gunther Krebes",
"last_name": "",
"gender": null,
"date_of_birth": null,
"image": null,
"status": 1,
"customer_group_id": 2,
"subscribed_to_news_letter": false,
"is_verified": 1,
"is_suspended": 0,
"token": null,
"created_at": "2024-05-15T09:21:50.000000Z",
"updated_at": "2024-05-15T09:21:50.000000Z",
"image_url": null
},
"images": []
},
"285": {
"id": 302,
"name": "Angelika Lang",
"title": "Hatme Haltungskorrektur BH",
"rating": 5,
"comment": "Sehr gut. Habe mehrere gekauft",
"status": "approved",
"product_id": 3011,
"customer_id": 302,
"created_at": "2024-05-15T09:21:50.000000Z",
"updated_at": "2024-05-15T09:21:50.000000Z",
"customer": {
"id": 302,
"first_name": "Angelika Lang",
"last_name": "",
"gender": null,
"date_of_birth": null,
"image": null,
"status": 1,
"customer_group_id": 2,
"subscribed_to_news_letter": false,
"is_verified": 1,
"is_suspended": 0,
"token": null,
"created_at": "2024-05-15T09:21:50.000000Z",
"updated_at": "2024-05-15T09:21:50.000000Z",
"image_url": null
},
"images": []
},
"286": {
"id": 303,
"name": "Gisela Böhnisch",
"title": "Gute Qualität",
"rating": 4,
"comment": "Leider wurden zwei unterschiedlichen Größen geliefert. Der eine BH passt wunderbar und die Qualität ist ausgezeichnet.",
"status": "approved",
"product_id": 3011,
"customer_id": 303,
"created_at": "2024-05-15T09:21:50.000000Z",
"updated_at": "2024-05-15T09:21:50.000000Z",
"customer": {
"id": 303,
"first_name": "Gisela Böhnisch",
"last_name": "",
"gender": null,
"date_of_birth": null,
"image": null,
"status": 1,
"customer_group_id": 2,
"subscribed_to_news_letter": false,
"is_verified": 1,
"is_suspended": 0,
"token": null,
"created_at": "2024-05-15T09:21:50.000000Z",
"updated_at": "2024-05-15T09:21:50.000000Z",
"image_url": null
},
"images": [
{
"id": 1,
"review_id": 303,
"type": "image",
"mime_type": "jpeg",
"path": "review/1/OygHorOm0xlPnfbxdOGp4H775dgcR55TlhwAqnRH.jpg",
"url": "http://127.0.0.1:8000/storage/review/1/OygHorOm0xlPnfbxdOGp4H775dgcR55TlhwAqnRH.jpg"
},
{
"id": 2,
"review_id": 303,
"type": "image",
"mime_type": "jpeg",
"path": "storage/product/3011/1715331110__17153310222652409484840428214320__original.jpg",
"url": "http://127.0.0.1:8000/storage/storage/product/3011/1715331110__17153310222652409484840428214320__original.jpg"
}
]
},
"326": {
"id": 353,
"name": "Monika Sauer",
"title": "Gesundheit",
"rating": 5,
"comment": "Sehr gut und bequem",
"status": "approved",
"product_id": 3011,
"customer_id": 352,
"created_at": "2024-05-15T09:21:56.000000Z",
"updated_at": "2024-05-15T09:21:56.000000Z",
"customer": {
"id": 352,
"first_name": "Monika Sauer",
"last_name": "",
"gender": null,
"date_of_birth": null,
"image": null,
"status": 1,
"customer_group_id": 2,
"subscribed_to_news_letter": false,
"is_verified": 1,
"is_suspended": 0,
"token": null,
"created_at": "2024-05-15T09:21:56.000000Z",
"updated_at": "2024-05-15T09:21:56.000000Z",
"image_url": null
},
"images": []
},
"331": {
"id": 358,
"name": "Inge Stroschke",
"title": "BH ohne Bügel",
"rating": 5,
"comment": "sitzt prima und sehr bequem",
"status": "approved",
"product_id": 3011,
"customer_id": 357,
"created_at": "2024-05-15T09:21:56.000000Z",
"updated_at": "2024-05-15T09:21:56.000000Z",
"customer": {
"id": 357,
"first_name": "Inge Stroschke",
"last_name": "",
"gender": null,
"date_of_birth": null,
"image": null,
"status": 1,
"customer_group_id": 2,
"subscribed_to_news_letter": false,
"is_verified": 1,
"is_suspended": 0,
"token": null,
"created_at": "2024-05-15T09:21:56.000000Z",
"updated_at": "2024-05-15T09:21:56.000000Z",
"image_url": null
},
"images": []
}
},
"ratingValue": "4.7",
"reviewCount": 45,
"getReviewsWithRatings": [
{
"rating": 5,
"total": 36
},
{
"rating": 4,
"total": 8
},
{
"rating": 1,
"total": 1
}
],
"getPercentageRating": {
"5": 80,
"4": 18,
"3": 0,
"2": 0,
"1": 2
},
"getTotalRating": 213,
"per_page": 10,
"page": "0",
"total": 45
},
"code": 200,
"message": "success"
}
1
POST /reviews
1
PUT /reviews/{id}
1
GET /reviews/{id}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
"review": {
"id": 111,
"title": "Raw review title. This is not sanitized yet so do not print it out as-is in frontend.",
"body": "Raw review body. This is not sanitized yet so do not print it out as-is in frontend.",
"rating": 5,
"product_external_id": 999999,
"product_title": "Example product",
"product_handle": "example-product",
"reviewer": {
"id": 111,
"email": "john@example.com",
"name": "John Smith",
"phone": "+123456789",
"tags": [
"tag1",
"tag2",
"tag3"
],
"accepts_marketing": true,
"unsubscribed_at": "2020-02-20T20:20:20+00:00",
"external_id": 999999
},
"source": "email",
"curated": "ok",
"hidden": false,
"verified": "buyer",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"ip_address": "string",
"has_published_pictures": false,
"has_published_videos": false,
"pictures": [
{
"hidden": true,
"urls": {
"small": "string",
"compact": "string",
"huge": "string",
"original": "string"
}
}
]
}
}