-
Notifications
You must be signed in to change notification settings - Fork 59
/
methods.json
4296 lines (4296 loc) · 121 KB
/
methods.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
{
"getMethodTable": {
"name": "getMethodTable",
"description": "Get a list of all methods available.",
"uri": "/",
"params": null,
"defaults": null,
"type": "ApiMethod",
"visibility": "public",
"http_method": "GET"
},
"getPublicBaseline": {
"name": "getPublicBaseline",
"description": "Pings a public v2 uri to get a performance baseline",
"uri": "/baseline",
"params": null,
"defaults": null,
"type": null,
"visibility": "public",
"http_method": "GET"
},
"getCategory": {
"name": "getCategory",
"description": "Retrieves a top-level Category by tag.",
"uri": "/categories/:tag",
"params": {
"tag": "string"
},
"defaults": null,
"type": "Category",
"visibility": "public",
"http_method": "GET"
},
"getSubCategory": {
"name": "getSubCategory",
"description": "Retrieves a second-level Category by tag and subtag.",
"uri": "/categories/:tag/:subtag",
"params": {
"tag": "string",
"subtag": "string"
},
"defaults": null,
"type": "Category",
"visibility": "public",
"http_method": "GET"
},
"getSubSubCategory": {
"name": "getSubSubCategory",
"description": "Retrieves a third-level Category by tag, subtag and subsubtag.",
"uri": "/categories/:tag/:subtag/:subsubtag",
"params": {
"tag": "string",
"subtag": "string",
"subsubtag": "string"
},
"defaults": null,
"type": "Category",
"visibility": "public",
"http_method": "GET"
},
"findAllCountry": {
"name": "findAllCountry",
"description": "Finds all Country.",
"uri": "/countries",
"params": null,
"defaults": null,
"type": "Country",
"visibility": "public",
"http_method": "GET"
},
"getCountry": {
"name": "getCountry",
"description": "Retrieves a Country by id.",
"uri": "/countries/:country_id",
"params": {
"country_id": "array(int)"
},
"defaults": null,
"type": "Country",
"visibility": "public",
"http_method": "GET"
},
"findByIsoCode": {
"name": "findByIsoCode",
"description": "Get the country info for the given ISO code.",
"uri": "/countries/iso/:iso_code",
"params": {
"limit": "int",
"offset": "int",
"page": "int",
"iso_code": "string"
},
"defaults": {
"limit": 25,
"offset": 0,
"page": null
},
"type": "Country",
"visibility": "public",
"http_method": "GET"
},
"findAllFeaturedTreasuries": {
"name": "findAllFeaturedTreasuries",
"description": "Finds all FeaturedTreasuries.",
"uri": "/featured_treasuries",
"params": {
"limit": "int",
"offset": "int",
"page": "int",
"region": "region"
},
"defaults": {
"limit": 25,
"offset": 0,
"page": null,
"region": "__ALL_REGIONS__"
},
"type": "FeaturedTreasury",
"visibility": "public",
"http_method": "GET"
},
"getFeaturedTreasuryById": {
"name": "getFeaturedTreasuryById",
"description": "Finds FeaturedTreasury by numeric ID.",
"uri": "/featured_treasuries/:featured_treasury_id",
"params": {
"featured_treasury_id": "int"
},
"defaults": null,
"type": "FeaturedTreasury",
"visibility": "public",
"http_method": "GET"
},
"findAllListingsForFeaturedTreasuryId": {
"name": "findAllListingsForFeaturedTreasuryId",
"description": "Finds all listings for a certain FeaturedTreasury.",
"uri": "/featured_treasuries/:featured_treasury_id/listings",
"params": {
"featured_treasury_id": "int"
},
"defaults": null,
"type": "Listing",
"visibility": "public",
"http_method": "GET"
},
"findAllActiveListingsForFeaturedTreasuryId": {
"name": "findAllActiveListingsForFeaturedTreasuryId",
"description": "Finds all active listings for a certain FeaturedTreasury.",
"uri": "/featured_treasuries/:featured_treasury_id/listings/active",
"params": {
"featured_treasury_id": "int"
},
"defaults": null,
"type": "Listing",
"visibility": "public",
"http_method": "GET"
},
"findAllFeaturedListings": {
"name": "findAllFeaturedListings",
"description": "Finds all FeaturedTreasury listings.",
"uri": "/featured_treasuries/listings",
"params": {
"limit": "int",
"offset": "int",
"page": "int",
"region": "region"
},
"defaults": {
"limit": 25,
"offset": 0,
"page": null,
"region": "__ALL_REGIONS__"
},
"type": "Listing",
"visibility": "public",
"http_method": "GET"
},
"findAllCurrentFeaturedListings": {
"name": "findAllCurrentFeaturedListings",
"description": "Finds FeaturedTreasury listings that are currently displayed on a regional homepage.",
"uri": "/featured_treasuries/listings/homepage_current",
"params": {
"region": "region"
},
"defaults": {
"region": "US"
},
"type": "Listing",
"visibility": "public",
"http_method": "GET"
},
"findAllFeaturedTreasuriesByOwner": {
"name": "findAllFeaturedTreasuriesByOwner",
"description": "Finds all FeaturedTreasury by numeric owner_id.",
"uri": "/featured_treasuries/owner/:owner_id",
"params": {
"limit": "int",
"offset": "int",
"page": "int",
"owner_id": "int"
},
"defaults": {
"limit": 25,
"offset": 0,
"page": null
},
"type": "FeaturedTreasury",
"visibility": "public",
"http_method": "GET"
},
"getGuest": {
"name": "getGuest",
"description": "Get a guest by ID.",
"uri": "/guests/:guest_id",
"params": {
"guest_id": "guest_id"
},
"defaults": null,
"type": "Guest",
"visibility": "public",
"http_method": "GET"
},
"findAllGuestCarts": {
"name": "findAllGuestCarts",
"description": "Get all guest's carts",
"uri": "/guests/:guest_id/carts",
"params": {
"guest_id": "guest_id"
},
"defaults": null,
"type": "GuestCart",
"visibility": "public",
"http_method": "GET"
},
"addToGuestCart": {
"name": "addToGuestCart",
"description": "Add a listing to guest's cart",
"uri": "/guests/:guest_id/carts",
"params": {
"guest_id": "guest_id",
"listing_id": "int",
"quantity": "int",
"selected_variations": "map(int, int)"
},
"defaults": {
"quantity": 1,
"selected_variations": null
},
"type": "GuestCart",
"visibility": "public",
"http_method": "POST"
},
"updateGuestCartListingQuantity": {
"name": "updateGuestCartListingQuantity",
"description": "Update a guest's cart listing purchase quantity",
"uri": "/guests/:guest_id/carts",
"params": {
"guest_id": "guest_id",
"listing_id": "int",
"quantity": "int",
"listing_customization_id": "int"
},
"defaults": {
"listing_customization_id": 0
},
"type": "GuestCart",
"visibility": "public",
"http_method": "PUT"
},
"removeGuestCartListing": {
"name": "removeGuestCartListing",
"description": "Remove a listing from a guest's cart",
"uri": "/guests/:guest_id/carts",
"params": {
"guest_id": "guest_id",
"listing_id": "int",
"listing_customization_id": "int"
},
"defaults": {
"listing_customization_id": 0
},
"type": "GuestCart",
"visibility": "public",
"http_method": "DELETE"
},
"findGuestCart": {
"name": "findGuestCart",
"description": "Get a guest's cart",
"uri": "/guests/:guest_id/carts/:cart_id",
"params": {
"guest_id": "guest_id",
"cart_id": "cart_id"
},
"defaults": null,
"type": "GuestCart",
"visibility": "public",
"http_method": "GET"
},
"updateGuestCart": {
"name": "updateGuestCart",
"description": "Update a guest's cart",
"uri": "/guests/:guest_id/carts/:cart_id",
"params": {
"guest_id": "guest_id",
"cart_id": "cart_id",
"destination_country_id": "int",
"message_to_seller": "string",
"coupon_code": "string",
"shipping_option_id": "string",
"destination_zip": "string"
},
"defaults": {
"destination_country_id": null,
"message_to_seller": null,
"coupon_code": null,
"shipping_option_id": null,
"destination_zip": null
},
"type": "GuestCart",
"visibility": "public",
"http_method": "PUT"
},
"deleteGuestCart": {
"name": "deleteGuestCart",
"description": "Delete a guest's cart",
"uri": "/guests/:guest_id/carts/:cart_id",
"params": {
"guest_id": "guest_id",
"cart_id": "cart_id"
},
"defaults": null,
"type": "GuestCart",
"visibility": "public",
"http_method": "DELETE"
},
"claimGuest": {
"name": "claimGuest",
"description": "Claim this guest to the associated user. Merges the GuestCart's associated with this GuestId into the logged in User's Carts. Returns the number of listings merged in meta['listings_merged'].",
"uri": "/guests/:guest_id/claim",
"params": {
"guest_id": "guest_id"
},
"defaults": null,
"type": "Guest",
"visibility": "private",
"http_method": "POST"
},
"mergeGuest": {
"name": "mergeGuest",
"description": "Merge this guest to a different guest. Merges the GuestCart's associated with this GuestId into the target guest's cart. Returns the number of listings merged in meta['listings_merged'].",
"uri": "/guests/:guest_id/merge",
"params": {
"guest_id": "guest_id",
"target_guest_id": "guest_id"
},
"defaults": null,
"type": "Guest",
"visibility": "private",
"http_method": "POST"
},
"generateGuest": {
"name": "generateGuest",
"description": "A helper method that generates a Guest ID to associate to this anonymous session. This method is not strictly necessary, as any sufficiently random guest ID that is 13 characters in length will suffice and automatically create a guest account on use if it does not yet exist.",
"uri": "/guests/generator",
"params": null,
"defaults": null,
"type": "Guest",
"visibility": "public",
"http_method": "GET"
},
"listImageTypes": {
"name": "listImageTypes",
"description": "Lists available image types along with their supported sizes.",
"uri": "/image_types",
"params": null,
"defaults": null,
"type": "ImageType",
"visibility": "public",
"http_method": "GET"
},
"createListing": {
"name": "createListing",
"description": "Creates a new Listing. NOTE: A shipping_template_id is required when creating a listing. <strong>NOTE: All listings created on www.etsy.com must be actual items for sale. Please see our <a href='/developers/documentation/getting_started/testing'>guidelines for testing</a> with live listings.</strong>",
"uri": "/listings",
"params": {
"quantity": "int",
"title": "string",
"description": "text",
"price": "float",
"materials": "array(string)",
"shipping_template_id": "int",
"shop_section_id": "int",
"image_ids": "array(int)",
"is_customizable": "boolean",
"non_taxable": "boolean",
"image": "image",
"state": "enum(active, draft)",
"processing_min": "int",
"processing_max": "int",
"category_id": "int",
"taxonomy_id": "int",
"tags": "array(string)",
"who_made": "enum(i_did, collective, someone_else)",
"is_supply": "boolean",
"when_made": "enum(made_to_order, 2020_2020, 2010_2019, 2001_2009, before_2001, 2000_2000, 1990s, 1980s, 1970s, 1960s, 1950s, 1940s, 1930s, 1920s, 1910s, 1900s, 1800s, 1700s, before_1700)",
"recipient": "enum(men, women, unisex_adults, teen_boys, teen_girls, teens, boys, girls, children, baby_boys, baby_girls, babies, birds, cats, dogs, pets, not_specified)",
"occasion": "enum(anniversary, baptism, bar_or_bat_mitzvah, birthday, canada_day, chinese_new_year, cinco_de_mayo, confirmation, christmas, day_of_the_dead, easter, eid, engagement, fathers_day, get_well, graduation, halloween, hanukkah, housewarming, kwanzaa, prom, july_4th, mothers_day, new_baby, new_years, quinceanera, retirement, st_patricks_day, sweet_16, sympathy, thanksgiving, valentines, wedding)",
"style": "array(string)"
},
"defaults": {
"materials": null,
"shop_section_id": null,
"image_ids": null,
"is_customizable": null,
"non_taxable": null,
"image": null,
"state": "active",
"shipping_template_id": null,
"processing_min": null,
"processing_max": null,
"category_id": null,
"taxonomy_id": null,
"tags": null,
"recipient": null,
"occasion": null,
"style": null
},
"type": "Listing",
"visibility": "private",
"http_method": "POST"
},
"getListing": {
"name": "getListing",
"description": "Retrieves a Listing by id.",
"uri": "/listings/:listing_id",
"params": {
"listing_id": "array(int)"
},
"defaults": null,
"type": "Listing",
"visibility": "public",
"http_method": "GET"
},
"updateListing": {
"name": "updateListing",
"description": "Updates a Listing",
"uri": "/listings/:listing_id",
"params": {
"listing_id": "int",
"quantity": "int",
"title": "string",
"description": "text",
"price": "float",
"wholesale_price": "float",
"materials": "array(string)",
"renew": "boolean",
"shipping_template_id": "int",
"shop_section_id": "int",
"state": "enum(active, inactive, draft)",
"image_ids": "array(int)",
"is_customizable": "boolean",
"item_weight": "float",
"item_length": "float",
"item_width": "float",
"item_height": "float",
"item_weight_unit": "string",
"item_dimensions_unit": "string",
"non_taxable": "boolean",
"category_id": "int",
"taxonomy_id": "int",
"tags": "array(string)",
"who_made": "enum(i_did, collective, someone_else)",
"is_supply": "boolean",
"when_made": "enum(made_to_order, 2020_2020, 2010_2019, 2001_2009, before_2001, 2000_2000, 1990s, 1980s, 1970s, 1960s, 1950s, 1940s, 1930s, 1920s, 1910s, 1900s, 1800s, 1700s, before_1700)",
"recipient": "enum(men, women, unisex_adults, teen_boys, teen_girls, teens, boys, girls, children, baby_boys, baby_girls, babies, birds, cats, dogs, pets, not_specified)",
"occasion": "enum(anniversary, baptism, bar_or_bat_mitzvah, birthday, canada_day, chinese_new_year, cinco_de_mayo, confirmation, christmas, day_of_the_dead, easter, eid, engagement, fathers_day, get_well, graduation, halloween, hanukkah, housewarming, kwanzaa, prom, july_4th, mothers_day, new_baby, new_years, quinceanera, retirement, st_patricks_day, sweet_16, sympathy, thanksgiving, valentines, wedding)",
"style": "array(string)",
"processing_min": "int",
"processing_max": "int",
"featured_rank": "featured_rank"
},
"defaults": {
"quantity": null,
"title": null,
"description": null,
"price": null,
"wholesale_price": null,
"materials": null,
"renew": null,
"shipping_template_id": null,
"shop_section_id": null,
"state": "active",
"image_ids": null,
"is_customizable": null,
"item_weight": null,
"item_length": null,
"item_width": null,
"item_height": null,
"item_weight_unit": null,
"item_dimensions_unit": null,
"non_taxable": null,
"category_id": null,
"taxonomy_id": null,
"tags": null,
"who_made": null,
"is_supply": null,
"when_made": null,
"recipient": null,
"occasion": null,
"style": null,
"processing_min": null,
"processing_max": null,
"featured_rank": null
},
"type": "Listing",
"visibility": "private",
"http_method": "PUT"
},
"deleteListing": {
"name": "deleteListing",
"description": "Deletes a Listing",
"uri": "/listings/:listing_id",
"params": {
"listing_id": "int"
},
"defaults": null,
"type": "Listing",
"visibility": "private",
"http_method": "DELETE"
},
"getAttributes": {
"name": "getAttributes",
"description": "Get all of the attributes for a listing [developer preview - may be unstable]",
"uri": "/listings/:listing_id/attributes",
"params": {
"listing_id": "int"
},
"defaults": null,
"type": "PropertyValue",
"visibility": "public",
"http_method": "GET"
},
"getAttribute": {
"name": "getAttribute",
"description": "Get an attribute for a listing [developer preview - may be unstable]",
"uri": "/listings/:listing_id/attributes/:property_id",
"params": {
"listing_id": "int",
"property_id": "int"
},
"defaults": null,
"type": "PropertyValue",
"visibility": "public",
"http_method": "GET"
},
"updateAttribute": {
"name": "updateAttribute",
"description": "Update or populate an attribute for a listing [developer preview - may be unstable]",
"uri": "/listings/:listing_id/attributes/:property_id",
"params": {
"listing_id": "int",
"property_id": "int",
"value_ids": "array(int)",
"values": "array(string)",
"scale_id": "int"
},
"defaults": {
"value_ids": null,
"values": null,
"scale_id": null
},
"type": "PropertyValue",
"visibility": "private",
"http_method": "PUT"
},
"deleteAttribute": {
"name": "deleteAttribute",
"description": "Delete an attribute for a listing [developer preview - may be unstable]",
"uri": "/listings/:listing_id/attributes/:property_id",
"params": {
"listing_id": "int",
"property_id": "int"
},
"defaults": null,
"type": "PropertyValue",
"visibility": "private",
"http_method": "DELETE"
},
"findAllListingFavoredBy": {
"name": "findAllListingFavoredBy",
"description": "Retrieves a set of FavoriteListing objects associated to a Listing.",
"uri": "/listings/:listing_id/favored-by",
"params": {
"listing_id": "int",
"limit": "int",
"offset": "int",
"page": "int"
},
"defaults": {
"limit": 25,
"offset": 0,
"page": null
},
"type": "FavoriteListing",
"visibility": "public",
"http_method": "GET"
},
"findAllListingFiles": {
"name": "findAllListingFiles",
"description": "Finds all ListingFiles on a Listing",
"uri": "/listings/:listing_id/files",
"params": {
"listing_id": "int"
},
"defaults": null,
"type": "ListingFile",
"visibility": "private",
"http_method": "GET"
},
"uploadListingFile": {
"name": "uploadListingFile",
"description": "Upload a new listing file, or attach an existing file to this listing. You must either provide the listing_file_id\nof an existing listing file, or the name and file data of a new file that you are uploading. If you are attaching\na file to a listing that is currently not digital, the listing will be converted to a digital listing. This will\ncause the listing to have free shipping and will remove any variations.",
"uri": "/listings/:listing_id/files",
"params": {
"listing_id": "int",
"listing_file_id": "int",
"file": "imagefile",
"name": "string",
"rank": "int"
},
"defaults": {
"listing_file_id": null,
"file": null,
"name": null,
"rank": 1
},
"type": "ListingFile",
"visibility": "private",
"http_method": "POST"
},
"findListingFile": {
"name": "findListingFile",
"description": "Finds a ListingFile by ID",
"uri": "/listings/:listing_id/files/:listing_file_id",
"params": {
"listing_id": "int",
"listing_file_id": "int"
},
"defaults": null,
"type": "ListingFile",
"visibility": "private",
"http_method": "GET"
},
"deleteListingFile": {
"name": "deleteListingFile",
"description": "Removes the listing file from this listing. If this is the last file on a listing, the listing will no longer\nbe considered a digital listing.",
"uri": "/listings/:listing_id/files/:listing_file_id",
"params": {
"listing_id": "int",
"listing_file_id": "int"
},
"defaults": null,
"type": "ListingFile",
"visibility": "private",
"http_method": "DELETE"
},
"findAllListingFundOnEtsyCampaign": {
"name": "findAllListingFundOnEtsyCampaign",
"description": "Retrieves a set of FundOnEtsyCampaign objects associated to a Listing.",
"uri": "/listings/:listing_id/fundonetsycampaign",
"params": {
"listing_id": "int"
},
"defaults": null,
"type": "FundOnEtsyCampaign",
"visibility": "public",
"http_method": "GET"
},
"findAllListingImages": {
"name": "findAllListingImages",
"description": "Retrieves a set of ListingImage objects associated to a Listing.",
"uri": "/listings/:listing_id/images",
"params": {
"listing_id": "int"
},
"defaults": null,
"type": "ListingImage",
"visibility": "public",
"http_method": "GET"
},
"uploadListingImage": {
"name": "uploadListingImage",
"description": "Upload a new listing image, or re-associate a previously deleted one. You may associate an image\n to any listing within the same shop that the image's original listing belongs to.\n You MUST pass either a listing_image_id OR an image to this method.\n Passing a listing_image_id serves to re-associate an image that was previously deleted.\n If you wish to re-associate an image, we strongly recommend using the listing_image_id\n argument as opposed to re-uploading a new image each time, to save bandwidth for you as well as us.\n Pass overwrite=1 to replace the existing image at a given rank.\n When uploading a new listing image with a watermark, pass is_watermarked=1; existing listing images\n will not be affected by this parameter.",
"uri": "/listings/:listing_id/images",
"params": {
"listing_id": "int",
"listing_image_id": "int",
"image": "imagefile",
"rank": "int",
"overwrite": "boolean",
"is_watermarked": "boolean"
},
"defaults": {
"listing_image_id": null,
"image": null,
"rank": 1,
"overwrite": 0,
"is_watermarked": 0
},
"type": "ListingImage",
"visibility": "private",
"http_method": "POST"
},
"getImage_Listing": {
"name": "getImage_Listing",
"description": "Retrieves a Image_Listing by id.",
"uri": "/listings/:listing_id/images/:listing_image_id",
"params": {
"listing_image_id": "array(int)",
"listing_id": "int"
},
"defaults": null,
"type": "ListingImage",
"visibility": "public",
"http_method": "GET"
},
"deleteListingImage": {
"name": "deleteListingImage",
"description": "Deletes a listing image. A copy of the file remains on our servers,\n and so a deleted image may be re-associated with the listing without\n re-uploading the original image; see uploadListingImage",
"uri": "/listings/:listing_id/images/:listing_image_id",
"params": {
"listing_id": "int",
"listing_image_id": "int"
},
"defaults": null,
"type": "ListingImage",
"visibility": "private",
"http_method": "DELETE"
},
"getInventory": {
"name": "getInventory",
"description": "Get the inventory for a listing [developer preview - may be unstable]",
"uri": "/listings/:listing_id/inventory",
"params": {
"listing_id": "int",
"write_missing_inventory": "boolean"
},
"defaults": {
"write_missing_inventory": false
},
"type": "ListingInventory",
"visibility": "public",
"http_method": "GET"
},
"updateInventory": {
"name": "updateInventory",
"description": "Update the inventory for a listing [developer preview - may be unstable]",
"uri": "/listings/:listing_id/inventory",
"params": {
"listing_id": "int",
"products": "stringJSON",
"price_on_property": "array(int)",
"quantity_on_property": "array(int)",
"sku_on_property": "array(int)"
},
"defaults": {
"price_on_property": null,
"quantity_on_property": null,
"sku_on_property": null
},
"type": "ListingInventory",
"visibility": "private",
"http_method": "PUT"
},
"getProduct": {
"name": "getProduct",
"description": "Get a specific offering for a listing [developer preview - may be unstable]",
"uri": "/listings/:listing_id/products/:product_id",
"params": {
"listing_id": "int",
"product_id": "int"
},
"defaults": null,
"type": "ListingOffering",
"visibility": "public",
"http_method": "GET"
},
"getOffering": {
"name": "getOffering",
"description": "Get a specific offering for a listing [developer preview - may be unstable]",
"uri": "/listings/:listing_id/products/:product_id/offerings/:offering_id",
"params": {
"listing_id": "int",
"product_id": "int",
"offering_id": "int"
},
"defaults": null,
"type": "ListingOffering",
"visibility": "public",
"http_method": "GET"
},
"findAllListingShippingProfileEntries": {
"name": "findAllListingShippingProfileEntries",
"description": "Retrieves a set of ShippingProfileEntries objects associated to a Listing.",
"uri": "/listings/:listing_id/shipping/info",
"params": null,
"defaults": null,
"type": "ShippingInfo",
"visibility": "public",
"http_method": "GET"
},
"createShippingInfo": {
"name": "createShippingInfo",
"description": "Creates a new ShippingInfo.",
"uri": "/listings/:listing_id/shipping/info",
"params": {
"destination_country_id": "int",
"primary_cost": "float",
"secondary_cost": "float",
"region_id": "int",
"listing_id": "int"
},
"defaults": {
"destination_country_id": null,
"region_id": null
},
"type": "ShippingInfo",
"visibility": "private",
"http_method": "POST"
},
"getListingShippingUpgrades": {
"name": "getListingShippingUpgrades",
"description": "Get the shipping upgrades available for a listing.",
"uri": "/listings/:listing_id/shipping/upgrades",
"params": {
"listing_id": "int"
},
"defaults": null,
"type": "ShippingUpgrade",
"visibility": "private",
"http_method": "GET"
},
"createListingShippingUpgrade": {
"name": "createListingShippingUpgrade",
"description": "Creates a new ShippingUpgrade for the listing. Will unlink the listing if linked to a ShippingTemplate.",
"uri": "/listings/:listing_id/shipping/upgrades",
"params": {
"listing_id": "int",
"type": "int",
"value": "string",
"price": "float",
"secondary_price": "float"
},
"defaults": null,
"type": "ShippingUpgrade",
"visibility": "private",
"http_method": "POST"
},
"updateListingShippingUpgrade": {
"name": "updateListingShippingUpgrade",
"description": "Updates a ShippingUpgrade on a listing. Will unlink the listing if linked to a ShippingTemplate.",
"uri": "/listings/:listing_id/shipping/upgrades",
"params": {
"listing_id": "int",
"value_id": "int",
"type": "int",
"price": "float",
"secondary_price": "float"
},
"defaults": null,
"type": "ShippingUpgrade",
"visibility": "private",
"http_method": "PUT"
},
"deleteListingShippingUpgrade": {
"name": "deleteListingShippingUpgrade",
"description": "Deletes the ShippingUpgrade from the listing. Will unlink the listing if linked to a ShippingTemplate.",
"uri": "/listings/:listing_id/shipping/upgrades",
"params": {
"listing_id": "int",
"value_id": "int",
"type": "int"
},
"defaults": null,
"type": "ShippingUpgrade",
"visibility": "private",
"http_method": "DELETE"
},
"findAllListingTransactions": {
"name": "findAllListingTransactions",
"description": "Retrieves a set of Transaction objects associated to a Listing.",
"uri": "/listings/:listing_id/transactions",
"params": {
"listing_id": "int",
"limit": "int",
"offset": "int",
"page": "int"
},
"defaults": {
"limit": 25,
"offset": 0,
"page": null
},
"type": "Transaction",
"visibility": "private",
"http_method": "GET"
},
"getListingTranslation": {
"name": "getListingTranslation",
"description": "Retrieves a ListingTranslation by listing_id and language",
"uri": "/listings/:listing_id/translations/:language",
"params": {
"listing_id": "int",
"language": "language"
},
"defaults": null,
"type": "ListingTranslation",
"visibility": "public",
"http_method": "GET"
},
"createListingTranslation": {
"name": "createListingTranslation",
"description": "Creates a ListingTranslation by listing_id and language",
"uri": "/listings/:listing_id/translations/:language",
"params": {
"listing_id": "int",
"language": "language",
"title": "string",
"description": "text",
"tags": "array(string)"
},
"defaults": {
"title": false,
"description": false,
"tags": false
},
"type": "ListingTranslation",
"visibility": "private",
"http_method": "POST"
},
"updateListingTranslation": {
"name": "updateListingTranslation",
"description": "Updates a ListingTranslation by listing_id and language",
"uri": "/listings/:listing_id/translations/:language",
"params": {
"listing_id": "int",
"language": "language",
"title": "string",
"description": "text",
"tags": "array(string)"
},
"defaults": {
"title": false,
"description": false,
"tags": false
},
"type": "ListingTranslation",
"visibility": "private",
"http_method": "PUT"
},
"deleteListingTranslation": {
"name": "deleteListingTranslation",
"description": "Deletes a ListingTranslation by listing_id and language",
"uri": "/listings/:listing_id/translations/:language",
"params": {
"listing_id": "int",
"language": "language"
},
"defaults": null,
"type": "ListingTranslation",
"visibility": "private",
"http_method": "DELETE"
},
"getListingVariations": {
"name": "getListingVariations",
"description": "Get the listing variations available for a listing.",
"uri": "/listings/:listing_id/variations",
"params": {
"listing_id": "int"
},
"defaults": null,
"type": "Variations_Property",
"visibility": "public",
"http_method": "GET"
},
"createListingVariations": {
"name": "createListingVariations",
"description": "Update all of the listing variations available for a listing; optionally set custom property names and property qualifiers. Expects a JSON array with a collection of objects of the form: <code>[{\"property_id\":200, \"value\":\"Black\"}, {\"property_id\":200, \"value\":\"White\"}]</code>",
"uri": "/listings/:listing_id/variations",
"params": {
"listing_id": "int",
"variations": "array(listing_variation)",
"custom_property_names": "map(int, string)",
"recipient_id": "int",
"sizing_scale": "int",
"weight_scale": "int",
"height_scale": "int",
"length_scale": "int",
"width_scale": "int",
"diameter_scale": "int",