/** * The Selling Partner API for Promotions * The Selling Partner API for Promotions enables selling partners to create and manage promotions. * * The version of the OpenAPI document: 2025-12-01 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. * */ import { ApiClient } from '../ApiClient.js'; import { GetPromotionResponse } from '../model/GetPromotionResponse.js'; import { GetSelectionResponse } from '../model/GetSelectionResponse.js'; import { SearchPromotionsResponse } from '../model/SearchPromotionsResponse.js'; /** * Promotions service. * @module promotions_v2025_12_01/api/PromotionsApi * @version 2025-12-01 */ export declare class PromotionsApi { #private; apiClient: any; /** * Constructs a new PromotionsApi. * @alias module:promotions_v2025_12_01/api/PromotionsApi * @class * @param {ApiClient} [apiClient] Optional API client implementation to use, * default to {@link ApiClient#instance} if unspecified. */ constructor(apiClient?: ApiClient); /** * Initialize rate limiters for API operations */ initializeDefaultRateLimiterMap(): void; /** * Get rate limiter for a specific operation * @param {String} operation name */ getRateLimiter(operation: string): any; /** * Retrieve details of a specified promotion. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.1 | 2 | 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](https://developer-docs.amazon/sp-api/docs/usage-plans-and-rate-limits). * @param {String} promotionId The ID of the promotion. * @param {Object} [opts] Optional parameters * @param {String[]} [opts.includedData] A comma-delimited list of datasets to include in the response. * @param {String} [opts.locale] The locale of the promotion. Formatted as an ISO 639 language code, followed by an underscore, followed by an ISO 3166-1 alpha-2 country code. (default to 'en_US') * @return {Promise} */ getPromotionWithHttpInfo(promotionId: string, opts?: { includedData?: string[]; locale?: string; }): Promise; /** * Retrieve details of a specified promotion. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.1 | 2 | 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](https://developer-docs.amazon/sp-api/docs/usage-plans-and-rate-limits). * @param {String} promotionId The ID of the promotion. * @param {Object} [opts] Optional parameters * @param {String[]} [opts.includedData] A comma-delimited list of datasets to include in the response. * @param {String} [opts.locale] The locale of the promotion. Formatted as an ISO 639 language code, followed by an underscore, followed by an ISO 3166-1 alpha-2 country code. (default to 'en_US') * @return {Promise} */ getPromotion(promotionId: string, opts?: { includedData?: string[]; locale?: string; }): Promise; /** * Retrieve up to 100 product items that are associated with a specified promotion. This operation only supports items found in `SelectionType.ITEMS`. Items found in `SelectionType.CATALOG` are not supported. Selection objects always include `selectionDetails` with item information. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.1 | 2 | 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](https://developer-docs.amazon/sp-api/docs/usage-plans-and-rate-limits). * @param {String} promotionId The ID of the promotion. * @param {String} selectionId The ID of the selection. * @param {Number} revisionId The revision identifier for the selection. Use the `revisionId` from the `getPromotion` response. A promotion may have multiple selection revisions when an update is in progress. Passing the correct `revisionId` ensures you retrieve the expected data. * @param {Object} [opts] Optional parameters * @param {String} [opts.locale] The locale of the promotion. Formatted as an ISO 639 language code, followed by an underscore, followed by an ISO 3166-1 alpha-2 country code. (default to 'en_US') * @param {String} [opts.paginationToken] A token that you use to retrieve the next page of results. The response includes `paginationToken` when the number of results exceeds the specified `limit` value. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until `paginationToken` is null. Note that this operation can return empty pages. * @param {Number} [opts.limit] The maximum number of response results per page. (default to 20) * @param {String[]} [opts.includedData] A comma-delimited list of datasets to include in the response. * @return {Promise} */ getSelectionWithHttpInfo(promotionId: string, selectionId: string, revisionId: number, opts?: { locale?: string; paginationToken?: string; limit?: number; includedData?: string[]; }): Promise; /** * Retrieve up to 100 product items that are associated with a specified promotion. This operation only supports items found in `SelectionType.ITEMS`. Items found in `SelectionType.CATALOG` are not supported. Selection objects always include `selectionDetails` with item information. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.1 | 2 | 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](https://developer-docs.amazon/sp-api/docs/usage-plans-and-rate-limits). * @param {String} promotionId The ID of the promotion. * @param {String} selectionId The ID of the selection. * @param {Number} revisionId The revision identifier for the selection. Use the `revisionId` from the `getPromotion` response. A promotion may have multiple selection revisions when an update is in progress. Passing the correct `revisionId` ensures you retrieve the expected data. * @param {Object} [opts] Optional parameters * @param {String} [opts.locale] The locale of the promotion. Formatted as an ISO 639 language code, followed by an underscore, followed by an ISO 3166-1 alpha-2 country code. (default to 'en_US') * @param {String} [opts.paginationToken] A token that you use to retrieve the next page of results. The response includes `paginationToken` when the number of results exceeds the specified `limit` value. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until `paginationToken` is null. Note that this operation can return empty pages. * @param {Number} [opts.limit] The maximum number of response results per page. (default to 20) * @param {String[]} [opts.includedData] A comma-delimited list of datasets to include in the response. * @return {Promise} */ getSelection(promotionId: string, selectionId: string, revisionId: number, opts?: { locale?: string; paginationToken?: string; limit?: number; includedData?: string[]; }): Promise; /** * Search and filter promotions based on various criteria. Returns a paginated list of promotion summaries. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.1 | 4 | 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](https://developer-docs.amazon/sp-api/docs/usage-plans-and-rate-limits). * @param {String[]} marketplaceIds The Amazon stores from which to retrieve promotions. Refer to [Store Identifiers](https://developer-docs.amazon/sp-api/docs/store-identifiers) for a list of Amazon store values. * @param {Object} [opts] Optional parameters * @param {String} [opts.locale] The locale from which to retrieve promotions. Formatted as an ISO 639 language code, followed by an underscore, followed by an ISO 3166-1 alpha-2 country code. (default to 'en_US') * @param {String[]} [opts.statuses] The statuses of promotions to retrieve, formatted as a comma-delimited list. * @param {String[]} [opts.asins] The ASINs to which promotions apply, formatted as a comma-delimited list. * @param {String[]} [opts.skus] The SKUs to which promotions apply, formatted as a comma-delimited list. * @param {String[]} [opts.promotionTypes] The promotion types to which promotions apply, formatted as a comma-delimited list. * @param {Date} [opts.startDateBefore] Promotions that start before this date are returned. Formatted in ISO 8601 format, including the timezone. For example: `1970-01-01T00:00:00-07:00`. * @param {Date} [opts.startDateAfter] Promotions that start after this date are returned. Formatted in ISO 8601 format, including the timezone. For example: `1970-01-01T00:00:00-07:00`. * @param {Date} [opts.endDateBefore] Promotions that end before this date are returned. Formatted in ISO 8601 format, including the timezone. For example: `1970-01-01T00:00:00-07:00`. * @param {Date} [opts.endDateAfter] Promotions that end after this date are returned. Formatted in ISO 8601 format, including the timezone. For example: `1970-01-01T00:00:00-07:00`. * @param {Date} [opts.updateDateAfter] Filter promotions that were last modified after this timestamp. Zoned Datetime in ISO 8601 format (e.g., 1970-01-01T00:00:00-07:00). * @param {Date} [opts.updateDateBefore] Filter promotions that were last modified before this timestamp. Zoned Datetime in ISO 8601 format (e.g., 1970-01-01T00:00:00-07:00). * @param {String} [opts.paginationToken] A token that you use to retrieve the next page of results. The response includes `paginationToken` when the number of results exceeds the specified `limit` value. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until `paginationToken` is null. Note that this operation can return empty pages. * @param {String} [opts.revision] Specifies which promotion revision or revisions to match against when filtering. This controls which promotions are included in search results, not the shape of the response. The response always returns the published revision in the main body, with `latestRevision` included when the latest revision diverges. (default to 'PUBLISHED') * @param {Number} [opts.limit] The maximum number of response results per page. (default to 20) * @param {String[]} [opts.includedData] A comma-delimited list of datasets to include in the response. * @return {Promise} */ searchPromotionsWithHttpInfo(marketplaceIds: string[], opts?: { locale?: string; statuses?: string[]; asins?: string[]; skus?: string[]; promotionTypes?: string[]; startDateBefore?: Date; startDateAfter?: Date; endDateBefore?: Date; endDateAfter?: Date; updateDateAfter?: Date; updateDateBefore?: Date; paginationToken?: string; revision?: string; limit?: number; includedData?: string[]; }): Promise; /** * Search and filter promotions based on various criteria. Returns a paginated list of promotion summaries. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.1 | 4 | 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](https://developer-docs.amazon/sp-api/docs/usage-plans-and-rate-limits). * @param {String[]} marketplaceIds The Amazon stores from which to retrieve promotions. Refer to [Store Identifiers](https://developer-docs.amazon/sp-api/docs/store-identifiers) for a list of Amazon store values. * @param {Object} [opts] Optional parameters * @param {String} [opts.locale] The locale from which to retrieve promotions. Formatted as an ISO 639 language code, followed by an underscore, followed by an ISO 3166-1 alpha-2 country code. (default to 'en_US') * @param {String[]} [opts.statuses] The statuses of promotions to retrieve, formatted as a comma-delimited list. * @param {String[]} [opts.asins] The ASINs to which promotions apply, formatted as a comma-delimited list. * @param {String[]} [opts.skus] The SKUs to which promotions apply, formatted as a comma-delimited list. * @param {String[]} [opts.promotionTypes] The promotion types to which promotions apply, formatted as a comma-delimited list. * @param {Date} [opts.startDateBefore] Promotions that start before this date are returned. Formatted in ISO 8601 format, including the timezone. For example: `1970-01-01T00:00:00-07:00`. * @param {Date} [opts.startDateAfter] Promotions that start after this date are returned. Formatted in ISO 8601 format, including the timezone. For example: `1970-01-01T00:00:00-07:00`. * @param {Date} [opts.endDateBefore] Promotions that end before this date are returned. Formatted in ISO 8601 format, including the timezone. For example: `1970-01-01T00:00:00-07:00`. * @param {Date} [opts.endDateAfter] Promotions that end after this date are returned. Formatted in ISO 8601 format, including the timezone. For example: `1970-01-01T00:00:00-07:00`. * @param {Date} [opts.updateDateAfter] Filter promotions that were last modified after this timestamp. Zoned Datetime in ISO 8601 format (e.g., 1970-01-01T00:00:00-07:00). * @param {Date} [opts.updateDateBefore] Filter promotions that were last modified before this timestamp. Zoned Datetime in ISO 8601 format (e.g., 1970-01-01T00:00:00-07:00). * @param {String} [opts.paginationToken] A token that you use to retrieve the next page of results. The response includes `paginationToken` when the number of results exceeds the specified `limit` value. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until `paginationToken` is null. Note that this operation can return empty pages. * @param {String} [opts.revision] Specifies which promotion revision or revisions to match against when filtering. This controls which promotions are included in search results, not the shape of the response. The response always returns the published revision in the main body, with `latestRevision` included when the latest revision diverges. (default to 'PUBLISHED') * @param {Number} [opts.limit] The maximum number of response results per page. (default to 20) * @param {String[]} [opts.includedData] A comma-delimited list of datasets to include in the response. * @return {Promise} */ searchPromotions(marketplaceIds: string[], opts?: { locale?: string; statuses?: string[]; asins?: string[]; skus?: string[]; promotionTypes?: string[]; startDateBefore?: Date; startDateAfter?: Date; endDateBefore?: Date; endDateAfter?: Date; updateDateAfter?: Date; updateDateBefore?: Date; paginationToken?: string; revision?: string; limit?: number; includedData?: string[]; }): Promise; } //# sourceMappingURL=PromotionsApi.d.ts.map