-
Notifications
You must be signed in to change notification settings - Fork 756
/
Copy pathsellers.json
795 lines (795 loc) · 28.9 KB
/
sellers.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
{
"swagger": "2.0",
"info": {
"description": "The [Selling Partner API for Sellers](https://developer-docs.amazon.com/sp-api/docs/sellers-api-v1-reference) (Sellers API) provides essential information about seller accounts, such as:\n\n- The marketplaces a seller can list in\n- The default language and currency of a marketplace\n- Whether the seller has suspended listings\n\nRefer to the [Sellers API reference](https://developer-docs.amazon.com/sp-api/docs/sellers-api-v1-reference) for details about this API's operations, data types, and schemas.",
"version": "v1",
"title": "The Selling Partner API for Sellers",
"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": {
"/sellers/v1/marketplaceParticipations": {
"get": {
"tags": [
"sellers"
],
"description": "Returns a list of marketplaces where the seller can list items and information about the seller's participation in those marketplaces.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 0.016 | 15 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).",
"operationId": "getMarketplaceParticipations",
"parameters": [],
"responses": {
"200": {
"description": "Marketplace participations successfully retrieved.",
"schema": {
"$ref": "#/definitions/GetMarketplaceParticipationsResponse"
},
"examples": {
"payload": [
{
"marketplace": {
"id": "ATVPDKIKX0DER",
"name": "Amazon.com",
"countryCode": "US",
"defaultCurrencyCode": "USD",
"defaultLanguageCode": "en_US",
"domainName": "www.amazon.com"
},
"storeName": "BestSellerStore",
"participation": {
"isParticipating": true,
"hasSuspendedListings": false
}
}
]
},
"headers": {
"x-amzn-RateLimit-Limit": {
"type": "string",
"description": "Your rate limit (requests per second) for this operation."
},
"x-amzn-RequestId": {
"type": "string",
"description": "Unique request reference identifier."
}
},
"x-amzn-api-sandbox": {
"static": [
{
"request": {
"parameters": {}
},
"response": {
"payload": [
{
"marketplace": {
"id": "ATVPDKIKX0DER",
"countryCode": "US",
"name": "Amazon.com",
"defaultCurrencyCode": "USD",
"defaultLanguageCode": "en_US",
"domainName": "www.amazon.com"
},
"storeName": "BestSellerStore",
"participation": {
"isParticipating": true,
"hasSuspendedListings": false
}
}
]
}
}
]
}
},
"400": {
"description": "Request has missing or invalid parameters and cannot be parsed.",
"schema": {
"$ref": "#/definitions/GetMarketplaceParticipationsResponse"
},
"headers": {
"x-amzn-RateLimit-Limit": {
"type": "string",
"description": "Your rate limit (requests per second) for this operation."
},
"x-amzn-RequestId": {
"type": "string",
"description": "Unique request reference identifier."
}
}
},
"403": {
"description": "403 can be caused for reasons like Access Denied, Unauthorized, Expired Token, Invalid Signature or Resource Not Found.",
"schema": {
"$ref": "#/definitions/GetMarketplaceParticipationsResponse"
},
"headers": {
"x-amzn-RequestId": {
"type": "string",
"description": "Unique request reference identifier."
}
}
},
"404": {
"description": "The resource specified does not exist.",
"schema": {
"$ref": "#/definitions/GetMarketplaceParticipationsResponse"
},
"headers": {
"x-amzn-RateLimit-Limit": {
"type": "string",
"description": "Your rate limit (requests per second) for this operation."
},
"x-amzn-RequestId": {
"type": "string",
"description": "Unique request reference identifier."
}
}
},
"413": {
"description": "The request size exceeded the maximum accepted size.",
"schema": {
"$ref": "#/definitions/GetMarketplaceParticipationsResponse"
},
"headers": {
"x-amzn-RateLimit-Limit": {
"type": "string",
"description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned."
},
"x-amzn-RequestId": {
"type": "string",
"description": "Unique request reference identifier."
}
}
},
"415": {
"description": "The entity of the request is in a format not supported by the requested resource.",
"schema": {
"$ref": "#/definitions/GetMarketplaceParticipationsResponse"
},
"headers": {
"x-amzn-RateLimit-Limit": {
"type": "string",
"description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned."
},
"x-amzn-RequestId": {
"type": "string",
"description": "Unique request reference identifier."
}
}
},
"429": {
"description": "The frequency of requests was greater than allowed.",
"schema": {
"$ref": "#/definitions/GetMarketplaceParticipationsResponse"
},
"headers": {
"x-amzn-RateLimit-Limit": {
"type": "string",
"description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned."
},
"x-amzn-RequestId": {
"type": "string",
"description": "Unique request reference identifier."
}
}
},
"500": {
"description": "Encountered an unexpected condition which prevented the server from fulfilling the request.",
"schema": {
"$ref": "#/definitions/GetMarketplaceParticipationsResponse"
},
"headers": {
"x-amzn-RateLimit-Limit": {
"type": "string",
"description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned."
},
"x-amzn-RequestId": {
"type": "string",
"description": "Unique request reference identifier."
}
}
},
"503": {
"description": "Temporary overloading or maintenance of the server.",
"schema": {
"$ref": "#/definitions/GetMarketplaceParticipationsResponse"
},
"headers": {
"x-amzn-RateLimit-Limit": {
"type": "string",
"description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned."
},
"x-amzn-RequestId": {
"type": "string",
"description": "Unique request reference identifier."
}
}
}
}
}
},
"/sellers/v1/account": {
"get": {
"tags": [
"sellers"
],
"description": "Returns information about a seller account and its marketplaces.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 0.016 | 15 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).",
"operationId": "getAccount",
"parameters": [],
"responses": {
"200": {
"description": "Success.",
"schema": {
"$ref": "#/definitions/GetAccountResponse"
},
"examples": {
"application/json": {
"payload": {
"businessType": "PRIVATE_LIMITED",
"marketplaceParticipationList": [
{
"marketplace": {
"id": "ATVPDKIKX0DER",
"name": "United States",
"countryCode": "US",
"domainName": "www.amazon.com"
},
"storeName": "BestSellerStore",
"participation": {
"isParticipating": true,
"hasSuspendedListings": false
}
}
],
"sellingPlan": "PROFESSIONAL",
"business": {
"name": "BestSeller Inc.",
"nonLatinName": "ベストセラー株式会社",
"registeredBusinessAddress": {
"addressLine1": "123 Main St",
"addressLine2": "Suite 500",
"city": "Seattle",
"stateOrProvinceCode": "WA",
"postalCode": "98101",
"countryCode": "US"
},
"companyRegistrationNumber": "123456789",
"companyTaxIdentificationNumber": "987654321"
},
"primaryContact": {
"name": "John Doe",
"nonLatinName": "ジョン・ドゥ",
"address": {
"addressLine1": "456 Oak St",
"addressLine2": "Apt 12",
"city": "Seattle",
"stateOrProvinceCode": "WA",
"postalCode": "98102",
"countryCode": "US"
}
}
}
}
},
"headers": {
"x-amzn-RateLimit-Limit": {
"type": "string",
"description": "Your rate limit (requests per second) for this operation."
},
"x-amzn-RequestId": {
"type": "string",
"description": "Unique request reference identifier."
}
},
"x-amzn-api-sandbox": {
"static": [
{
"request": {
"parameters": {}
},
"response": {
"payload": {
"businessType": "PRIVATE_LIMITED",
"marketplaceParticipationList": [
{
"marketplace": {
"id": "ATVPDKIKX0DER",
"name": "United States",
"countryCode": "US",
"domainName": "www.amazon.com"
},
"storeName": "BestSellerStore",
"participation": {
"isParticipating": true,
"hasSuspendedListings": false
}
}
],
"sellingPlan": "PROFESSIONAL",
"business": {
"name": "BestSeller Inc.",
"nonLatinName": "ベストセラー株式会社",
"registeredBusinessAddress": {
"addressLine1": "123 Main St",
"addressLine2": "Suite 500",
"city": "Seattle",
"stateOrProvinceCode": "WA",
"postalCode": "98101",
"countryCode": "US"
},
"companyRegistrationNumber": "123456789",
"companyTaxIdentificationNumber": "987654321"
},
"primaryContact": {
"name": "John Doe",
"nonLatinName": "ジョン・ドゥ",
"address": {
"addressLine1": "456 Oak St",
"addressLine2": "Apt 12",
"city": "Seattle",
"stateOrProvinceCode": "WA",
"postalCode": "98102",
"countryCode": "US"
}
}
}
}
}
]
}
},
"400": {
"description": "Request has missing or invalid parameters and cannot be parsed.",
"schema": {
"$ref": "#/definitions/GetAccountResponse"
},
"headers": {
"x-amzn-RateLimit-Limit": {
"type": "string",
"description": "Your rate limit (requests per second) for this operation."
},
"x-amzn-RequestId": {
"type": "string",
"description": "Unique request reference identifier."
}
},
"x-amzn-api-sandbox": {
"static": [
{
"request": {
"parameters": {}
},
"response": {
"errors": [
{
"code": "InvalidInput",
"message": "Invalid Input"
}
]
}
}
]
}
},
"403": {
"description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.",
"schema": {
"$ref": "#/definitions/GetAccountResponse"
},
"headers": {
"x-amzn-RequestId": {
"type": "string",
"description": "Unique request reference identifier."
}
}
},
"404": {
"description": "The resource specified does not exist.",
"schema": {
"$ref": "#/definitions/GetAccountResponse"
},
"headers": {
"x-amzn-RateLimit-Limit": {
"type": "string",
"description": "Your rate limit (requests per second) for this operation."
},
"x-amzn-RequestId": {
"type": "string",
"description": "Unique request reference identifier."
}
}
},
"413": {
"description": "The request size exceeded the maximum accepted size.",
"schema": {
"$ref": "#/definitions/GetAccountResponse"
},
"headers": {
"x-amzn-RequestId": {
"type": "string",
"description": "Unique request reference identifier."
}
}
},
"415": {
"description": "The request payload is in an unsupported format.",
"schema": {
"$ref": "#/definitions/GetAccountResponse"
},
"headers": {
"x-amzn-RequestId": {
"type": "string",
"description": "Unique request reference identifier."
}
}
},
"429": {
"description": "The frequency of requests was greater than allowed.",
"schema": {
"$ref": "#/definitions/GetAccountResponse"
},
"headers": {
"x-amzn-RequestId": {
"type": "string",
"description": "Unique request reference identifier."
}
}
},
"500": {
"description": "An unexpected condition occurred that prevented the server from fulfilling the request.",
"schema": {
"$ref": "#/definitions/GetAccountResponse"
},
"headers": {
"x-amzn-RequestId": {
"type": "string",
"description": "Unique request reference identifier."
}
}
},
"503": {
"description": "Temporary overloading or maintenance of the server.",
"schema": {
"$ref": "#/definitions/GetAccountResponse"
},
"headers": {
"x-amzn-RequestId": {
"type": "string",
"description": "Unique request reference identifier."
}
}
}
}
}
}
},
"definitions": {
"Error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string",
"description": "An error code that identifies the type of error that occurred."
},
"message": {
"type": "string",
"description": "A message that describes the error condition in a human-readable form."
},
"details": {
"type": "string",
"description": "Additional details that can help you understand or fix the issue."
}
},
"description": "Error response returned when the request is unsuccessful."
},
"ErrorList": {
"type": "array",
"description": "A list of error responses returned when a request is unsuccessful.",
"items": {
"$ref": "#/definitions/Error"
}
},
"MarketplaceParticipation": {
"type": "object",
"required": [
"marketplace",
"participation",
"storeName"
],
"properties": {
"marketplace": {
"$ref": "#/definitions/Marketplace"
},
"participation": {
"$ref": "#/definitions/Participation"
},
"storeName": {
"type": "string",
"description": "The name of the seller's store as displayed in the marketplace."
}
}
},
"MarketplaceParticipationList": {
"type": "array",
"description": "List of marketplace participations.",
"items": {
"$ref": "#/definitions/MarketplaceParticipation"
}
},
"GetMarketplaceParticipationsResponse": {
"type": "object",
"properties": {
"payload": {
"description": "The payload for the `getMarketplaceParticipations` operation.",
"$ref": "#/definitions/MarketplaceParticipationList"
},
"errors": {
"description": "The errors encountered by the `getMarketplaceParticipations` operation.",
"$ref": "#/definitions/ErrorList"
}
},
"description": "The response schema for the `getMarketplaceParticipations` operation."
},
"Marketplace": {
"type": "object",
"required": [
"id",
"name",
"countryCode",
"defaultCurrencyCode",
"defaultLanguageCode",
"domainName"
],
"properties": {
"id": {
"type": "string",
"description": "The encrypted marketplace value."
},
"name": {
"type": "string",
"description": "The marketplace name."
},
"countryCode": {
"type": "string",
"description": "The ISO 3166-1 alpha-2 format country code of the marketplace.",
"pattern": "^([A-Z]{2})$"
},
"defaultCurrencyCode": {
"type": "string",
"description": "The ISO 4217 format currency code of the marketplace."
},
"defaultLanguageCode": {
"type": "string",
"description": "The ISO 639-1 format language code of the marketplace."
},
"domainName": {
"type": "string",
"description": "The domain name of the marketplace."
}
},
"description": "Information about an Amazon marketplace where a seller can list items and customers can view and purchase items."
},
"Participation": {
"type": "object",
"required": [
"hasSuspendedListings",
"isParticipating"
],
"properties": {
"isParticipating": {
"type": "boolean",
"description": "If `true`, the seller participates in the marketplace. Otherwise `false`."
},
"hasSuspendedListings": {
"type": "boolean",
"description": "Specifies if the seller has suspended listings. `true` if the seller Listing Status is set to Inactive, otherwise `false`."
}
},
"description": "Information that is specific to a seller in a marketplace."
},
"GetAccountResponse": {
"description": "The response schema for the `getAccount` operation.",
"type": "object",
"properties": {
"payload": {
"$ref": "#/definitions/Account"
},
"errors": {
"description": "The errors encountered by the `getAccount` operation.",
"$ref": "#/definitions/ErrorList"
}
}
},
"Account": {
"description": "The response schema for the `getAccount` operation.",
"type": "object",
"required": [
"businessType",
"sellingPlan",
"marketplaceParticipationList"
],
"properties": {
"marketplaceParticipationList": {
"$ref": "#/definitions/MarketplaceParticipationList"
},
"businessType": {
"type": "string",
"description": "The type of business registered for the seller account.",
"enum": [
"CHARITY",
"CRAFTSMAN",
"NATURAL_PERSON_COMPANY",
"PUBLIC_LISTED",
"PRIVATE_LIMITED",
"SOLE_PROPRIETORSHIP",
"STATE_OWNED",
"INDIVIDUAL"
],
"x-docgen-enum-table-extension": [
{
"value": "CHARITY",
"description": "The business is registered as a charity."
},
{
"value": "CRAFTSMAN",
"description": "The business is registered as a craftsman."
},
{
"value": "NATURAL_PERSON_COMPANY",
"description": "The business is a natural person company."
},
{
"value": "PUBLIC_LISTED",
"description": "The business is a publicly listed company."
},
{
"value": "PRIVATE_LIMITED",
"description": "The business is a private limited company."
},
{
"value": "SOLE_PROPRIETORSHIP",
"description": "The business is a sole proprietorship."
},
{
"value": "STATE_OWNED",
"description": "The business is state-owned."
},
{
"value": "INDIVIDUAL",
"description": "The entity is not a business but an individual."
}
]
},
"sellingPlan": {
"type": "string",
"description": "The selling plan details.",
"enum": [
"PROFESSIONAL",
"INDIVIDUAL"
],
"x-docgen-enum-table-extension": [
{
"value": "PROFESSIONAL",
"description": "The seller has a professional selling plan."
},
{
"value": "INDIVIDUAL",
"description": "The seller has an individual selling plan."
}
]
},
"business": {
"$ref": "#/definitions/Business"
},
"primaryContact": {
"$ref": "#/definitions/PrimaryContact"
}
}
},
"Business": {
"type": "object",
"description": "Information about the seller's business. Certain fields may be omitted depending on the seller's `businessType`.",
"required": [
"name",
"registeredBusinessAddress"
],
"properties": {
"name": {
"type": "string",
"description": "The registered business name."
},
"registeredBusinessAddress": {
"$ref": "#/definitions/Address",
"description": "The registered business address."
},
"companyRegistrationNumber": {
"type": "string",
"description": "The seller's company registration number, if applicable. This field will be absent for individual sellers and sole proprietorships."
},
"companyTaxIdentificationNumber": {
"type": "string",
"description": "The seller's company tax identification number, if applicable. This field will be present for certain business types only, such as sole proprietorships."
},
"nonLatinName": {
"type": "string",
"description": "The non-Latin script version of the registered business name, if applicable."
}
}
},
"Address": {
"type": "object",
"description": "Represents an address",
"required": [
"addressLine1",
"countryCode"
],
"properties": {
"addressLine1": {
"type": "string",
"description": "Street address information."
},
"addressLine2": {
"type": "string",
"description": "Additional street address information."
},
"countryCode": {
"type": "string",
"description": "The country code in two-character ISO 3166-1 alpha-2 format."
},
"stateOrProvinceCode": {
"type": "string",
"description": "The state or province code."
},
"city": {
"type": "string",
"description": "The city."
},
"postalCode": {
"type": "string",
"description": "The postal code."
}
}
},
"PrimaryContact": {
"type": "object",
"description": "Information about the seller's primary contact.",
"required": [
"name",
"address"
],
"properties": {
"name": {
"type": "string",
"description": "The full name of the seller's primary contact."
},
"address": {
"$ref": "#/definitions/Address",
"description": "The primary contact's residential address."
},
"nonLatinName": {
"type": "string",
"description": "The non-Latin script version of the primary contact's name, if applicable."
}
}
}
}
}