/* * Selling Partner API for FBA Small And Light * * The Selling Partner API for FBA Small and Light lets you help sellers manage their listings in the Small and Light program. The program reduces the cost of fulfilling orders for small and lightweight FBA inventory. You can enroll or remove items from the program and check item eligibility and enrollment status. You can also preview the estimated program fees charged to a seller for items sold while enrolled in the program. * * OpenAPI spec version: v1 * * Generated by: https://github.com/swagger-api/swagger-codegen.git */ using FikaAmazonAPI.AmazonSpApiSDK.Clients; using FikaAmazonAPI.AmazonSpApiSDK.Models.FbaSmallandLight; using RestSharp; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; namespace FikaAmazonAPI.AmazonSpApiSDK.Api.FbaSmallandLight { /// /// Represents a collection of functions to interact with the API endpoints /// public interface ISmallAndLightApi : IApiAccessor { #region Synchronous Operations /// /// /// /// /// Removes the item indicated by the specified seller SKU from the Small and Light program in the specified marketplace. If the item is not eligible for disenrollment, the ineligibility reasons are returned. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 2 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. /// /// Thrown when fails to make API call /// The seller SKU that identifies the item. /// The marketplace in which to remove the item from the Small and Light program. Note: Accepts a single marketplace only. /// void DeleteSmallAndLightEnrollmentBySellerSKU(string sellerSKU, List marketplaceIds); /// /// /// /// /// Removes the item indicated by the specified seller SKU from the Small and Light program in the specified marketplace. If the item is not eligible for disenrollment, the ineligibility reasons are returned. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 2 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. /// /// Thrown when fails to make API call /// The seller SKU that identifies the item. /// The marketplace in which to remove the item from the Small and Light program. Note: Accepts a single marketplace only. /// ApiResponse of Object(void) ApiResponse DeleteSmallAndLightEnrollmentBySellerSKUWithHttpInfo(string sellerSKU, List marketplaceIds); /// /// /// /// /// Returns the Small and Light program eligibility status of the item indicated by the specified seller SKU in the specified marketplace. If the item is not eligible, the ineligibility reasons are returned. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 2 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. /// /// Thrown when fails to make API call /// The seller SKU that identifies the item. /// The marketplace for which the eligibility status is retrieved. NOTE: Accepts a single marketplace only. /// SmallAndLightEligibility SmallAndLightEligibility GetSmallAndLightEligibilityBySellerSKU(string sellerSKU, List marketplaceIds); /// /// /// /// /// Returns the Small and Light program eligibility status of the item indicated by the specified seller SKU in the specified marketplace. If the item is not eligible, the ineligibility reasons are returned. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 2 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. /// /// Thrown when fails to make API call /// The seller SKU that identifies the item. /// The marketplace for which the eligibility status is retrieved. NOTE: Accepts a single marketplace only. /// ApiResponse of SmallAndLightEligibility ApiResponse GetSmallAndLightEligibilityBySellerSKUWithHttpInfo(string sellerSKU, List marketplaceIds); /// /// /// /// /// Returns the Small and Light enrollment status for the item indicated by the specified seller SKU in the specified marketplace. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 2 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. /// /// Thrown when fails to make API call /// The seller SKU that identifies the item. /// The marketplace for which the enrollment status is retrieved. Note: Accepts a single marketplace only. /// SmallAndLightEnrollment SmallAndLightEnrollment GetSmallAndLightEnrollmentBySellerSKU(string sellerSKU, List marketplaceIds); /// /// /// /// /// Returns the Small and Light enrollment status for the item indicated by the specified seller SKU in the specified marketplace. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 2 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. /// /// Thrown when fails to make API call /// The seller SKU that identifies the item. /// The marketplace for which the enrollment status is retrieved. Note: Accepts a single marketplace only. /// ApiResponse of SmallAndLightEnrollment ApiResponse GetSmallAndLightEnrollmentBySellerSKUWithHttpInfo(string sellerSKU, List marketplaceIds); /// /// /// /// /// Returns the Small and Light fee estimates for the specified items. You must include a marketplaceId parameter to retrieve the proper fee estimates for items to be sold in that marketplace. The ordering of items in the response will mirror the order of the items in the request. Duplicate ASIN/price combinations are removed. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 1 | 3 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. /// /// Thrown when fails to make API call /// /// SmallAndLightFeePreviews SmallAndLightFeePreviews GetSmallAndLightFeePreview(SmallAndLightFeePreviewRequest body); /// /// /// /// /// Returns the Small and Light fee estimates for the specified items. You must include a marketplaceId parameter to retrieve the proper fee estimates for items to be sold in that marketplace. The ordering of items in the response will mirror the order of the items in the request. Duplicate ASIN/price combinations are removed. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 1 | 3 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. /// /// Thrown when fails to make API call /// /// ApiResponse of SmallAndLightFeePreviews ApiResponse GetSmallAndLightFeePreviewWithHttpInfo(SmallAndLightFeePreviewRequest body); /// /// /// /// /// Enrolls the item indicated by the specified seller SKU in the Small and Light program in the specified marketplace. If the item is not eligible, the ineligibility reasons are returned. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 2 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. /// /// Thrown when fails to make API call /// The seller SKU that identifies the item. /// The marketplace in which to enroll the item. Note: Accepts a single marketplace only. /// SmallAndLightEnrollment SmallAndLightEnrollment PutSmallAndLightEnrollmentBySellerSKU(string sellerSKU, List marketplaceIds); /// /// /// /// /// Enrolls the item indicated by the specified seller SKU in the Small and Light program in the specified marketplace. If the item is not eligible, the ineligibility reasons are returned. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 2 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. /// /// Thrown when fails to make API call /// The seller SKU that identifies the item. /// The marketplace in which to enroll the item. Note: Accepts a single marketplace only. /// ApiResponse of SmallAndLightEnrollment ApiResponse PutSmallAndLightEnrollmentBySellerSKUWithHttpInfo(string sellerSKU, List marketplaceIds); #endregion Synchronous Operations #region Asynchronous Operations /// /// /// /// /// Removes the item indicated by the specified seller SKU from the Small and Light program in the specified marketplace. If the item is not eligible for disenrollment, the ineligibility reasons are returned. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 2 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. /// /// Thrown when fails to make API call /// The seller SKU that identifies the item. /// The marketplace in which to remove the item from the Small and Light program. Note: Accepts a single marketplace only. /// Task of void System.Threading.Tasks.Task DeleteSmallAndLightEnrollmentBySellerSKUAsync(string sellerSKU, List marketplaceIds); /// /// /// /// /// Removes the item indicated by the specified seller SKU from the Small and Light program in the specified marketplace. If the item is not eligible for disenrollment, the ineligibility reasons are returned. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 2 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. /// /// Thrown when fails to make API call /// The seller SKU that identifies the item. /// The marketplace in which to remove the item from the Small and Light program. Note: Accepts a single marketplace only. /// Task of ApiResponse System.Threading.Tasks.Task> DeleteSmallAndLightEnrollmentBySellerSKUAsyncWithHttpInfo(string sellerSKU, List marketplaceIds); /// /// /// /// /// Returns the Small and Light program eligibility status of the item indicated by the specified seller SKU in the specified marketplace. If the item is not eligible, the ineligibility reasons are returned. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 2 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. /// /// Thrown when fails to make API call /// The seller SKU that identifies the item. /// The marketplace for which the eligibility status is retrieved. NOTE: Accepts a single marketplace only. /// Task of SmallAndLightEligibility System.Threading.Tasks.Task GetSmallAndLightEligibilityBySellerSKUAsync(string sellerSKU, List marketplaceIds); /// /// /// /// /// Returns the Small and Light program eligibility status of the item indicated by the specified seller SKU in the specified marketplace. If the item is not eligible, the ineligibility reasons are returned. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 2 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. /// /// Thrown when fails to make API call /// The seller SKU that identifies the item. /// The marketplace for which the eligibility status is retrieved. NOTE: Accepts a single marketplace only. /// Task of ApiResponse (SmallAndLightEligibility) System.Threading.Tasks.Task> GetSmallAndLightEligibilityBySellerSKUAsyncWithHttpInfo(string sellerSKU, List marketplaceIds); /// /// /// /// /// Returns the Small and Light enrollment status for the item indicated by the specified seller SKU in the specified marketplace. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 2 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. /// /// Thrown when fails to make API call /// The seller SKU that identifies the item. /// The marketplace for which the enrollment status is retrieved. Note: Accepts a single marketplace only. /// Task of SmallAndLightEnrollment System.Threading.Tasks.Task GetSmallAndLightEnrollmentBySellerSKUAsync(string sellerSKU, List marketplaceIds); /// /// /// /// /// Returns the Small and Light enrollment status for the item indicated by the specified seller SKU in the specified marketplace. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 2 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. /// /// Thrown when fails to make API call /// The seller SKU that identifies the item. /// The marketplace for which the enrollment status is retrieved. Note: Accepts a single marketplace only. /// Task of ApiResponse (SmallAndLightEnrollment) System.Threading.Tasks.Task> GetSmallAndLightEnrollmentBySellerSKUAsyncWithHttpInfo(string sellerSKU, List marketplaceIds); /// /// /// /// /// Returns the Small and Light fee estimates for the specified items. You must include a marketplaceId parameter to retrieve the proper fee estimates for items to be sold in that marketplace. The ordering of items in the response will mirror the order of the items in the request. Duplicate ASIN/price combinations are removed. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 1 | 3 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. /// /// Thrown when fails to make API call /// /// Task of SmallAndLightFeePreviews System.Threading.Tasks.Task GetSmallAndLightFeePreviewAsync(SmallAndLightFeePreviewRequest body); /// /// /// /// /// Returns the Small and Light fee estimates for the specified items. You must include a marketplaceId parameter to retrieve the proper fee estimates for items to be sold in that marketplace. The ordering of items in the response will mirror the order of the items in the request. Duplicate ASIN/price combinations are removed. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 1 | 3 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. /// /// Thrown when fails to make API call /// /// Task of ApiResponse (SmallAndLightFeePreviews) System.Threading.Tasks.Task> GetSmallAndLightFeePreviewAsyncWithHttpInfo(SmallAndLightFeePreviewRequest body); /// /// /// /// /// Enrolls the item indicated by the specified seller SKU in the Small and Light program in the specified marketplace. If the item is not eligible, the ineligibility reasons are returned. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 2 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. /// /// Thrown when fails to make API call /// The seller SKU that identifies the item. /// The marketplace in which to enroll the item. Note: Accepts a single marketplace only. /// Task of SmallAndLightEnrollment System.Threading.Tasks.Task PutSmallAndLightEnrollmentBySellerSKUAsync(string sellerSKU, List marketplaceIds); /// /// /// /// /// Enrolls the item indicated by the specified seller SKU in the Small and Light program in the specified marketplace. If the item is not eligible, the ineligibility reasons are returned. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 2 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. /// /// Thrown when fails to make API call /// The seller SKU that identifies the item. /// The marketplace in which to enroll the item. Note: Accepts a single marketplace only. /// Task of ApiResponse (SmallAndLightEnrollment) System.Threading.Tasks.Task> PutSmallAndLightEnrollmentBySellerSKUAsyncWithHttpInfo(string sellerSKU, List marketplaceIds); #endregion Asynchronous Operations } /// /// Represents a collection of functions to interact with the API endpoints /// public partial class SmallAndLightApi : ISmallAndLightApi { private ExceptionFactory _exceptionFactory = (name, response) => null; /// /// Initializes a new instance of the class. /// /// public SmallAndLightApi(string basePath) { Configuration = new Configuration { BasePath = basePath }; ExceptionFactory = Configuration.DefaultExceptionFactory; } /// /// Initializes a new instance of the class /// using Configuration object /// /// An instance of Configuration /// public SmallAndLightApi(Configuration configuration = null) { if (configuration == null) // use the default one in Configuration Configuration = Configuration.Default; else Configuration = configuration; ExceptionFactory = Configuration.DefaultExceptionFactory; } /// /// Gets the base path of the API client. /// /// The base path public string GetBasePath() { return Configuration.ApiClient.RestClient.BaseUrl.ToString(); } /// /// Sets the base path of the API client. /// /// The base path [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] public void SetBasePath(string basePath) { // do nothing } /// /// Gets or sets the configuration object /// /// An instance of the Configuration public Configuration Configuration { get; set; } /// /// Provides a factory method hook for the creation of exceptions. /// public ExceptionFactory ExceptionFactory { get { if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) { throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); } return _exceptionFactory; } set { _exceptionFactory = value; } } /// /// Gets the default header. /// /// Dictionary of HTTP header [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] public IDictionary DefaultHeader() { return new ReadOnlyDictionary(Configuration.DefaultHeader); } /// /// Add default header. /// /// Header field name. /// Header field value. /// [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] public void AddDefaultHeader(string key, string value) { Configuration.AddDefaultHeader(key, value); } /// /// Removes the item indicated by the specified seller SKU from the Small and Light program in the specified marketplace. If the item is not eligible for disenrollment, the ineligibility reasons are returned. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 2 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. /// /// Thrown when fails to make API call /// The seller SKU that identifies the item. /// The marketplace in which to remove the item from the Small and Light program. Note: Accepts a single marketplace only. /// public void DeleteSmallAndLightEnrollmentBySellerSKU(string sellerSKU, List marketplaceIds) { DeleteSmallAndLightEnrollmentBySellerSKUWithHttpInfo(sellerSKU, marketplaceIds); } /// /// Removes the item indicated by the specified seller SKU from the Small and Light program in the specified marketplace. If the item is not eligible for disenrollment, the ineligibility reasons are returned. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 2 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. /// /// Thrown when fails to make API call /// The seller SKU that identifies the item. /// The marketplace in which to remove the item from the Small and Light program. Note: Accepts a single marketplace only. /// ApiResponse of Object(void) public ApiResponse DeleteSmallAndLightEnrollmentBySellerSKUWithHttpInfo(string sellerSKU, List marketplaceIds) { // verify the required parameter 'sellerSKU' is set if (sellerSKU == null) throw new ApiException(400, "Missing required parameter 'sellerSKU' when calling SmallAndLightApi->DeleteSmallAndLightEnrollmentBySellerSKU"); // verify the required parameter 'marketplaceIds' is set if (marketplaceIds == null) throw new ApiException(400, "Missing required parameter 'marketplaceIds' when calling SmallAndLightApi->DeleteSmallAndLightEnrollmentBySellerSKU"); var localVarPath = "/fba/smallAndLight/v1/enrollments/{sellerSKU}"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); var localVarFileParams = new Dictionary(); object localVarPostBody = null; // to determine the Content-Type header string[] localVarHttpContentTypes = new string[] { "application/json" }; string localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header string[] localVarHttpHeaderAccepts = new string[] { "application/json" }; string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (sellerSKU != null) localVarPathParams.Add("sellerSKU", Configuration.ApiClient.ParameterToString(sellerSKU)); // path parameter if (marketplaceIds != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("csv", "marketplaceIds", marketplaceIds)); // query parameter // make the HTTP request IRestResponse localVarResponse = (IRestResponse)Configuration.ApiClient.CallApi(localVarPath, Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int)localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("DeleteSmallAndLightEnrollmentBySellerSKU", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), null); } /// /// Removes the item indicated by the specified seller SKU from the Small and Light program in the specified marketplace. If the item is not eligible for disenrollment, the ineligibility reasons are returned. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 2 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. /// /// Thrown when fails to make API call /// The seller SKU that identifies the item. /// The marketplace in which to remove the item from the Small and Light program. Note: Accepts a single marketplace only. /// Task of void public async System.Threading.Tasks.Task DeleteSmallAndLightEnrollmentBySellerSKUAsync(string sellerSKU, List marketplaceIds) { await DeleteSmallAndLightEnrollmentBySellerSKUAsyncWithHttpInfo(sellerSKU, marketplaceIds); } /// /// Removes the item indicated by the specified seller SKU from the Small and Light program in the specified marketplace. If the item is not eligible for disenrollment, the ineligibility reasons are returned. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 2 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. /// /// Thrown when fails to make API call /// The seller SKU that identifies the item. /// The marketplace in which to remove the item from the Small and Light program. Note: Accepts a single marketplace only. /// Task of ApiResponse public async System.Threading.Tasks.Task> DeleteSmallAndLightEnrollmentBySellerSKUAsyncWithHttpInfo(string sellerSKU, List marketplaceIds) { // verify the required parameter 'sellerSKU' is set if (sellerSKU == null) throw new ApiException(400, "Missing required parameter 'sellerSKU' when calling SmallAndLightApi->DeleteSmallAndLightEnrollmentBySellerSKU"); // verify the required parameter 'marketplaceIds' is set if (marketplaceIds == null) throw new ApiException(400, "Missing required parameter 'marketplaceIds' when calling SmallAndLightApi->DeleteSmallAndLightEnrollmentBySellerSKU"); var localVarPath = "/fba/smallAndLight/v1/enrollments/{sellerSKU}"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); var localVarFileParams = new Dictionary(); object localVarPostBody = null; // to determine the Content-Type header string[] localVarHttpContentTypes = new string[] { "application/json" }; string localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header string[] localVarHttpHeaderAccepts = new string[] { "application/json" }; string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (sellerSKU != null) localVarPathParams.Add("sellerSKU", Configuration.ApiClient.ParameterToString(sellerSKU)); // path parameter if (marketplaceIds != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("csv", "marketplaceIds", marketplaceIds)); // query parameter // make the HTTP request IRestResponse localVarResponse = (IRestResponse)await Configuration.ApiClient.CallApiAsync(localVarPath, Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int)localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("DeleteSmallAndLightEnrollmentBySellerSKU", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), null); } /// /// Returns the Small and Light program eligibility status of the item indicated by the specified seller SKU in the specified marketplace. If the item is not eligible, the ineligibility reasons are returned. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 2 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. /// /// Thrown when fails to make API call /// The seller SKU that identifies the item. /// The marketplace for which the eligibility status is retrieved. NOTE: Accepts a single marketplace only. /// SmallAndLightEligibility public SmallAndLightEligibility GetSmallAndLightEligibilityBySellerSKU(string sellerSKU, List marketplaceIds) { ApiResponse localVarResponse = GetSmallAndLightEligibilityBySellerSKUWithHttpInfo(sellerSKU, marketplaceIds); return localVarResponse.Data; } /// /// Returns the Small and Light program eligibility status of the item indicated by the specified seller SKU in the specified marketplace. If the item is not eligible, the ineligibility reasons are returned. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 2 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. /// /// Thrown when fails to make API call /// The seller SKU that identifies the item. /// The marketplace for which the eligibility status is retrieved. NOTE: Accepts a single marketplace only. /// ApiResponse of SmallAndLightEligibility public ApiResponse GetSmallAndLightEligibilityBySellerSKUWithHttpInfo(string sellerSKU, List marketplaceIds) { // verify the required parameter 'sellerSKU' is set if (sellerSKU == null) throw new ApiException(400, "Missing required parameter 'sellerSKU' when calling SmallAndLightApi->GetSmallAndLightEligibilityBySellerSKU"); // verify the required parameter 'marketplaceIds' is set if (marketplaceIds == null) throw new ApiException(400, "Missing required parameter 'marketplaceIds' when calling SmallAndLightApi->GetSmallAndLightEligibilityBySellerSKU"); var localVarPath = "/fba/smallAndLight/v1/eligibilities/{sellerSKU}"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); var localVarFileParams = new Dictionary(); object localVarPostBody = null; // to determine the Content-Type header string[] localVarHttpContentTypes = new string[] { "application/json" }; string localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header string[] localVarHttpHeaderAccepts = new string[] { "application/json" }; string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (sellerSKU != null) localVarPathParams.Add("sellerSKU", Configuration.ApiClient.ParameterToString(sellerSKU)); // path parameter if (marketplaceIds != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("csv", "marketplaceIds", marketplaceIds)); // query parameter // make the HTTP request IRestResponse localVarResponse = (IRestResponse)Configuration.ApiClient.CallApi(localVarPath, Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int)localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("GetSmallAndLightEligibilityBySellerSKU", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), (SmallAndLightEligibility)Configuration.ApiClient.Deserialize(localVarResponse, typeof(SmallAndLightEligibility))); } /// /// Returns the Small and Light program eligibility status of the item indicated by the specified seller SKU in the specified marketplace. If the item is not eligible, the ineligibility reasons are returned. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 2 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. /// /// Thrown when fails to make API call /// The seller SKU that identifies the item. /// The marketplace for which the eligibility status is retrieved. NOTE: Accepts a single marketplace only. /// Task of SmallAndLightEligibility public async System.Threading.Tasks.Task GetSmallAndLightEligibilityBySellerSKUAsync(string sellerSKU, List marketplaceIds) { ApiResponse localVarResponse = await GetSmallAndLightEligibilityBySellerSKUAsyncWithHttpInfo(sellerSKU, marketplaceIds); return localVarResponse.Data; } /// /// Returns the Small and Light program eligibility status of the item indicated by the specified seller SKU in the specified marketplace. If the item is not eligible, the ineligibility reasons are returned. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 2 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. /// /// Thrown when fails to make API call /// The seller SKU that identifies the item. /// The marketplace for which the eligibility status is retrieved. NOTE: Accepts a single marketplace only. /// Task of ApiResponse (SmallAndLightEligibility) public async System.Threading.Tasks.Task> GetSmallAndLightEligibilityBySellerSKUAsyncWithHttpInfo(string sellerSKU, List marketplaceIds) { // verify the required parameter 'sellerSKU' is set if (sellerSKU == null) throw new ApiException(400, "Missing required parameter 'sellerSKU' when calling SmallAndLightApi->GetSmallAndLightEligibilityBySellerSKU"); // verify the required parameter 'marketplaceIds' is set if (marketplaceIds == null) throw new ApiException(400, "Missing required parameter 'marketplaceIds' when calling SmallAndLightApi->GetSmallAndLightEligibilityBySellerSKU"); var localVarPath = "/fba/smallAndLight/v1/eligibilities/{sellerSKU}"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); var localVarFileParams = new Dictionary(); object localVarPostBody = null; // to determine the Content-Type header string[] localVarHttpContentTypes = new string[] { "application/json" }; string localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header string[] localVarHttpHeaderAccepts = new string[] { "application/json" }; string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (sellerSKU != null) localVarPathParams.Add("sellerSKU", Configuration.ApiClient.ParameterToString(sellerSKU)); // path parameter if (marketplaceIds != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("csv", "marketplaceIds", marketplaceIds)); // query parameter // make the HTTP request IRestResponse localVarResponse = (IRestResponse)await Configuration.ApiClient.CallApiAsync(localVarPath, Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int)localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("GetSmallAndLightEligibilityBySellerSKU", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), (SmallAndLightEligibility)Configuration.ApiClient.Deserialize(localVarResponse, typeof(SmallAndLightEligibility))); } /// /// Returns the Small and Light enrollment status for the item indicated by the specified seller SKU in the specified marketplace. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 2 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. /// /// Thrown when fails to make API call /// The seller SKU that identifies the item. /// The marketplace for which the enrollment status is retrieved. Note: Accepts a single marketplace only. /// SmallAndLightEnrollment public SmallAndLightEnrollment GetSmallAndLightEnrollmentBySellerSKU(string sellerSKU, List marketplaceIds) { ApiResponse localVarResponse = GetSmallAndLightEnrollmentBySellerSKUWithHttpInfo(sellerSKU, marketplaceIds); return localVarResponse.Data; } /// /// Returns the Small and Light enrollment status for the item indicated by the specified seller SKU in the specified marketplace. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 2 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. /// /// Thrown when fails to make API call /// The seller SKU that identifies the item. /// The marketplace for which the enrollment status is retrieved. Note: Accepts a single marketplace only. /// ApiResponse of SmallAndLightEnrollment public ApiResponse GetSmallAndLightEnrollmentBySellerSKUWithHttpInfo(string sellerSKU, List marketplaceIds) { // verify the required parameter 'sellerSKU' is set if (sellerSKU == null) throw new ApiException(400, "Missing required parameter 'sellerSKU' when calling SmallAndLightApi->GetSmallAndLightEnrollmentBySellerSKU"); // verify the required parameter 'marketplaceIds' is set if (marketplaceIds == null) throw new ApiException(400, "Missing required parameter 'marketplaceIds' when calling SmallAndLightApi->GetSmallAndLightEnrollmentBySellerSKU"); var localVarPath = "/fba/smallAndLight/v1/enrollments/{sellerSKU}"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); var localVarFileParams = new Dictionary(); object localVarPostBody = null; // to determine the Content-Type header string[] localVarHttpContentTypes = new string[] { "application/json" }; string localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header string[] localVarHttpHeaderAccepts = new string[] { "application/json" }; string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (sellerSKU != null) localVarPathParams.Add("sellerSKU", Configuration.ApiClient.ParameterToString(sellerSKU)); // path parameter if (marketplaceIds != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("csv", "marketplaceIds", marketplaceIds)); // query parameter // make the HTTP request IRestResponse localVarResponse = (IRestResponse)Configuration.ApiClient.CallApi(localVarPath, Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int)localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("GetSmallAndLightEnrollmentBySellerSKU", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), (SmallAndLightEnrollment)Configuration.ApiClient.Deserialize(localVarResponse, typeof(SmallAndLightEnrollment))); } /// /// Returns the Small and Light enrollment status for the item indicated by the specified seller SKU in the specified marketplace. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 2 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. /// /// Thrown when fails to make API call /// The seller SKU that identifies the item. /// The marketplace for which the enrollment status is retrieved. Note: Accepts a single marketplace only. /// Task of SmallAndLightEnrollment public async System.Threading.Tasks.Task GetSmallAndLightEnrollmentBySellerSKUAsync(string sellerSKU, List marketplaceIds) { ApiResponse localVarResponse = await GetSmallAndLightEnrollmentBySellerSKUAsyncWithHttpInfo(sellerSKU, marketplaceIds); return localVarResponse.Data; } /// /// Returns the Small and Light enrollment status for the item indicated by the specified seller SKU in the specified marketplace. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 2 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. /// /// Thrown when fails to make API call /// The seller SKU that identifies the item. /// The marketplace for which the enrollment status is retrieved. Note: Accepts a single marketplace only. /// Task of ApiResponse (SmallAndLightEnrollment) public async System.Threading.Tasks.Task> GetSmallAndLightEnrollmentBySellerSKUAsyncWithHttpInfo(string sellerSKU, List marketplaceIds) { // verify the required parameter 'sellerSKU' is set if (sellerSKU == null) throw new ApiException(400, "Missing required parameter 'sellerSKU' when calling SmallAndLightApi->GetSmallAndLightEnrollmentBySellerSKU"); // verify the required parameter 'marketplaceIds' is set if (marketplaceIds == null) throw new ApiException(400, "Missing required parameter 'marketplaceIds' when calling SmallAndLightApi->GetSmallAndLightEnrollmentBySellerSKU"); var localVarPath = "/fba/smallAndLight/v1/enrollments/{sellerSKU}"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); var localVarFileParams = new Dictionary(); object localVarPostBody = null; // to determine the Content-Type header string[] localVarHttpContentTypes = new string[] { "application/json" }; string localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header string[] localVarHttpHeaderAccepts = new string[] { "application/json" }; string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (sellerSKU != null) localVarPathParams.Add("sellerSKU", Configuration.ApiClient.ParameterToString(sellerSKU)); // path parameter if (marketplaceIds != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("csv", "marketplaceIds", marketplaceIds)); // query parameter // make the HTTP request IRestResponse localVarResponse = (IRestResponse)await Configuration.ApiClient.CallApiAsync(localVarPath, Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int)localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("GetSmallAndLightEnrollmentBySellerSKU", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), (SmallAndLightEnrollment)Configuration.ApiClient.Deserialize(localVarResponse, typeof(SmallAndLightEnrollment))); } /// /// Returns the Small and Light fee estimates for the specified items. You must include a marketplaceId parameter to retrieve the proper fee estimates for items to be sold in that marketplace. The ordering of items in the response will mirror the order of the items in the request. Duplicate ASIN/price combinations are removed. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 1 | 3 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. /// /// Thrown when fails to make API call /// /// SmallAndLightFeePreviews public SmallAndLightFeePreviews GetSmallAndLightFeePreview(SmallAndLightFeePreviewRequest body) { ApiResponse localVarResponse = GetSmallAndLightFeePreviewWithHttpInfo(body); return localVarResponse.Data; } /// /// Returns the Small and Light fee estimates for the specified items. You must include a marketplaceId parameter to retrieve the proper fee estimates for items to be sold in that marketplace. The ordering of items in the response will mirror the order of the items in the request. Duplicate ASIN/price combinations are removed. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 1 | 3 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. /// /// Thrown when fails to make API call /// /// ApiResponse of SmallAndLightFeePreviews public ApiResponse GetSmallAndLightFeePreviewWithHttpInfo(SmallAndLightFeePreviewRequest body) { // verify the required parameter 'body' is set if (body == null) throw new ApiException(400, "Missing required parameter 'body' when calling SmallAndLightApi->GetSmallAndLightFeePreview"); var localVarPath = "/fba/smallAndLight/v1/feePreviews"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); var localVarFileParams = new Dictionary(); object localVarPostBody = null; // to determine the Content-Type header string[] localVarHttpContentTypes = new string[] { "application/json" }; string localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header string[] localVarHttpHeaderAccepts = new string[] { "application/json" }; string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (body != null && body.GetType() != typeof(byte[])) { localVarPostBody = Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { localVarPostBody = body; // byte array } // make the HTTP request IRestResponse localVarResponse = (IRestResponse)Configuration.ApiClient.CallApi(localVarPath, Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int)localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("GetSmallAndLightFeePreview", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), (SmallAndLightFeePreviews)Configuration.ApiClient.Deserialize(localVarResponse, typeof(SmallAndLightFeePreviews))); } /// /// Returns the Small and Light fee estimates for the specified items. You must include a marketplaceId parameter to retrieve the proper fee estimates for items to be sold in that marketplace. The ordering of items in the response will mirror the order of the items in the request. Duplicate ASIN/price combinations are removed. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 1 | 3 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. /// /// Thrown when fails to make API call /// /// Task of SmallAndLightFeePreviews public async System.Threading.Tasks.Task GetSmallAndLightFeePreviewAsync(SmallAndLightFeePreviewRequest body) { ApiResponse localVarResponse = await GetSmallAndLightFeePreviewAsyncWithHttpInfo(body); return localVarResponse.Data; } /// /// Returns the Small and Light fee estimates for the specified items. You must include a marketplaceId parameter to retrieve the proper fee estimates for items to be sold in that marketplace. The ordering of items in the response will mirror the order of the items in the request. Duplicate ASIN/price combinations are removed. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 1 | 3 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. /// /// Thrown when fails to make API call /// /// Task of ApiResponse (SmallAndLightFeePreviews) public async System.Threading.Tasks.Task> GetSmallAndLightFeePreviewAsyncWithHttpInfo(SmallAndLightFeePreviewRequest body) { // verify the required parameter 'body' is set if (body == null) throw new ApiException(400, "Missing required parameter 'body' when calling SmallAndLightApi->GetSmallAndLightFeePreview"); var localVarPath = "/fba/smallAndLight/v1/feePreviews"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); var localVarFileParams = new Dictionary(); object localVarPostBody = null; // to determine the Content-Type header string[] localVarHttpContentTypes = new string[] { "application/json" }; string localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header string[] localVarHttpHeaderAccepts = new string[] { "application/json" }; string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (body != null && body.GetType() != typeof(byte[])) { localVarPostBody = Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { localVarPostBody = body; // byte array } // make the HTTP request IRestResponse localVarResponse = (IRestResponse)await Configuration.ApiClient.CallApiAsync(localVarPath, Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int)localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("GetSmallAndLightFeePreview", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), (SmallAndLightFeePreviews)Configuration.ApiClient.Deserialize(localVarResponse, typeof(SmallAndLightFeePreviews))); } /// /// Enrolls the item indicated by the specified seller SKU in the Small and Light program in the specified marketplace. If the item is not eligible, the ineligibility reasons are returned. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 2 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. /// /// Thrown when fails to make API call /// The seller SKU that identifies the item. /// The marketplace in which to enroll the item. Note: Accepts a single marketplace only. /// SmallAndLightEnrollment public SmallAndLightEnrollment PutSmallAndLightEnrollmentBySellerSKU(string sellerSKU, List marketplaceIds) { ApiResponse localVarResponse = PutSmallAndLightEnrollmentBySellerSKUWithHttpInfo(sellerSKU, marketplaceIds); return localVarResponse.Data; } /// /// Enrolls the item indicated by the specified seller SKU in the Small and Light program in the specified marketplace. If the item is not eligible, the ineligibility reasons are returned. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 2 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. /// /// Thrown when fails to make API call /// The seller SKU that identifies the item. /// The marketplace in which to enroll the item. Note: Accepts a single marketplace only. /// ApiResponse of SmallAndLightEnrollment public ApiResponse PutSmallAndLightEnrollmentBySellerSKUWithHttpInfo(string sellerSKU, List marketplaceIds) { // verify the required parameter 'sellerSKU' is set if (sellerSKU == null) throw new ApiException(400, "Missing required parameter 'sellerSKU' when calling SmallAndLightApi->PutSmallAndLightEnrollmentBySellerSKU"); // verify the required parameter 'marketplaceIds' is set if (marketplaceIds == null) throw new ApiException(400, "Missing required parameter 'marketplaceIds' when calling SmallAndLightApi->PutSmallAndLightEnrollmentBySellerSKU"); var localVarPath = "/fba/smallAndLight/v1/enrollments/{sellerSKU}"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); var localVarFileParams = new Dictionary(); object localVarPostBody = null; // to determine the Content-Type header string[] localVarHttpContentTypes = new string[] { "application/json" }; string localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header string[] localVarHttpHeaderAccepts = new string[] { "application/json" }; string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (sellerSKU != null) localVarPathParams.Add("sellerSKU", Configuration.ApiClient.ParameterToString(sellerSKU)); // path parameter if (marketplaceIds != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("csv", "marketplaceIds", marketplaceIds)); // query parameter // make the HTTP request IRestResponse localVarResponse = (IRestResponse)Configuration.ApiClient.CallApi(localVarPath, Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int)localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("PutSmallAndLightEnrollmentBySellerSKU", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), (SmallAndLightEnrollment)Configuration.ApiClient.Deserialize(localVarResponse, typeof(SmallAndLightEnrollment))); } /// /// Enrolls the item indicated by the specified seller SKU in the Small and Light program in the specified marketplace. If the item is not eligible, the ineligibility reasons are returned. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 2 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. /// /// Thrown when fails to make API call /// The seller SKU that identifies the item. /// The marketplace in which to enroll the item. Note: Accepts a single marketplace only. /// Task of SmallAndLightEnrollment public async System.Threading.Tasks.Task PutSmallAndLightEnrollmentBySellerSKUAsync(string sellerSKU, List marketplaceIds) { ApiResponse localVarResponse = await PutSmallAndLightEnrollmentBySellerSKUAsyncWithHttpInfo(sellerSKU, marketplaceIds); return localVarResponse.Data; } /// /// Enrolls the item indicated by the specified seller SKU in the Small and Light program in the specified marketplace. If the item is not eligible, the ineligibility reasons are returned. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 2 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. /// /// Thrown when fails to make API call /// The seller SKU that identifies the item. /// The marketplace in which to enroll the item. Note: Accepts a single marketplace only. /// Task of ApiResponse (SmallAndLightEnrollment) public async System.Threading.Tasks.Task> PutSmallAndLightEnrollmentBySellerSKUAsyncWithHttpInfo(string sellerSKU, List marketplaceIds) { // verify the required parameter 'sellerSKU' is set if (sellerSKU == null) throw new ApiException(400, "Missing required parameter 'sellerSKU' when calling SmallAndLightApi->PutSmallAndLightEnrollmentBySellerSKU"); // verify the required parameter 'marketplaceIds' is set if (marketplaceIds == null) throw new ApiException(400, "Missing required parameter 'marketplaceIds' when calling SmallAndLightApi->PutSmallAndLightEnrollmentBySellerSKU"); var localVarPath = "/fba/smallAndLight/v1/enrollments/{sellerSKU}"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); var localVarFileParams = new Dictionary(); object localVarPostBody = null; // to determine the Content-Type header string[] localVarHttpContentTypes = new string[] { "application/json" }; string localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header string[] localVarHttpHeaderAccepts = new string[] { "application/json" }; string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (sellerSKU != null) localVarPathParams.Add("sellerSKU", Configuration.ApiClient.ParameterToString(sellerSKU)); // path parameter if (marketplaceIds != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("csv", "marketplaceIds", marketplaceIds)); // query parameter // make the HTTP request IRestResponse localVarResponse = (IRestResponse)await Configuration.ApiClient.CallApiAsync(localVarPath, Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int)localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("PutSmallAndLightEnrollmentBySellerSKU", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), (SmallAndLightEnrollment)Configuration.ApiClient.Deserialize(localVarResponse, typeof(SmallAndLightEnrollment))); } } }