-
Notifications
You must be signed in to change notification settings - Fork 755
/
Copy pathvehicles_2024-11-01.json
586 lines (586 loc) · 19 KB
/
vehicles_2024-11-01.json
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
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
{
"swagger": "2.0",
"info": {
"title": "The Selling Partner API for Automotive.",
"description": "The Selling Partner API for Automotive provides programmatic access to information needed by selling partners to provide compatibility information about their listed products.",
"version": "2024-11-01",
"contact": {
"name": "Selling Partner API Developer Support",
"url": "https://sellercentral.amazon.com/gp/mws/contactus.html"
},
"license": {
"name": "Apache License 2.0",
"url": "http://www.apache.org/licenses/LICENSE-2.0"
}
},
"host": "sellingpartnerapi-na.amazon.com",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
"/catalog/2024-11-01/automotive/vehicles": {
"get": {
"tags": [
"vehicles",
"automotive"
],
"description": "Get the latest collection of vehicles",
"operationId": "getVehicles",
"parameters": [
{
"name": "pageToken",
"description": "A token to fetch a certain page when there are multiple pages worth of results.",
"in": "query",
"required": false,
"type": "string",
"x-example": "sdlkj234lkj234lksjdflkjwdflkjsfdlkj234234234234"
},
{
"name": "marketplaceId",
"description": "An identifier for the marketplace in which the resource operates.",
"in": "query",
"required": true,
"type": "string",
"x-example": "A1PA6795UKMFR9"
},
{
"name": "vehicleType",
"description": "An identifier for vehicle type.",
"in": "query",
"required": true,
"type": "string",
"enum": [
"CAR",
"MOTORBIKE"
],
"x-docgen-enum-table-extension": [
{
"description": "Selecting this will return the list of cars.",
"value": "CAR"
},
{
"description": "Selecting this will return the list of motorbikes/motorcycles.",
"value": "MOTORBIKE"
}
],
"x-example": "CAR"
},
{
"name": "updatedAfter",
"description": "Date in ISO 8601 format, if provided only vehicles which are modified/added to Amazon's catalog after this date will be returned.",
"in": "query",
"required": false,
"type": "string",
"x-example": "2024-01-05T18:00:03+00:00"
}
],
"responses": {
"200": {
"description": "Success.",
"headers": {
"x-amzn-RateLimit-Limit": {
"description": "Your rate limit (requests per second) for this operation.",
"type": "string"
},
"x-amzn-RequestId": {
"description": "Unique request reference identifier.",
"type": "string"
}
},
"examples": {
"application/json": {
"pagination" : {
"nextToken" : "xsdflkj324lkjsdlkj3423klkjsdfkljlk2j34klj2l3k4jlksdjl234",
"previousToken" : "mmkjsdflkj234lkjds234234lkjl234lksjdflkj234234lkjsfsdflkj333d"
},
"vehicles" : [
{
"make": "Chevrolet",
"model": "Aveo",
"variantName": "1.2",
"bodyStyle": "Schrägheck",
"driveType": "Frontantrieb",
"energy": "Benzin",
"engineOutput": [
{
"value": 51,
"unit": "KILOWATT"
},
{
"value": 69,
"unit": "HORSEPOWER"
}
],
"manufacturingStartDate": {
"year": 2011,
"month": 3
},
"manufacturingStopDate": {},
"lastProcessedDate": "2024-09-01T18:00:03+00:00",
"status": "DELETED",
"identifiers" : [
{
"standard": "KTYPE",
"value": "9997"
}
]
}
]
}
},
"x-amzn-api-sandbox": {
"static": [
{
"request": {
"parameters": {
"pageToken": {
"value": "urldwkj324lkjsdlkj3423klkjsdfkljlk2j34klj2l3k4jlksdjq130"
},
"marketplaceId": {
"value": "A1PA6795UKMFR9"
},
"vehicleType": {
"value": "MOTORBIKE"
},
"updatedAfter": {
"value": "2024-01-05T18:00:03+00:00"
}
}
},
"response": {
"pagination" : {
"nextToken" : "xsdflkj324lkjsdlkj3423klkjsdfkljlk2j34klj2l3k4jlksdjl234",
"previousToken" : "ilkjsdflkj234lkjds234234lkjl234lksjdflkj234234lkjsfsdflkj333d"
},
"vehicles" : [
{
"make": "Chevrolet",
"model": "Avalanche",
"variantName": "5.3 Flex-fuel",
"bodyStyle": "Pick-up",
"driveType": "Heckantrieb",
"energy": "Benzin/Ethanol",
"engineOutput": [
{
"value": 235,
"unit": "KILOWATT"
},
{
"value": 320,
"unit": "HORSEPOWER"
}
],
"manufacturingStartDate": {
"year": 2005,
"month": 6
},
"manufacturingStopDate": {
"year": 2007,
"month": 7
},
"lastProcessedDate": "2024-09-01T18:00:03+00:00",
"status": "ACTIVE",
"identifiers" : [
{
"standard": "KTYPE",
"value": "27566"
}
]
}
]
}
}
]
},
"schema": {
"$ref": "#/definitions/VehiclesResponse"
}
},
"400": {
"description": "Request has missing or invalid parameters and cannot be parsed.",
"headers": {
"x-amzn-RateLimit-Limit": {
"description": "Your rate limit (requests per second) for this operation.",
"type": "string"
},
"x-amzn-RequestId": {
"description": "Unique request reference identifier.",
"type": "string"
}
},
"x-amzn-api-sandbox": {
"static": [
{
"request": {
"parameters": {}
},
"response": {
"errors": [
{
"code": "BAD_REQUEST",
"message": "Invalid input",
"details": "Invalid input"
}
]
}
}
]
},
"schema": {
"$ref": "#/definitions/ErrorList"
}
},
"403": {
"description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.",
"headers": {
"x-amzn-RequestId": {
"description": "Unique request reference identifier.",
"type": "string"
}
},
"schema": {
"$ref": "#/definitions/ErrorList"
}
},
"404": {
"description": "The resource specified does not exist.",
"headers": {
"x-amzn-RateLimit-Limit": {
"description": "Your rate limit (requests per second) for this operation.",
"type": "string"
},
"x-amzn-RequestId": {
"description": "Unique request reference identifier.",
"type": "string"
}
},
"schema": {
"$ref": "#/definitions/ErrorList"
}
},
"413": {
"description": "The request size exceeded the maximum accepted size.",
"headers": {
"x-amzn-RequestId": {
"description": "Unique request reference identifier.",
"type": "string"
}
},
"schema": {
"$ref": "#/definitions/ErrorList"
}
},
"415": {
"description": "The request payload is in an unsupported format.",
"headers": {
"x-amzn-RequestId": {
"description": "Unique request reference identifier.",
"type": "string"
}
},
"schema": {
"$ref": "#/definitions/ErrorList"
}
},
"429": {
"description": "The frequency of requests was greater than allowed.",
"headers": {
"x-amzn-RequestId": {
"description": "Unique request reference identifier.",
"type": "string"
}
},
"schema": {
"$ref": "#/definitions/ErrorList"
}
},
"500": {
"description": "An unexpected condition occurred that prevented the server from fulfilling the request.",
"headers": {
"x-amzn-RequestId": {
"description": "Unique request reference identifier.",
"type": "string"
}
},
"schema": {
"$ref": "#/definitions/ErrorList"
}
},
"503": {
"description": "Temporary overloading or maintenance of the server.",
"headers": {
"x-amzn-RequestId": {
"description": "Unique request reference identifier.",
"type": "string"
}
},
"schema": {
"$ref": "#/definitions/ErrorList"
}
}
}
}
}
},
"definitions": {
"VehiclesResponse": {
"description": "Get paginated list of vehicle from Amazon's catalog",
"properties": {
"pagination": {
"description": "If available, the `nextToken` and/or `previousToken` values required to return paginated results.",
"$ref": "#/definitions/Pagination"
},
"vehicles": {
"description": "List of vehicles from Amazon's catalog.",
"type": "array",
"items": {
"$ref": "#/definitions/Vehicle"
}
}
},
"required": [
"vehicles"
],
"type": "object"
},
"Pagination": {
"type": "object",
"description": "When a request produces a response that exceeds the `pageSize`, pagination occurs. This means the response is divided into individual pages. To retrieve the next page or the previous page, you must pass the `nextToken` value or the `previousToken` value as the `pageToken` parameter in the next request. When you receive the last page, there will be no `nextToken` key in the pagination object.",
"properties": {
"nextToken": {
"description": "A token that can be used to fetch the next page.",
"type": "string"
},
"previousToken": {
"description": "A token that can be used to fetch the previous page.",
"type": "string"
}
}
},
"Vehicle": {
"type": "object",
"description": "Combinations of attributes and unique identifier that represents a vehicle in vehicle list.",
"properties": {
"make": {
"description": "Vehicle Brand.",
"type": "string"
},
"model": {
"description": "Specific model of a vehicle.",
"type": "string"
},
"variantName": {
"description": "Name of the vehicle variant.",
"type": "string"
},
"bodyStyle": {
"description": "Body style of vehicle (example: Hatchback, Cabriolet).",
"type": "string"
},
"driveType": {
"description": "Drive type of vehicle(example: Rear wheel drive).",
"type": "string"
},
"energy": {
"description": "Energy Source for the vehicle(example: Petrol)",
"type": "string"
},
"engineOutput": {
"description": "Engine output of vehicle.",
"type": "array",
"minItems": 1,
"items": {
"$ref": "#/definitions/EngineOutput"
}
},
"manufacturingStartDate": {
"description": "Vehicle manufacturing start date.",
"$ref": "#/definitions/MonthAndYear"
},
"manufacturingStopDate": {
"description": "Vehicle manufacturing stop date. If it is empty, then the vehicle is still being manufactured.",
"$ref": "#/definitions/MonthAndYear"
},
"lastProcessedDate": {
"description": "The date on which the vehicle was last updated, in ISO-8601 date/time format.",
"type": "string"
},
"status": {
"description": "Denotes if the vehicle is active or deleted from Amazon's catalog.",
"$ref": "#/definitions/VehicleStatusInCatalog"
},
"identifiers": {
"type": "array",
"minItems": 1,
"description": "Identifiers that can be used to identify the vehicle uniquely",
"items": {
"$ref": "#/definitions/VehicleIdentifiers"
}
}
},
"required": [
"make",
"model",
"identifiers"
]
},
"EngineOutput": {
"description": "Engine power output of vehicle.",
"properties": {
"value": {
"description": "Engine power value in specified unit.",
"type": "number"
},
"unit": {
"description": "Unit for measuring engine power.",
"$ref": "#/definitions/EngineOutputUnit"
}
},
"required": [
"value",
"unit"
],
"type": "object"
},
"VehicleIdentifiers": {
"description": "Combination of vehicle standard and id that can uniquely identify a vehicle from Amazon's catalog.",
"properties": {
"standard": {
"description": "Vehicle standard used to uniquely identify a vehicle.",
"$ref": "#/definitions/VehicleStandard"
},
"value": {
"description": "Id that can uniquely identify a vehicle based the vehicle identification standard.",
"type": "string"
}
},
"required": [
"standard",
"value"
],
"type": "object"
},
"VehicleStandard": {
"description": "Standard followed to uniquely identify a vehicle.",
"enum": [
"KTYPE",
"AMAZON_ID"
],
"type": "string",
"x-docgen-enum-table-extension": [
{
"description": "Unique vehicle identification standard as provided by TecDoc",
"value": "KTYPE"
},
{
"description": "Unique vehicle identification standard as provided by Amazon",
"value": "AMAZON_ID"
}
]
},
"EngineOutputUnit": {
"description": "Unit for measuring engine power.",
"enum": [
"KILOWATT",
"HORSEPOWER"
],
"type": "string",
"x-docgen-enum-table-extension": [
{
"value": "KILOWATT",
"description": "KILOWATT or kW is a unit used to measure engine power output."
},
{
"value": "HORSEPOWER",
"description": "HORSEPOWER or HP is a unit used to measure engine power output."
}
]
},
"ErrorList": {
"type": "object",
"description": "A list of error responses returned when a request is unsuccessful.",
"required": [
"errors"
],
"properties": {
"errors": {
"type": "array",
"description": "array of errors",
"items": {
"$ref": "#/definitions/Error"
}
}
}
},
"Error": {
"description": "Error response returned when the request is unsuccessful.",
"properties": {
"code": {
"description": "An error code that identifies the type of error that occurred.",
"type": "string"
},
"message": {
"description": "A message that describes the error condition.",
"type": "string"
},
"details": {
"description": "Additional details that can help the caller understand or fix the issue.",
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object"
},
"MonthAndYear" : {
"description": "Represents a month in a specific year.",
"type" : "object",
"properties" : {
"year" : {
"$ref" : "#/definitions/Year"
},
"month" : {
"$ref" : "#/definitions/Month"
}
}
},
"Year" : {
"description": "Year in YYYY format",
"type" : "number",
"example": 2004,
"pattern" : "^[0-9]{4}$"
},
"Month" : {
"description": "Month in MM format",
"type" : "number",
"example": 11,
"pattern" : "^(0?[1-9]|1[012])$"
},
"VehicleStatusInCatalog": {
"description": "Status of vehicle in Amazon's catalog.",
"enum": [
"ACTIVE",
"DELETED"
],
"type": "string",
"x-docgen-enum-table-extension": [
{
"description": "Vehicle is active in Amazon's catalog.",
"value": "ACTIVE"
},
{
"description": "Vehicle is deleted from Amazon's catalog.",
"value": "DELETED"
}
]
}
}
}