@sp-api-sdk/sellers-api-v1 2.1.2 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -1
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/src/api-model/api/sellers-api.js +57 -5
- package/dist/cjs/src/api-model/api.js +1 -1
- package/dist/cjs/src/api-model/base.js +1 -1
- package/dist/cjs/src/api-model/common.js +1 -1
- package/dist/cjs/src/api-model/configuration.js +1 -1
- package/dist/cjs/src/api-model/index.js +1 -1
- package/dist/cjs/src/api-model/models/account.js +26 -0
- package/dist/cjs/src/api-model/models/address.js +15 -0
- package/dist/cjs/src/api-model/models/business.js +15 -0
- package/dist/cjs/src/api-model/models/get-account-response.js +15 -0
- package/dist/cjs/src/api-model/models/get-marketplace-participations-response.js +1 -1
- package/dist/cjs/src/api-model/models/index.js +6 -0
- package/dist/cjs/src/api-model/models/marketplace-level-attributes.js +24 -0
- package/dist/cjs/src/api-model/models/marketplace-participation.js +1 -1
- package/dist/cjs/src/api-model/models/marketplace.js +1 -1
- package/dist/cjs/src/api-model/models/model-error.js +1 -1
- package/dist/cjs/src/api-model/models/participation.js +1 -1
- package/dist/cjs/src/api-model/models/primary-contact.js +15 -0
- package/dist/cjs/src/client.js +7 -0
- package/dist/es/index.js +1 -0
- package/dist/es/src/api-model/api/sellers-api.js +57 -5
- package/dist/es/src/api-model/api.js +1 -1
- package/dist/es/src/api-model/base.js +1 -1
- package/dist/es/src/api-model/common.js +1 -1
- package/dist/es/src/api-model/configuration.js +1 -1
- package/dist/es/src/api-model/index.js +1 -1
- package/dist/es/src/api-model/models/account.js +23 -0
- package/dist/es/src/api-model/models/address.js +14 -0
- package/dist/es/src/api-model/models/business.js +14 -0
- package/dist/es/src/api-model/models/get-account-response.js +14 -0
- package/dist/es/src/api-model/models/get-marketplace-participations-response.js +1 -1
- package/dist/es/src/api-model/models/index.js +6 -0
- package/dist/es/src/api-model/models/marketplace-level-attributes.js +21 -0
- package/dist/es/src/api-model/models/marketplace-participation.js +1 -1
- package/dist/es/src/api-model/models/marketplace.js +1 -1
- package/dist/es/src/api-model/models/model-error.js +1 -1
- package/dist/es/src/api-model/models/participation.js +1 -1
- package/dist/es/src/api-model/models/primary-contact.js +14 -0
- package/dist/es/src/client.js +7 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/src/api-model/api/sellers-api.d.ts +31 -5
- package/dist/types/src/api-model/api.d.ts +1 -1
- package/dist/types/src/api-model/base.d.ts +1 -1
- package/dist/types/src/api-model/common.d.ts +1 -1
- package/dist/types/src/api-model/configuration.d.ts +1 -1
- package/dist/types/src/api-model/index.d.ts +1 -1
- package/dist/types/src/api-model/models/account.d.ts +56 -0
- package/dist/types/src/api-model/models/address.d.ts +54 -0
- package/dist/types/src/api-model/models/business.d.ts +49 -0
- package/dist/types/src/api-model/models/get-account-response.d.ts +31 -0
- package/dist/types/src/api-model/models/get-marketplace-participations-response.d.ts +2 -2
- package/dist/types/src/api-model/models/index.d.ts +6 -0
- package/dist/types/src/api-model/models/marketplace-level-attributes.d.ts +53 -0
- package/dist/types/src/api-model/models/marketplace-participation.d.ts +1 -1
- package/dist/types/src/api-model/models/marketplace.d.ts +3 -3
- package/dist/types/src/api-model/models/model-error.d.ts +3 -3
- package/dist/types/src/api-model/models/participation.d.ts +4 -4
- package/dist/types/src/api-model/models/primary-contact.d.ts +37 -0
- package/package.json +5 -5
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Selling Partner API for Sellers
|
|
5
|
+
* 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: - The marketplaces a seller can list in - The default language and currency of a marketplace - Whether the seller has suspended listings Refer 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.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export const AccountBusinessTypeEnum = {
|
|
15
|
+
Charity: 'CHARITY',
|
|
16
|
+
Craftsman: 'CRAFTSMAN',
|
|
17
|
+
NaturalPersonCompany: 'NATURAL_PERSON_COMPANY',
|
|
18
|
+
PublicListed: 'PUBLIC_LISTED',
|
|
19
|
+
PrivateLimited: 'PRIVATE_LIMITED',
|
|
20
|
+
SoleProprietorship: 'SOLE_PROPRIETORSHIP',
|
|
21
|
+
StateOwned: 'STATE_OWNED',
|
|
22
|
+
Individual: 'INDIVIDUAL'
|
|
23
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Selling Partner API for Sellers
|
|
5
|
+
* 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: - The marketplaces a seller can list in - The default language and currency of a marketplace - Whether the seller has suspended listings Refer 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.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Selling Partner API for Sellers
|
|
5
|
+
* 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: - The marketplaces a seller can list in - The default language and currency of a marketplace - Whether the seller has suspended listings Refer 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.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Selling Partner API for Sellers
|
|
5
|
+
* 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: - The marketplaces a seller can list in - The default language and currency of a marketplace - Whether the seller has suspended listings Refer 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.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export {};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Selling Partner API for Sellers
|
|
5
|
-
* The Selling Partner API for Sellers
|
|
5
|
+
* 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: - The marketplaces a seller can list in - The default language and currency of a marketplace - Whether the seller has suspended listings Refer 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.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: v1
|
|
8
8
|
*
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
export * from './account';
|
|
2
|
+
export * from './address';
|
|
3
|
+
export * from './business';
|
|
4
|
+
export * from './get-account-response';
|
|
1
5
|
export * from './get-marketplace-participations-response';
|
|
2
6
|
export * from './marketplace';
|
|
7
|
+
export * from './marketplace-level-attributes';
|
|
3
8
|
export * from './marketplace-participation';
|
|
4
9
|
export * from './model-error';
|
|
5
10
|
export * from './participation';
|
|
11
|
+
export * from './primary-contact';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Selling Partner API for Sellers
|
|
5
|
+
* 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: - The marketplaces a seller can list in - The default language and currency of a marketplace - Whether the seller has suspended listings Refer 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.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export const MarketplaceLevelAttributesListingStatusEnum = {
|
|
15
|
+
Active: 'ACTIVE',
|
|
16
|
+
Inactive: 'INACTIVE'
|
|
17
|
+
};
|
|
18
|
+
export const MarketplaceLevelAttributesSellingPlanEnum = {
|
|
19
|
+
Professional: 'PROFESSIONAL',
|
|
20
|
+
Individual: 'INDIVIDUAL'
|
|
21
|
+
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Selling Partner API for Sellers
|
|
5
|
-
* The Selling Partner API for Sellers
|
|
5
|
+
* 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: - The marketplaces a seller can list in - The default language and currency of a marketplace - Whether the seller has suspended listings Refer 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.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: v1
|
|
8
8
|
*
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Selling Partner API for Sellers
|
|
5
|
-
* The Selling Partner API for Sellers
|
|
5
|
+
* 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: - The marketplaces a seller can list in - The default language and currency of a marketplace - Whether the seller has suspended listings Refer 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.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: v1
|
|
8
8
|
*
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Selling Partner API for Sellers
|
|
5
|
-
* The Selling Partner API for Sellers
|
|
5
|
+
* 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: - The marketplaces a seller can list in - The default language and currency of a marketplace - Whether the seller has suspended listings Refer 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.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: v1
|
|
8
8
|
*
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Selling Partner API for Sellers
|
|
5
|
-
* The Selling Partner API for Sellers
|
|
5
|
+
* 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: - The marketplaces a seller can list in - The default language and currency of a marketplace - Whether the seller has suspended listings Refer 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.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: v1
|
|
8
8
|
*
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Selling Partner API for Sellers
|
|
5
|
+
* 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: - The marketplaces a seller can list in - The default language and currency of a marketplace - Whether the seller has suspended listings Refer 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.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export {};
|
package/dist/es/src/client.js
CHANGED
|
@@ -8,6 +8,13 @@ export const clientRateLimits = [
|
|
|
8
8
|
rate: 0.016,
|
|
9
9
|
burst: 15,
|
|
10
10
|
},
|
|
11
|
+
{
|
|
12
|
+
method: 'get',
|
|
13
|
+
// eslint-disable-next-line prefer-regex-literals
|
|
14
|
+
urlRegex: new RegExp('^/sellers/v1/account$'),
|
|
15
|
+
rate: 0.016,
|
|
16
|
+
burst: 15,
|
|
17
|
+
},
|
|
11
18
|
];
|
|
12
19
|
export class SellersApiClient extends SellersApi {
|
|
13
20
|
constructor(configuration) {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Selling Partner API for Sellers
|
|
3
|
-
* The Selling Partner API for Sellers
|
|
3
|
+
* 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: - The marketplaces a seller can list in - The default language and currency of a marketplace - Whether the seller has suspended listings Refer 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.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: v1
|
|
6
6
|
*
|
|
@@ -13,6 +13,7 @@ import type { Configuration } from '../configuration';
|
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
import globalAxios from 'axios';
|
|
15
15
|
import { type RequestArgs, BaseAPI } from '../base';
|
|
16
|
+
import type { GetAccountResponse } from '../models';
|
|
16
17
|
import type { GetMarketplaceParticipationsResponse } from '../models';
|
|
17
18
|
/**
|
|
18
19
|
* SellersApi - axios parameter creator
|
|
@@ -20,7 +21,13 @@ import type { GetMarketplaceParticipationsResponse } from '../models';
|
|
|
20
21
|
*/
|
|
21
22
|
export declare const SellersApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
22
23
|
/**
|
|
23
|
-
* Returns
|
|
24
|
+
* Returns information about a seller account and its marketplaces. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.016 | 15 | The `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).
|
|
25
|
+
* @param {*} [options] Override http request option.
|
|
26
|
+
* @throws {RequiredError}
|
|
27
|
+
*/
|
|
28
|
+
getAccount: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
29
|
+
/**
|
|
30
|
+
* Returns a list of marketplaces where the seller can list items and information about the seller\'s participation in those marketplaces. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.016 | 15 | The `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).
|
|
24
31
|
* @param {*} [options] Override http request option.
|
|
25
32
|
* @throws {RequiredError}
|
|
26
33
|
*/
|
|
@@ -32,7 +39,13 @@ export declare const SellersApiAxiosParamCreator: (configuration?: Configuration
|
|
|
32
39
|
*/
|
|
33
40
|
export declare const SellersApiFp: (configuration?: Configuration) => {
|
|
34
41
|
/**
|
|
35
|
-
* Returns
|
|
42
|
+
* Returns information about a seller account and its marketplaces. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.016 | 15 | The `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).
|
|
43
|
+
* @param {*} [options] Override http request option.
|
|
44
|
+
* @throws {RequiredError}
|
|
45
|
+
*/
|
|
46
|
+
getAccount(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountResponse>>;
|
|
47
|
+
/**
|
|
48
|
+
* Returns a list of marketplaces where the seller can list items and information about the seller\'s participation in those marketplaces. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.016 | 15 | The `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).
|
|
36
49
|
* @param {*} [options] Override http request option.
|
|
37
50
|
* @throws {RequiredError}
|
|
38
51
|
*/
|
|
@@ -44,7 +57,13 @@ export declare const SellersApiFp: (configuration?: Configuration) => {
|
|
|
44
57
|
*/
|
|
45
58
|
export declare const SellersApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
46
59
|
/**
|
|
47
|
-
* Returns
|
|
60
|
+
* Returns information about a seller account and its marketplaces. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.016 | 15 | The `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).
|
|
61
|
+
* @param {*} [options] Override http request option.
|
|
62
|
+
* @throws {RequiredError}
|
|
63
|
+
*/
|
|
64
|
+
getAccount(options?: RawAxiosRequestConfig): AxiosPromise<GetAccountResponse>;
|
|
65
|
+
/**
|
|
66
|
+
* Returns a list of marketplaces where the seller can list items and information about the seller\'s participation in those marketplaces. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.016 | 15 | The `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).
|
|
48
67
|
* @param {*} [options] Override http request option.
|
|
49
68
|
* @throws {RequiredError}
|
|
50
69
|
*/
|
|
@@ -58,7 +77,14 @@ export declare const SellersApiFactory: (configuration?: Configuration, basePath
|
|
|
58
77
|
*/
|
|
59
78
|
export declare class SellersApi extends BaseAPI {
|
|
60
79
|
/**
|
|
61
|
-
* Returns
|
|
80
|
+
* Returns information about a seller account and its marketplaces. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.016 | 15 | The `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).
|
|
81
|
+
* @param {*} [options] Override http request option.
|
|
82
|
+
* @throws {RequiredError}
|
|
83
|
+
* @memberof SellersApi
|
|
84
|
+
*/
|
|
85
|
+
getAccount(options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetAccountResponse, any>>;
|
|
86
|
+
/**
|
|
87
|
+
* Returns a list of marketplaces where the seller can list items and information about the seller\'s participation in those marketplaces. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.016 | 15 | The `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).
|
|
62
88
|
* @param {*} [options] Override http request option.
|
|
63
89
|
* @throws {RequiredError}
|
|
64
90
|
* @memberof SellersApi
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Selling Partner API for Sellers
|
|
3
|
-
* The Selling Partner API for Sellers
|
|
3
|
+
* 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: - The marketplaces a seller can list in - The default language and currency of a marketplace - Whether the seller has suspended listings Refer 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.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: v1
|
|
6
6
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Selling Partner API for Sellers
|
|
3
|
-
* The Selling Partner API for Sellers
|
|
3
|
+
* 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: - The marketplaces a seller can list in - The default language and currency of a marketplace - Whether the seller has suspended listings Refer 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.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: v1
|
|
6
6
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Selling Partner API for Sellers
|
|
3
|
-
* The Selling Partner API for Sellers
|
|
3
|
+
* 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: - The marketplaces a seller can list in - The default language and currency of a marketplace - Whether the seller has suspended listings Refer 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.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: v1
|
|
6
6
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Selling Partner API for Sellers
|
|
3
|
-
* The Selling Partner API for Sellers
|
|
3
|
+
* 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: - The marketplaces a seller can list in - The default language and currency of a marketplace - Whether the seller has suspended listings Refer 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.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: v1
|
|
6
6
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Selling Partner API for Sellers
|
|
3
|
-
* The Selling Partner API for Sellers
|
|
3
|
+
* 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: - The marketplaces a seller can list in - The default language and currency of a marketplace - Whether the seller has suspended listings Refer 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.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: v1
|
|
6
6
|
*
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selling Partner API for Sellers
|
|
3
|
+
* 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: - The marketplaces a seller can list in - The default language and currency of a marketplace - Whether the seller has suspended listings Refer 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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Business } from './business';
|
|
13
|
+
import type { MarketplaceLevelAttributes } from './marketplace-level-attributes';
|
|
14
|
+
import type { PrimaryContact } from './primary-contact';
|
|
15
|
+
/**
|
|
16
|
+
* The response schema for the `getAccount` operation.
|
|
17
|
+
* @export
|
|
18
|
+
* @interface Account
|
|
19
|
+
*/
|
|
20
|
+
export interface Account {
|
|
21
|
+
/**
|
|
22
|
+
* A list of details of the marketplaces where the seller account is active.
|
|
23
|
+
* @type {Array<MarketplaceLevelAttributes>}
|
|
24
|
+
* @memberof Account
|
|
25
|
+
*/
|
|
26
|
+
'marketplaceLevelAttributes': Array<MarketplaceLevelAttributes>;
|
|
27
|
+
/**
|
|
28
|
+
* The type of business registered for the seller account.
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof Account
|
|
31
|
+
*/
|
|
32
|
+
'businessType': AccountBusinessTypeEnum;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {Business}
|
|
36
|
+
* @memberof Account
|
|
37
|
+
*/
|
|
38
|
+
'business'?: Business;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {PrimaryContact}
|
|
42
|
+
* @memberof Account
|
|
43
|
+
*/
|
|
44
|
+
'primaryContact'?: PrimaryContact;
|
|
45
|
+
}
|
|
46
|
+
export declare const AccountBusinessTypeEnum: {
|
|
47
|
+
readonly Charity: "CHARITY";
|
|
48
|
+
readonly Craftsman: "CRAFTSMAN";
|
|
49
|
+
readonly NaturalPersonCompany: "NATURAL_PERSON_COMPANY";
|
|
50
|
+
readonly PublicListed: "PUBLIC_LISTED";
|
|
51
|
+
readonly PrivateLimited: "PRIVATE_LIMITED";
|
|
52
|
+
readonly SoleProprietorship: "SOLE_PROPRIETORSHIP";
|
|
53
|
+
readonly StateOwned: "STATE_OWNED";
|
|
54
|
+
readonly Individual: "INDIVIDUAL";
|
|
55
|
+
};
|
|
56
|
+
export type AccountBusinessTypeEnum = typeof AccountBusinessTypeEnum[keyof typeof AccountBusinessTypeEnum];
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selling Partner API for Sellers
|
|
3
|
+
* 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: - The marketplaces a seller can list in - The default language and currency of a marketplace - Whether the seller has suspended listings Refer 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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Represents an address
|
|
14
|
+
* @export
|
|
15
|
+
* @interface Address
|
|
16
|
+
*/
|
|
17
|
+
export interface Address {
|
|
18
|
+
/**
|
|
19
|
+
* Street address information.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof Address
|
|
22
|
+
*/
|
|
23
|
+
'addressLine1': string;
|
|
24
|
+
/**
|
|
25
|
+
* Additional street address information.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof Address
|
|
28
|
+
*/
|
|
29
|
+
'addressLine2'?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The country code in two-character ISO 3166-1 alpha-2 format.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof Address
|
|
34
|
+
*/
|
|
35
|
+
'countryCode': string;
|
|
36
|
+
/**
|
|
37
|
+
* The state or province code.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof Address
|
|
40
|
+
*/
|
|
41
|
+
'stateOrProvinceCode'?: string;
|
|
42
|
+
/**
|
|
43
|
+
* The city.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof Address
|
|
46
|
+
*/
|
|
47
|
+
'city'?: string;
|
|
48
|
+
/**
|
|
49
|
+
* The postal code.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof Address
|
|
52
|
+
*/
|
|
53
|
+
'postalCode'?: string;
|
|
54
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selling Partner API for Sellers
|
|
3
|
+
* 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: - The marketplaces a seller can list in - The default language and currency of a marketplace - Whether the seller has suspended listings Refer 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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Address } from './address';
|
|
13
|
+
/**
|
|
14
|
+
* Information about the seller\'s business. Certain fields may be omitted depending on the seller\'s `businessType`.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface Business
|
|
17
|
+
*/
|
|
18
|
+
export interface Business {
|
|
19
|
+
/**
|
|
20
|
+
* The registered business name.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof Business
|
|
23
|
+
*/
|
|
24
|
+
'name': string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Address}
|
|
28
|
+
* @memberof Business
|
|
29
|
+
*/
|
|
30
|
+
'registeredBusinessAddress': Address;
|
|
31
|
+
/**
|
|
32
|
+
* The seller\'s company registration number, if applicable. This field will be absent for individual sellers and sole proprietorships.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof Business
|
|
35
|
+
*/
|
|
36
|
+
'companyRegistrationNumber'?: string;
|
|
37
|
+
/**
|
|
38
|
+
* The seller\'s company tax identification number, if applicable. This field will be present for certain business types only, such as sole proprietorships.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof Business
|
|
41
|
+
*/
|
|
42
|
+
'companyTaxIdentificationNumber'?: string;
|
|
43
|
+
/**
|
|
44
|
+
* The non-Latin script version of the registered business name, if applicable.
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof Business
|
|
47
|
+
*/
|
|
48
|
+
'nonLatinName'?: string;
|
|
49
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selling Partner API for Sellers
|
|
3
|
+
* 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: - The marketplaces a seller can list in - The default language and currency of a marketplace - Whether the seller has suspended listings Refer 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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Account } from './account';
|
|
13
|
+
/**
|
|
14
|
+
* The response schema for the `getAccount` operation.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetAccountResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface GetAccountResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Account}
|
|
22
|
+
* @memberof GetAccountResponse
|
|
23
|
+
*/
|
|
24
|
+
'payload'?: Account;
|
|
25
|
+
/**
|
|
26
|
+
* A list of error responses returned when a request is unsuccessful.
|
|
27
|
+
* @type {Array<Error>}
|
|
28
|
+
* @memberof GetAccountResponse
|
|
29
|
+
*/
|
|
30
|
+
'errors'?: Array<Error>;
|
|
31
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Selling Partner API for Sellers
|
|
3
|
-
* The Selling Partner API for Sellers
|
|
3
|
+
* 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: - The marketplaces a seller can list in - The default language and currency of a marketplace - Whether the seller has suspended listings Refer 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.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: v1
|
|
6
6
|
*
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { MarketplaceParticipation } from './marketplace-participation';
|
|
13
13
|
/**
|
|
14
|
-
* The response schema for the getMarketplaceParticipations operation.
|
|
14
|
+
* The response schema for the `getMarketplaceParticipations` operation.
|
|
15
15
|
* @export
|
|
16
16
|
* @interface GetMarketplaceParticipationsResponse
|
|
17
17
|
*/
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
export * from './account';
|
|
2
|
+
export * from './address';
|
|
3
|
+
export * from './business';
|
|
4
|
+
export * from './get-account-response';
|
|
1
5
|
export * from './get-marketplace-participations-response';
|
|
2
6
|
export * from './marketplace';
|
|
7
|
+
export * from './marketplace-level-attributes';
|
|
3
8
|
export * from './marketplace-participation';
|
|
4
9
|
export * from './model-error';
|
|
5
10
|
export * from './participation';
|
|
11
|
+
export * from './primary-contact';
|