-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathDiscogs.postman_collection-v2.0.json
2483 lines (2483 loc) · 77.8 KB
/
Discogs.postman_collection-v2.0.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
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
{
"info": {
"_postman_id": "7d9408a6-a04b-49aa-94b0-bfe85218b9d7",
"name": "Discogs",
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
},
"item": [
{
"name": "Authentication",
"item": [
{
"name": "Request Token",
"event": [
{
"listen": "test",
"script": {
"id": "5e6c9eeb-a6e7-4edc-9e15-ef801f3c5cbf",
"exec": [
"var querystring = require('querystring')",
"",
"pm.test(\"oauth_token and oauth_token_secret are set as enviroment variables\", function () {",
" var data = querystring.parse(pm.response.text());",
" pm.environment.set(\"oauth_token\", data.oauth_token);",
" pm.environment.set(\"oauth_token_secret\", data.oauth_token_secret);",
"});",
"",
"pm.test(\"To get the oauth_verifier open this url in your browser https://discogs.com/oauth/authorize?oauth_token=\" + pm.environment.get(\"oauth_token\"))"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "noauth"
},
"method": "GET",
"header": [
{
"warning": "This is a duplicate header and will be overridden by the Authorization header generated by Postman.",
"key": "Authorization",
"value": "OAuth oauth_consumer_key=\"{{consumer_key}}\",oauth_signature_method=\"PLAINTEXT\",oauth_timestamp=\"{{$timestamp}}\",oauth_nonce=\"{{$guid}}\",oauth_version=\"1.0\",oauth_signature=\"{{consumer_secret}}&\", oauth_callback=\"your_callback\"",
"type": "text"
},
{
"key": "Content-Type",
"value": "application/x-www-form-urlencoded",
"type": "text"
},
{
"key": "User-Agent",
"value": "{{user_agent}}",
"type": "text"
}
],
"url": "{{url}}/oauth/request_token",
"description": "Generate the request token.\n\n[https://www.discogs.com/developers/#page:authentication,header:authentication-request-token-url](https://www.discogs.com/developers/#page:authentication,header:authentication-request-token-url)"
},
"response": []
},
{
"name": "Access Token",
"event": [
{
"listen": "test",
"script": {
"id": "5e6c9eeb-a6e7-4edc-9e15-ef801f3c5cbf",
"exec": [
"var querystring = require('querystring')",
"",
"pm.test(\"oauth_token and oauth_token_secret are set as enviroment variables\", function () {",
" var data = querystring.parse(pm.response.text());",
" pm.environment.set(\"oauth_token\", data.oauth_token);",
" pm.environment.set(\"oauth_token_secret\", data.oauth_token_secret);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "noauth"
},
"method": "POST",
"header": [
{
"warning": "This is a duplicate header and will be overridden by the Authorization header generated by Postman.",
"key": "Authorization",
"value": "OAuth oauth_consumer_key=\"{{consumer_key}}\", oauth_nonce=\"{{$guid}}\", oauth_token=\"{{oauth_token}}\", oauth_signature=\"{{consumer_secret}}&{{oauth_token_secret}}\", oauth_signature_method=\"PLAINTEXT\", oauth_timestamp=\"{{$timestamp}}\", oauth_verifier=\"{{oauth_verifier}}\"",
"type": "text"
},
{
"key": "Content-Type",
"value": "application/x-www-form-urlencoded",
"type": "text"
},
{
"key": "User-Agent",
"value": "{{user_agent}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": "{{url}}/oauth/access_token",
"description": "Generate the access token.\n\n[https://www.discogs.com/developers/#page:authentication,header:authentication-access-token-url](https://www.discogs.com/developers/#page:authentication,header:authentication-access-token-url)"
},
"response": []
}
],
"description": "Visit [https://www.discogs.com/developers/#page:authentication](https://www.discogs.com/developers/#page:authentication) for full documentation.",
"event": [
{
"listen": "prerequest",
"script": {
"id": "6c3c9cc4-cdc1-4355-8b48-a37663f1ab74",
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"id": "719b1629-28b7-48bf-a7be-650de3bea15c",
"type": "text/javascript",
"exec": [
""
]
}
}
],
"protocolProfileBehavior": {}
},
{
"name": "Database",
"item": [
{
"name": "Releases",
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/x-www-form-urlencoded",
"type": "text"
},
{
"key": "User-Agent",
"value": "{{user_agent}}",
"type": "text"
}
],
"url": {
"raw": "{{url}}/releases/{release_id}?{curr_abbr}",
"host": [
"{{url}}"
],
"path": [
"releases",
"{release_id}"
],
"query": [
{
"key": "{curr_abbr}",
"value": null
}
]
},
"description": "The Release resource represents a particular physical or digital object released by one or more Artists.\n\n[https://www.discogs.com/developers/#page:database,header:database-release](https://www.discogs.com/developers/#page:database,header:database-release)"
},
"response": []
},
{
"name": "Release rating by user",
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/x-www-form-urlencoded",
"type": "text"
},
{
"key": "User-Agent",
"value": "{{user_agent}}",
"type": "text"
}
],
"url": "{{url}}/releases/{release_id}/rating/{username}",
"description": "Retrieves the release’s rating for a given user.\n\n[https://www.discogs.com/developers/#page:database,header:database-release-rating-by-user](https://www.discogs.com/developers/#page:database,header:database-release-rating-by-user)"
},
"response": []
},
{
"name": "Release rating by user",
"request": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
},
{
"key": "User-Agent",
"type": "text",
"value": "{{user_agent}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": "{{url}}/releases/{release_id}/rating/{{username}}",
"description": "Updates the release’s rating for a given user. Authentication as the user is required. \n\nThe \"rating\" parameter must be sent inside a JSON object inside the request body.\n\n[https://www.discogs.com/developers/#page:database,header:database-release-rating-by-user](https://www.discogs.com/developers/#page:database,header:database-release-rating-by-user)"
},
"response": []
},
{
"name": "Release rating by user",
"request": {
"method": "DELETE",
"header": [
{
"key": "Content-Type",
"value": "application/x-www-form-urlencoded",
"type": "text"
},
{
"key": "User-Agent",
"value": "{{user_agent}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": "{{url}}/releases/{release_id}/rating/{{username}}",
"description": "Deletes the release’s rating for a given user. Authentication as the user is required.\n\n[https://www.discogs.com/developers/#page:database,header:database-release-rating-by-user](https://www.discogs.com/developers/#page:database,header:database-release-rating-by-user)"
},
"response": []
},
{
"name": "Community release rating",
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/x-www-form-urlencoded"
},
{
"key": "User-Agent",
"type": "text",
"value": "{{user_agent}}"
}
],
"url": "{{url}}/releases/{release_id}/rating",
"description": "The Community Release Rating endpoint retrieves the average rating and the total number of user ratings for a given release.\n\n[https://www.discogs.com/developers/#page:database,header:database-community-release-rating](https://www.discogs.com/developers/#page:database,header:database-community-release-rating)"
},
"response": []
},
{
"name": "Master release",
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/x-www-form-urlencoded"
},
{
"key": "User-Agent",
"type": "text",
"value": "{{user_agent}}"
}
],
"url": "{{url}}/masters/{master_id}",
"description": "The Master resource represents a set of similar Releases. Masters (also known as “master releases”) have a “main release” which is often the chronologically earliest.\n\n[https://www.discogs.com/developers/#page:database,header:database-master-release](https://www.discogs.com/developers/#page:database,header:database-master-release)"
},
"response": []
},
{
"name": "Master release versions",
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/x-www-form-urlencoded"
},
{
"key": "User-Agent",
"type": "text",
"value": "{{user_agent}}"
}
],
"url": {
"raw": "{{url}}/masters/{master_id}/versions?page={page}&per_page={per_page}",
"host": [
"{{url}}"
],
"path": [
"masters",
"{master_id}",
"versions"
],
"query": [
{
"key": "page",
"value": "{page}"
},
{
"key": "per_page",
"value": "{per_page}"
}
]
},
"description": "Retrieves a list of all Releases that are versions of this master. Accepts Pagination parameters.\n\n[https://www.discogs.com/developers/#page:database,header:database-master-release-versions](https://www.discogs.com/developers/#page:database,header:database-master-release-versions)"
},
"response": []
},
{
"name": "Artist",
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/x-www-form-urlencoded"
},
{
"key": "User-Agent",
"type": "text",
"value": "{{user_agent}}"
}
],
"url": "{{url}}/artists/{artist_id}",
"description": "Get an artist\n\n[https://www.discogs.com/developers/#page:database,header:database-artist](https://www.discogs.com/developers/#page:database,header:database-artist)"
},
"response": []
},
{
"name": "Artist releases",
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/x-www-form-urlencoded"
},
{
"key": "User-Agent",
"type": "text",
"value": "{{user_agent}}"
}
],
"url": {
"raw": "{{url}}/artists/{artist_id}/releases?sort={sort}&sort_order={sort_order}",
"host": [
"{{url}}"
],
"path": [
"artists",
"{artist_id}",
"releases"
],
"query": [
{
"key": "sort",
"value": "{sort}"
},
{
"key": "sort_order",
"value": "{sort_order}"
}
]
},
"description": "Returns a list of Releases and Masters associated with the Artist. Accepts Pagination.\n\n[https://www.discogs.com/developers/#page:database,header:database-artist-releases](https://www.discogs.com/developers/#page:database,header:database-artist-releases)"
},
"response": []
},
{
"name": "Label",
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/x-www-form-urlencoded"
},
{
"key": "User-Agent",
"type": "text",
"value": "{{user_agent}}"
}
],
"url": "{{url}}/labels/{label_id}",
"description": "Get a label\n\n[https://www.discogs.com/developers/#page:database,header:database-label](https://www.discogs.com/developers/#page:database,header:database-label)"
},
"response": []
},
{
"name": "All label releases",
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/x-www-form-urlencoded"
},
{
"key": "User-Agent",
"type": "text",
"value": "{{user_agent}}"
}
],
"url": {
"raw": "{{url}}/labels/{label_id}/releases?page={page}&per_page={per_page}",
"host": [
"{{url}}"
],
"path": [
"labels",
"{label_id}",
"releases"
],
"query": [
{
"key": "page",
"value": "{page}"
},
{
"key": "per_page",
"value": "{per_page}"
}
]
},
"description": "Returns a list of Releases associated with the label. Accepts Pagination parameters.\n\n[https://www.discogs.com/developers/#page:database,header:database-all-label-releases](https://www.discogs.com/developers/#page:database,header:database-all-label-releases)"
},
"response": []
},
{
"name": "Search",
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/x-www-form-urlencoded"
},
{
"key": "User-Agent",
"type": "text",
"value": "{{user_agent}}"
}
],
"url": {
"raw": "{{url}}/database/search?query={page}&type={type}",
"host": [
"{{url}}"
],
"path": [
"database",
"search"
],
"query": [
{
"key": "query",
"value": "{page}"
},
{
"key": "type",
"value": "{type}"
}
]
},
"description": "Issue a search query to our database. This endpoint accepts pagination parameters. Authentication (as any user) is required.\n\n[https://www.discogs.com/developers/#page:database,header:database-search](https://www.discogs.com/developers/#page:database,header:database-search)"
},
"response": []
}
],
"description": "Visit [https://www.discogs.com/developers/#page:database](https://www.discogs.com/developers/#page:database) for full documentation.",
"event": [
{
"listen": "prerequest",
"script": {
"id": "af7ce01b-7da1-4935-86c3-1cc7940883c0",
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"id": "a58e171e-e71c-4c65-b870-e69f90750af5",
"type": "text/javascript",
"exec": [
""
]
}
}
],
"protocolProfileBehavior": {}
},
{
"name": "Marketplace",
"item": [
{
"name": "Inventory",
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/x-www-form-urlencoded"
},
{
"key": "User-Agent",
"type": "text",
"value": "{{user_agent}}"
}
],
"url": {
"raw": "{{url}}/users/{{username}}/inventory?string={status}&sort={sort}&sort_order={sort_order}",
"host": [
"{{url}}"
],
"path": [
"users",
"{{username}}",
"inventory"
],
"query": [
{
"key": "string",
"value": "{status}"
},
{
"key": "sort",
"value": "{sort}"
},
{
"key": "sort_order",
"value": "{sort_order}"
}
]
},
"description": "Returns the list of listings in a user’s inventory. Accepts Pagination parameters.\nBasic information about each listing and the corresponding release is provided, suitable for display in a list. For detailed information about the release, make another API call to fetch the corresponding Release.\n\nIf you are not authenticated as the inventory owner, only items that have a status of For Sale will be visible.\nIf you are authenticated as the inventory owner you will get additional weight, format_quantity, external_id, and location keys.\nIf the user is authorized, the listing will contain a in_cart boolean field indicating whether or not this listing is in their cart.\n\n[https://www.discogs.com/developers/#page:marketplace,header:marketplace-inventory](https://www.discogs.com/developers/#page:marketplace,header:marketplace-inventory)"
},
"response": []
},
{
"name": "Listing",
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/x-www-form-urlencoded"
},
{
"key": "User-Agent",
"type": "text",
"value": "{{user_agent}}"
}
],
"url": {
"raw": "{{url}}/marketplace/listings/{listing_id}?curr_abbr={curr_abbr}",
"host": [
"{{url}}"
],
"path": [
"marketplace",
"listings",
"{listing_id}"
],
"query": [
{
"key": "curr_abbr",
"value": "{curr_abbr}"
}
]
},
"description": "View the data associated with a listing.\nIf the authorized user is the listing owner the listing will include the weight, format_quantity, external_id, and location keys. If the user is authorized, the listing will contain a in_cart boolean field indicating whether or not this listing is in their cart.\n\n[https://www.discogs.com/developers/#page:marketplace,header:marketplace-listing](https://www.discogs.com/developers/#page:marketplace,header:marketplace-listing)"
},
"response": []
},
{
"name": "Listing",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/x-www-form-urlencoded"
},
{
"key": "User-Agent",
"type": "text",
"value": "{{user_agent}}"
}
],
"url": {
"raw": "{{url}}/marketplace/listings/{listing_id}?release_id={release_id}&condition={condition}&sleeve_condition={sleeve_condition}&price={price}&comments={comments}&allow_offers={allow_offers}&status={status}&external_id={external_id}&location={location}&weight={weight}&format_quantity={format_quantity}",
"host": [
"{{url}}"
],
"path": [
"marketplace",
"listings",
"{listing_id}"
],
"query": [
{
"key": "release_id",
"value": "{release_id}",
"description": "The ID of the listing you are fetching\n"
},
{
"key": "condition",
"value": "{condition}",
"description": "The condition of the release you are posting. Must be one of the following: \n• Mint (M)\n• Near Mint (NM or M-)\n• Very Good Plus (VG+)\n• Very Good (VG)\n• Good Plus (G+)\n• Good (G)\n• Fair (F)\n• Poor (P)"
},
{
"key": "sleeve_condition",
"value": "{sleeve_condition}",
"description": "The condition of the sleeve of the item you are posting. Must be one of the following: \n• Mint (M)\n• Near Mint (NM or M-)\n• Very Good Plus (VG+)\n• Very Good (VG)\n• Good Plus (G+)\n• Good (G)\n• Fair (F)\n• Poor (P)\n• Generic Not Graded No Cover"
},
{
"key": "price",
"value": "{price}",
"description": "The price of the item (in the seller’s currency)."
},
{
"key": "comments",
"value": "{comments}",
"description": "Any remarks about the item that will be displayed to buyers."
},
{
"key": "allow_offers",
"value": "{allow_offers}",
"description": "Whether or not to allow buyers to make offers on the item. Defaults to false."
},
{
"key": "status",
"value": "{status}",
"description": "The status of the listing. Defaults to For Sale. Options are For Sale (the listing is ready to be shown on the Marketplace) and Draft (the listing is not ready for public display)."
},
{
"key": "external_id",
"value": "{external_id}",
"description": "A freeform field that can be used for the seller’s own reference. Information stored here will not be displayed to anyone other than the seller. This field is called “Private Comments” on the Discogs website."
},
{
"key": "location",
"value": "{location}",
"description": "A freeform field that is intended to help identify an item’s physical storage location. Information stored here will not be displayed to anyone other than the seller. This field will be visible on the inventory management page and will be available in inventory exports via the website."
},
{
"key": "weight",
"value": "{weight}",
"description": "The weight, in grams, of this listing, for the purpose of calculating shipping. Set this field to auto to have the weight automatically estimated for you."
},
{
"key": "format_quantity",
"value": "{format_quantity}",
"description": "The number of items this listing counts as, for the purpose of calculating shipping. This field is called “Counts As” on the Discogs website. Set this field to auto to have the quantity automatically estimated for you."
}
]
},
"description": "Edit the data associated with a listing.\n\nIf the listing’s status is not For Sale, Draft, or Expired, it cannot be modified – only deleted. To re-list a Sold listing, a new listing must be created.\n\nAuthentication as the listing owner is required.\n\n[https://www.discogs.com/developers/#page:marketplace,header:marketplace-listing](https://www.discogs.com/developers/#page:marketplace,header:marketplace-listing)"
},
"response": []
},
{
"name": "Listing",
"request": {
"method": "DELETE",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/x-www-form-urlencoded"
},
{
"key": "User-Agent",
"type": "text",
"value": "{{user_agent}}"
}
],
"url": {
"raw": "{{url}}/marketplace/listings/{listing_id}?curr_abbr={curr_abbr}",
"host": [
"{{url}}"
],
"path": [
"marketplace",
"listings",
"{listing_id}"
],
"query": [
{
"key": "curr_abbr",
"value": "{curr_abbr}"
}
]
},
"description": "Permanently remove a listing from the Marketplace. Authentication as the listing owner is required.\n\n[https://www.discogs.com/developers/#page:marketplace,header:marketplace-listing](https://www.discogs.com/developers/#page:marketplace,header:marketplace-listing)"
},
"response": []
},
{
"name": "New listing",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/x-www-form-urlencoded"
},
{
"key": "User-Agent",
"type": "text",
"value": "{{user_agent}}"
}
],
"url": {
"raw": "{{url}}/marketplace/listings?release_id={release_id}&condition={condition}&sleeve_condition={sleeve_condition}&price={price}&comments={comments}&allow_offers={allow_offers}&status={status}&external_id={external_id}&location={location}&weight={weight}&format_quantity={format_quantity}",
"host": [
"{{url}}"
],
"path": [
"marketplace",
"listings"
],
"query": [
{
"key": "release_id",
"value": "{release_id}",
"description": "The ID of the listing you are fetching\n"
},
{
"key": "condition",
"value": "{condition}",
"description": "The condition of the release you are posting. Must be one of the following: \n• Mint (M)\n• Near Mint (NM or M-)\n• Very Good Plus (VG+)\n• Very Good (VG)\n• Good Plus (G+)\n• Good (G)\n• Fair (F)\n• Poor (P)"
},
{
"key": "sleeve_condition",
"value": "{sleeve_condition}",
"description": "The condition of the sleeve of the item you are posting. Must be one of the following: \n• Mint (M)\n• Near Mint (NM or M-)\n• Very Good Plus (VG+)\n• Very Good (VG)\n• Good Plus (G+)\n• Good (G)\n• Fair (F)\n• Poor (P)\n• Generic Not Graded No Cover"
},
{
"key": "price",
"value": "{price}",
"description": "The price of the item (in the seller’s currency)."
},
{
"key": "comments",
"value": "{comments}",
"description": "Any remarks about the item that will be displayed to buyers."
},
{
"key": "allow_offers",
"value": "{allow_offers}",
"description": "Whether or not to allow buyers to make offers on the item. Defaults to false."
},
{
"key": "status",
"value": "{status}",
"description": "The status of the listing. Defaults to For Sale. Options are For Sale (the listing is ready to be shown on the Marketplace) and Draft (the listing is not ready for public display)."
},
{
"key": "external_id",
"value": "{external_id}",
"description": "A freeform field that can be used for the seller’s own reference. Information stored here will not be displayed to anyone other than the seller. This field is called “Private Comments” on the Discogs website."
},
{
"key": "location",
"value": "{location}",
"description": "A freeform field that is intended to help identify an item’s physical storage location. Information stored here will not be displayed to anyone other than the seller. This field will be visible on the inventory management page and will be available in inventory exports via the website."
},
{
"key": "weight",
"value": "{weight}",
"description": "The weight, in grams, of this listing, for the purpose of calculating shipping. Set this field to auto to have the weight automatically estimated for you."
},
{
"key": "format_quantity",
"value": "{format_quantity}",
"description": "The number of items this listing counts as, for the purpose of calculating shipping. This field is called “Counts As” on the Discogs website. Set this field to auto to have the quantity automatically estimated for you."
}
]
},
"description": "Create a Marketplace listing. Authentication is required; the listing will be added to the authenticated user’s Inventory.\n\n[https://www.discogs.com/developers/#page:marketplace,header:marketplace-new-listing](https://www.discogs.com/developers/#page:marketplace,header:marketplace-new-listing)"
},
"response": []
},
{
"name": "Order",
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/x-www-form-urlencoded"
},
{
"key": "User-Agent",
"type": "text",
"value": "{{user_agent}}"
}
],
"url": "{{url}}/marketplace/orders/{order_id}",
"description": "View the data associated with a listing.\nIf the authorized user is the listing owner the listing will include the weight, format_quantity, external_id, and location keys. If the user is authorized, the listing will contain a in_cart boolean field indicating whether or not this listing is in their cart.\n\n[https://www.discogs.com/developers/#page:marketplace,header:marketplace-listing](https://www.discogs.com/developers/#page:marketplace,header:marketplace-listing)"
},
"response": []
},
{
"name": "Order",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/x-www-form-urlencoded"
},
{
"key": "User-Agent",
"type": "text",
"value": "{{user_agent}}"
}
],
"url": {
"raw": "{{url}}/marketplace/orders/{order_id}?status={status}&shipping={shipping}",
"host": [
"{{url}}"
],
"path": [
"marketplace",
"orders",
"{order_id}"
],
"query": [
{
"key": "status",
"value": "{status}",
"description": "The status of the Order you are updating. Must be one of the following: \n• New Order\n• Buyer Contacted\n• Invoice Sent\n• Payment Pending\n• Payment Received\n• Shipped\n• Refund Sent\n• Cancelled (Non-Paying Buyer)\n• Cancelled (Item Unavailable)\n• Cancelled (Per Buyer's Request)\nthe order’s current status\n\nFurthermore, the new status must be present in the order’s next_status list. For more information about order statuses, see Edit an order."
},
{
"key": "shipping",
"value": "{shipping}",
"description": "The order shipping amount. As a side-effect of setting this value, the buyer is invoiced and the order status is set to Invoice Sent."
}
]
},
"description": "dit the data associated with an order.\nAuthentication as the seller is required.\nThe response contains a next_status key – an array of valid next statuses for this order, which you can display to the user in (for example) a dropdown control. This also renders your application more resilient to any future changes in the order status logic.\nChanging the order status using this resource will always message the buyer with:\n\nSeller changed status from Old Status to New Status\n\nand does not provide a facility for including a custom message along with the change. For more fine-grained control, use the Add a new message resource, which allows you to simultaneously add a message and change the order status.\nIf the order status is neither cancelled, Payment Received, nor Shipped, you can change the shipping. Doing so will send an invoice to the buyer and set the order status to Invoice Sent. (For that reason, you cannot set the shipping and the order status in the same request.)\n\n[https://www.discogs.com/developers/#page:marketplace,header:marketplace-listing](https://www.discogs.com/developers/#page:marketplace,header:marketplace-listing)"
},
"response": []
},
{
"name": "List orders",
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/x-www-form-urlencoded"
},
{
"key": "User-Agent",
"type": "text",
"value": "{{user_agent}}"
}
],
"url": {
"raw": "{{url}}/marketplace/orders?status={status}&sort={sort}&sort_order={sort_order}",
"host": [
"{{url}}"
],
"path": [
"marketplace",
"orders"
],
"query": [
{
"key": "status",
"value": "{status}",
"description": "Only show orders with this status. Valid status keys are: \n• All\n• New Order\n• Buyer Contacted\n• Invoice Sent\n• Payment Pending\n• Payment Received\n• Shipped\n• Merged\n• Order Changed\n• Refund Sent\n• Cancelled\n• Cancelled (Non-Paying Buyer)\n• Cancelled (Item Unavailable)\n• Cancelled (Per Buyer's Request) Cancelled (Refund Received)\n\n"
},
{
"key": "sort",
"value": "{sort}",
"description": "Sort items by this field (see below). Valid sort keys are: \n• id\n• buyer\n• created\n• status\n• last_activity"
},
{
"key": "sort_order",
"value": "{sort_order}",
"description": "Sort items in a particular order (one of asc, desc)"
}
]
},
"description": "Returns a list of the authenticated user’s orders. Accepts Pagination parameters.\n\n[https://www.discogs.com/developers/#page:marketplace,header:marketplace-list-orders](https://www.discogs.com/developers/#page:marketplace,header:marketplace-list-orders)"
},
"response": []
},
{
"name": "List order messages",
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/x-www-form-urlencoded"
},
{
"key": "User-Agent",
"type": "text",
"value": "{{user_agent}}"
}
],
"url": "{{url}}/marketplace/orders/{order_id}/messages",
"description": "Returns a list of the order’s messages with the most recent first. Accepts Pagination parameters.\nAuthentication as the seller is required.\n\n[https://www.discogs.com/developers/#page:marketplace,header:marketplace-list-order-messages](https://www.discogs.com/developers/#page:marketplace,header:marketplace-list-order-messages)"
},
"response": []
},
{
"name": "List order messages",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/x-www-form-urlencoded"
},
{
"key": "User-Agent",
"type": "text",
"value": "{{user_agent}}"
}
],
"url": {
"raw": "{{url}}/marketplace/orders/{order_id}/messages?message={message}&status={status}",
"host": [
"{{url}}"
],
"path": [
"marketplace",
"orders",
"{order_id}",
"messages"
],
"query": [
{
"key": "message",