-
-
Notifications
You must be signed in to change notification settings - Fork 691
Expand file tree
/
Copy pathopenapi.yaml
More file actions
4862 lines (4862 loc) · 136 KB
/
openapi.yaml
File metadata and controls
4862 lines (4862 loc) · 136 KB
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
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.0.0
servers:
- url: https://api.reverb.com/api
x-hasEquivalentPaths: true
info:
contact:
email: [email protected]
name: Reverb API
url: https://www.reverb-api.com
description: reverb
license:
name: Apache 2.0
url: http://www.apache.org/licenses/LICENSE-2.0.html
termsOfService: https://reverb.com/page/terms
title: reverb
version: "3.0"
x-apisguru-categories:
- ecommerce
x-logo:
url: https://d1g5417jjjo7sf.cloudfront.net/assets/top-level/reverb-logo-d2c75af0b020521f0bc5e90c883a13b5.svg
x-origin:
- format: openapi
url: https://s3.amazonaws.com/swagger.reverb.com/swagger.json
version: "3.0"
x-providerName: reverb.com
externalDocs:
url: https://dev.reverb.com/
paths:
/articles:
get:
parameters:
- in: query
name: page
required: false
schema:
default: 1
type: integer
- in: query
name: per_page
required: false
schema:
default: 24
type: integer
- in: query
name: offset
required: false
schema:
type: integer
- description: What's being searched for
in: query
name: query
required: false
schema:
type: string
- description: Number of featured articles to exclude
in: query
name: exclude_featured
required: false
schema:
type: integer
responses:
default:
description: Unexpected error
tags:
- articles
/articles/categories:
get:
description: List of all article categories
responses:
default:
description: Unexpected error
summary: List of all article categories
tags:
- articles
/categories:
get:
description: List of supported product categories
responses:
default:
description: Unexpected error
summary: List of supported product categories
tags:
- categories
/categories/flat:
get:
responses:
default:
description: Unexpected error
tags:
- categories
/categories/taxonomy:
get:
description: Full taxonomy tree of categories including middle categories
responses:
default:
description: Unexpected error
summary: Full taxonomy tree of categories including middle categories
tags:
- categories
"/categories/{product_type}/{category}":
get:
description: Get subcategory details
parameters:
- in: path
name: product_type
required: true
schema:
type: string
- in: path
name: category
required: true
schema:
type: string
responses:
default:
description: Unexpected error
summary: Get subcategory details
tags:
- categories
"/categories/{uuid}":
get:
description: Get category details
parameters:
- in: path
name: uuid
required: true
schema:
type: string
responses:
default:
description: Unexpected error
summary: Get category details
tags:
- categories
/comparison_shopping_pages:
get:
description: Returns a set of comparison shopping pages based on the current params
responses:
default:
description: Unexpected error
summary: Returns a set of comparison shopping pages based on the current params
tags:
- comparison_shopping_pages
/comparison_shopping_pages/find:
get:
description: Show comparison shopping page
parameters:
- description: ID of the comparison shopping page
in: query
name: id
required: false
schema:
type: string
- description: Slug of the comparison shopping page
in: query
name: slug
required: false
schema:
type: string
responses:
default:
description: Unexpected error
summary: Show comparison shopping page
tags:
- comparison_shopping_pages
"/comparison_shopping_pages/{id}":
get:
parameters:
- in: path
name: id
required: true
schema:
type: string
responses:
default:
description: Unexpected error
tags:
- comparison_shopping_pages
"/comparison_shopping_pages/{id}/listings":
get:
description: Return new or used listings for a comparison shopping page
parameters:
- in: path
name: id
required: true
schema:
type: string
- description: Condition of the listing
in: query
name: condition
required: true
schema:
type: string
- in: query
name: page
required: false
schema:
default: 1
type: integer
- in: query
name: per_page
required: false
schema:
default: 24
type: integer
- in: query
name: offset
required: false
schema:
type: integer
responses:
default:
description: Unexpected error
summary: Return new or used listings for a comparison shopping page
tags:
- comparison_shopping_pages
"/comparison_shopping_pages/{id}/reviews":
get:
description: View reviews of a comparison shopping page
parameters:
- in: path
name: id
required: true
schema:
type: string
responses:
default:
description: Unexpected error
summary: View reviews of a comparison shopping page
tags:
- comparison_shopping_pages
"/conversations/{conversation_id}/offer":
post:
description: Make an offer to the other participant in the conversation
parameters:
- in: path
name: conversation_id
required: true
schema:
type: string
requestBody:
$ref: "#/components/requestBodies/Body"
responses:
default:
description: Unexpected error
security:
- oauth2:
- write_offers
summary: Make an offer to the other participant in the conversation
tags:
- conversations
"/conversations/{id}/offer":
post:
description: Make an offer to the other participant in the conversation
parameters:
- in: path
name: id
required: true
schema:
type: string
requestBody:
$ref: "#/components/requestBodies/Body3"
responses:
default:
description: Unexpected error
security:
- oauth2:
- write_offers
summary: Make an offer to the other participant in the conversation
tags:
- conversations
/countries:
get:
description: Retrieve a list of country codes with corresponding subregions
responses:
default:
description: Unexpected error
summary: Retrieve a list of country codes with corresponding subregions
tags:
- countries
/csps:
get:
description: Returns a set of comparison shopping pages based on the current params
responses:
default:
description: Unexpected error
summary: Returns a set of comparison shopping pages based on the current params
tags:
- csps
/csps/categories:
get:
responses:
default:
description: Unexpected error
tags:
- csps
/csps/find:
get:
description: Show comparison shopping page
parameters:
- description: ID of the comparison shopping page
in: query
name: id
required: false
schema:
type: string
- description: Slug of the comparison shopping page
in: query
name: slug
required: false
schema:
type: string
responses:
default:
description: Unexpected error
summary: Show comparison shopping page
tags:
- csps
"/csps/{id}":
get:
parameters:
- in: path
name: id
required: true
schema:
type: string
responses:
default:
description: Unexpected error
tags:
- csps
"/curated_sets/{slug}":
get:
parameters:
- in: path
name: slug
required: true
schema:
type: string
responses:
default:
description: Unexpected error
tags:
- curated_sets
/currencies/display:
get:
description: List of supported display currencies for browsing listings
responses:
default:
description: Unexpected error
summary: List of supported display currencies for browsing listings
tags:
- currencies
/currencies/listing:
get:
description: List of supported listing currencies for shops
responses:
default:
description: Unexpected error
summary: List of supported listing currencies for shops
tags:
- currencies
"/feedback/{feedback_id}":
get:
description: Feedback details
parameters:
- in: path
name: feedback_id
required: true
schema:
type: string
responses:
default:
description: Unexpected error
summary: Feedback details
tags:
- feedback
"/handpicked/{slug}":
get:
description: Get results from a handpicked collection
parameters:
- in: path
name: slug
required: true
schema:
type: string
- description: Search query.
in: query
name: query
required: false
schema:
type: string
- description: Maximum current auction price
in: query
name: auction_price_max
required: false
schema:
format: float
type: number
- description: Category slug from /api/categories
in: query
name: category
required: false
schema:
type: string
- description: Product type slug from /api/categories
in: query
name: product_type
required: false
schema:
type: string
- description: "Condition: all,new,b-stock,used,non-functioning,all-but-new,poor,fair,good,very-good,excellent,mint"
explode: false
in: query
name: conditions
required: false
schema:
items:
type: string
type: array
style: form
- description: "Decade: e.g. 1970s, early 70s"
in: query
name: decade
required: false
schema:
type: string
- description: Visual finish of the item, common for guitars
in: query
name: finish
required: false
schema:
type: string
- description: Handmade items only
in: query
name: handmade
required: false
schema:
type: boolean
- description: City where item is located
in: query
name: item_city
required: false
schema:
type: string
- description: DEPRECATED - Country code where item is located
in: query
name: item_country
required: false
schema:
type: string
- description: Country code where item is located
in: query
name: item_region
required: false
schema:
type: string
- description: State or region code where item is located
in: query
name: item_state
required: false
schema:
type: string
- description: Make(s)/brand of item (e.g. Fender). Can take a single value or an array.
explode: false
in: query
name: make
required: false
schema:
items:
type: string
type: array
style: form
- description: Model of item (e.g. Stratocaster)
in: query
name: model
required: false
schema:
type: string
- description: Search term negation. If you want to exclude a term, add it here
in: query
name: must_not
required: false
schema:
type: string
- description: Maximum price of search results (USD)
in: query
name: price_max
required: false
schema:
format: float
type: number
- description: Minimum price of search results (USD)
in: query
name: price_min
required: false
schema:
format: float
type: number
- description: The currency to be used for the price filters
in: query
name: currency
required: false
schema:
type: string
- description: Maximum year of manufacture
in: query
name: year_max
required: false
schema:
type: integer
- description: Minumum year of manufacture
in: query
name: year_min
required: false
schema:
type: integer
- description: If true, include only items that accept gift cards
in: query
name: accepts_gift_cards
required: false
schema:
type: boolean
- description: If true, include only items by Reverb Preferred Sellers
in: query
name: preferred_seller
required: false
schema:
type: boolean
- description: Slug of shop to search
in: query
name: shop
required: false
schema:
type: string
- description: ID of shop to search
in: query
name: shop_id
required: false
schema:
type: string
- description: "Type of listing: auctions,offers"
in: query
name: listing_type
required: false
schema:
type: string
- description: Limit search to items that ship to this country code
in: query
name: ships_to
required: false
schema:
type: string
- description: If true, exclude auctions
in: query
name: exclude_auctions
required: false
schema:
type: boolean
- description: If true, only show items that can be purchased with a payment plan
in: query
name: accepts_payment_plans
required: false
schema:
type: boolean
- description: Minimum number of watchers (used to find popular items)
in: query
name: watchers_count_min
required: false
schema:
type: integer
- description: Listing ID negation. If you want to exclude a listing, add it here.
explode: false
in: query
name: not_ids
required: false
schema:
items:
type: string
type: array
style: form
- description: Only items that offer local pickup
in: query
name: local_pickup
required: false
schema:
type: boolean
- in: query
name: page
required: false
schema:
default: 1
type: integer
- in: query
name: per_page
required: false
schema:
default: 24
type: integer
- in: query
name: offset
required: false
schema:
type: integer
responses:
default:
description: Unexpected error
summary: Get results from a handpicked collection
tags:
- handpicked
/listing_conditions:
get:
description: List of supported product conditions
responses:
default:
description: Unexpected error
summary: List of supported product conditions
tags:
- listing_conditions
/listings:
get:
description: Default search of listings includes only used & handmade. Add a filter to view all listings or use the /listings/all endpoint.
parameters:
- description: Search query.
in: query
name: query
required: false
schema:
type: string
- description: Maximum current auction price
in: query
name: auction_price_max
required: false
schema:
format: float
type: number
- description: Category slug from /api/categories
in: query
name: category
required: false
schema:
type: string
- description: Product type slug from /api/categories
in: query
name: product_type
required: false
schema:
type: string
- description: "Condition: all,new,b-stock,used,non-functioning,all-but-new,poor,fair,good,very-good,excellent,mint"
explode: false
in: query
name: conditions
required: false
schema:
items:
type: string
type: array
style: form
- description: "Decade: e.g. 1970s, early 70s"
in: query
name: decade
required: false
schema:
type: string
- description: Visual finish of the item, common for guitars
in: query
name: finish
required: false
schema:
type: string
- description: Handmade items only
in: query
name: handmade
required: false
schema:
type: boolean
- description: City where item is located
in: query
name: item_city
required: false
schema:
type: string
- description: DEPRECATED - Country code where item is located
in: query
name: item_country
required: false
schema:
type: string
- description: Country code where item is located
in: query
name: item_region
required: false
schema:
type: string
- description: State or region code where item is located
in: query
name: item_state
required: false
schema:
type: string
- description: Make(s)/brand of item (e.g. Fender). Can take a single value or an array.
explode: false
in: query
name: make
required: false
schema:
items:
type: string
type: array
style: form
- description: Model of item (e.g. Stratocaster)
in: query
name: model
required: false
schema:
type: string
- description: Search term negation. If you want to exclude a term, add it here
in: query
name: must_not
required: false
schema:
type: string
- description: Maximum price of search results (USD)
in: query
name: price_max
required: false
schema:
format: float
type: number
- description: Minimum price of search results (USD)
in: query
name: price_min
required: false
schema:
format: float
type: number
- description: The currency to be used for the price filters
in: query
name: currency
required: false
schema:
type: string
- description: Maximum year of manufacture
in: query
name: year_max
required: false
schema:
type: integer
- description: Minumum year of manufacture
in: query
name: year_min
required: false
schema:
type: integer
- description: If true, include only items that accept gift cards
in: query
name: accepts_gift_cards
required: false
schema:
type: boolean
- description: If true, include only items by Reverb Preferred Sellers
in: query
name: preferred_seller
required: false
schema:
type: boolean
- description: Slug of shop to search
in: query
name: shop
required: false
schema:
type: string
- description: ID of shop to search
in: query
name: shop_id
required: false
schema:
type: string
- description: "Type of listing: auctions,offers"
in: query
name: listing_type
required: false
schema:
type: string
- description: Limit search to items that ship to this country code
in: query
name: ships_to
required: false
schema:
type: string
- description: If true, exclude auctions
in: query
name: exclude_auctions
required: false
schema:
type: boolean
- description: If true, only show items that can be purchased with a payment plan
in: query
name: accepts_payment_plans
required: false
schema:
type: boolean
- description: Minimum number of watchers (used to find popular items)
in: query
name: watchers_count_min
required: false
schema:
type: integer
- description: Listing ID negation. If you want to exclude a listing, add it here.
explode: false
in: query
name: not_ids
required: false
schema:
items:
type: string
type: array
style: form
- description: Only items that offer local pickup
in: query
name: local_pickup
required: false
schema:
type: boolean
- in: query
name: page
required: false
schema:
default: 1
type: integer
- in: query
name: per_page
required: false
schema:
default: 24
type: integer
- in: query
name: offset
required: false
schema:
type: integer
responses:
default:
description: Unexpected error
summary: Default search of listings includes only used & handmade. Add a filter to view all listings or use the /listings/all endpoint.
tags:
- listings
post:
description: Create a listing
requestBody:
content:
application/json:
schema:
properties:
categories:
items:
properties:
uuid:
description: UUID of the category for this listing.
type: string
type: object
type: array
condition:
description: Condition
properties:
uuid:
description: Condition UUID
enum:
- fbf35668-96a0-4baa-bcde-ab18d6b1b329
- 6a9dfcad-600b-46c8-9e08-ce6e5057921e
- 98777886-76d0-44c8-865e-bb40e669e934
- f7a3f48c-972a-44c6-b01a-0cd27488d3f6
- ae4d9114-1bd7-4ec5-a4ba-6653af5ac84d
- df268ad1-c462-4ba6-b6db-e007e23922ea
- ac5b9c1e-dc78-466d-b0b3-7cf712967a48
- 6db7df88-293b-4017-a1c1-cdb5e599fa1a
- 9225283f-60c2-4413-ad18-1f5eba7a856f
- 7c3f45de-2ae0-4c81-8400-fdb6b1d74890
type: string
required:
- uuid
type: object
description:
description: Product description. Please keep formatting to a minimum.
type: string
exclusive_channel:
description: Currently for users of seller sites only, this allows you to have a listing available only to your seller site by setting this to 'seller_site'
enum:
- seller_site
- reverb
- none
type: string
finish:
description: Finish, e.g. 'Sunburst'
type: string
has_inventory:
description: Set true if selling more than one
type: boolean
inventory:
description: Number of items available for sale. Reverb will increment and decrement automatically.
type: integer
location:
properties:
country_code:
description: "Ex: US"
type: string
locality:
description: "Ex: Chicago"
type: string
region:
description: "Ex: IL"
type: string
type: object
make:
description: "ex: Fender, Gibson"
type: string
model:
description: "ex: Stratocaster, SG"
type: string
multi_item:
description: Specifies if the listing is a bundle of multiple individual items
type: boolean
offers_enabled:
description: "Whether the listing accepts negotiated offers (default: true)"
type: boolean
origin_country_code:
description: "Country of origin/manufacture, ISO code (e.g: US)"
type: string
photos:
description: "An array of image URLs. Ex: ['http://my.site.com/image.jpg']"
items:
type: string
type: array
preorder_info:
description: Create or update a preorder listing. Requires opt-in. Please contact [email protected] if you would like to activate this feature.
properties:
lead_time:
description: The amount of time before the item will be ready to ship. When lead_time is submitted it is converted into days and added to the current date to produce `estimated_ship_date` in the response body of the request.
type: integer
lead_time_unit:
description: The unit of time which lead_time is measured in
enum:
- days
- weeks
type: string
ship_date:
description: "The date the item will be available to ship. In the response body of the request, `estimated_ship_date`, will be the same as ship_date. Date must be ISO8601 format - e.g: 2015-04-09T10:52:23-00:00."
type: string
required:
- lead_time_unit
type: object
price:
properties:
amount:
description: The amount of money being expressed, as a POSIX-compliant decimal number
type: string
currency:
description: The currency the money will be expressed in
enum:
- USD
- CAD
- EUR
- GBP
- AUD
- JPY
- NZD
- MXN
type: string
required:
- amount
- currency
type: object
prop_65_warning:
description: If your listing contains chemicals that are required to be reported under California Prop 65, please provide your warning statement. We will add the required 'Warning' label and link to California's information page, so you only need to provide the body of the warning. For more information, see https://www.p65warnings.ca.gov/new-proposition-65-warnings
type: string
publish:
description: Publish your listing if draft
type: boolean
seller:
properties:
paypal_email:
type: string
type: object
seller_cost:
description: Cost of goods in your currency as a POSIX-compliant decimal number (internal use only, not shown to buyers)
type: string
shipping:
properties:
local:
description: True if you offer local pickup
type: boolean
rates:
description: List of shipping rates. Set to null to clear rates.
items:
properties:
rate:
properties:
amount:
description: The amount of money being expressed, as a POSIX-compliant decimal number
type: string