fba-small-and-light-api-model¶ ↑
AmzSpApi::FbaSmallAndLightApiModel
- the Ruby gem for the 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.
This SDK is automatically generated by the Swagger Codegen project:
-
API version: v1
-
Package version: 0.1.0
-
Build package: io.swagger.codegen.v3.generators.ruby.RubyClientCodegen For more information, please visit sellercentral.amazon.com/gp/mws/contactus.html
Installation¶ ↑
Build a gem¶ ↑
To build the Ruby code into a gem:
gem build fba-small-and-light-api-model.gemspec
Then either install the gem locally:
gem install ./fba-small-and-light-api-model-0.1.0.gem
(for development, run gem install --dev ./fba-small-and-light-api-model-0.1.0.gem
to install the development dependencies)
or publish the gem to a gem hosting service, e.g. RubyGems.
Finally add this to the Gemfile:
gem 'fba-small-and-light-api-model', '~> 0.1.0'
Install from Git¶ ↑
If the Ruby gem is hosted at a git repository: github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
gem 'fba-small-and-light-api-model', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
Include the Ruby code directly¶ ↑
Include the Ruby code directly using -I
as follows:
ruby -Ilib script.rb
Getting Started¶ ↑
Please follow the installation procedure and then run the following code:
# Load the gem require 'fba-small-and-light-api-model' api_instance = AmzSpApi::FbaSmallAndLightApiModel::SmallAndLightApi.new seller_sku = 'seller_sku_example' # String | The seller SKU that identifies the item. marketplace_ids = ['marketplace_ids_example'] # Array<String> | The marketplace in which to remove the item from the Small and Light program. Note: Accepts a single marketplace only. begin api_instance.delete_small_and_light_enrollment_by_seller_sku(seller_sku, marketplace_ids) rescue AmzSpApi::FbaSmallAndLightApiModel::ApiError => e puts "Exception when calling SmallAndLightApi->delete_small_and_light_enrollment_by_seller_sku: #{e}" end api_instance = AmzSpApi::FbaSmallAndLightApiModel::SmallAndLightApi.new seller_sku = 'seller_sku_example' # String | The seller SKU that identifies the item. marketplace_ids = ['marketplace_ids_example'] # Array<String> | The marketplace for which the eligibility status is retrieved. NOTE: Accepts a single marketplace only. begin result = api_instance.get_small_and_light_eligibility_by_seller_sku(seller_sku, marketplace_ids) p result rescue AmzSpApi::FbaSmallAndLightApiModel::ApiError => e puts "Exception when calling SmallAndLightApi->get_small_and_light_eligibility_by_seller_sku: #{e}" end api_instance = AmzSpApi::FbaSmallAndLightApiModel::SmallAndLightApi.new seller_sku = 'seller_sku_example' # String | The seller SKU that identifies the item. marketplace_ids = ['marketplace_ids_example'] # Array<String> | The marketplace for which the enrollment status is retrieved. Note: Accepts a single marketplace only. begin result = api_instance.get_small_and_light_enrollment_by_seller_sku(seller_sku, marketplace_ids) p result rescue AmzSpApi::FbaSmallAndLightApiModel::ApiError => e puts "Exception when calling SmallAndLightApi->get_small_and_light_enrollment_by_seller_sku: #{e}" end api_instance = AmzSpApi::FbaSmallAndLightApiModel::SmallAndLightApi.new body = AmzSpApi::FbaSmallAndLightApiModel::SmallAndLightFeePreviewRequest.new # SmallAndLightFeePreviewRequest | begin result = api_instance.get_small_and_light_fee_preview(body) p result rescue AmzSpApi::FbaSmallAndLightApiModel::ApiError => e puts "Exception when calling SmallAndLightApi->get_small_and_light_fee_preview: #{e}" end api_instance = AmzSpApi::FbaSmallAndLightApiModel::SmallAndLightApi.new seller_sku = 'seller_sku_example' # String | The seller SKU that identifies the item. marketplace_ids = ['marketplace_ids_example'] # Array<String> | The marketplace in which to enroll the item. Note: Accepts a single marketplace only. begin result = api_instance.put_small_and_light_enrollment_by_seller_sku(seller_sku, marketplace_ids) p result rescue AmzSpApi::FbaSmallAndLightApiModel::ApiError => e puts "Exception when calling SmallAndLightApi->put_small_and_light_enrollment_by_seller_sku: #{e}" end
Documentation for API Endpoints¶ ↑
All URIs are relative to https://sellingpartnerapi-na.amazon.com/
Class | Method | HTTP request | Description ———— | ————- | ————- | ————- AmzSpApi::FbaSmallAndLightApiModel::SmallAndLightApi | {delete_small_and_light_enrollment_by_seller_sku} | DELETE /fba/smallAndLight/v1/enrollments/{sellerSKU} | AmzSpApi::FbaSmallAndLightApiModel::SmallAndLightApi | {get_small_and_light_eligibility_by_seller_sku} | GET /fba/smallAndLight/v1/eligibilities/{sellerSKU} | AmzSpApi::FbaSmallAndLightApiModel::SmallAndLightApi | {get_small_and_light_enrollment_by_seller_sku} | GET /fba/smallAndLight/v1/enrollments/{sellerSKU} | AmzSpApi::FbaSmallAndLightApiModel::SmallAndLightApi | {get_small_and_light_fee_preview} | POST /fba/smallAndLight/v1/feePreviews | AmzSpApi::FbaSmallAndLightApiModel::SmallAndLightApi | {put_small_and_light_enrollment_by_seller_sku} | PUT /fba/smallAndLight/v1/enrollments/{sellerSKU} |
Documentation for Models¶ ↑
-
AmzSpApi::FbaSmallAndLightApiModel::SmallAndLightEligibility
-
AmzSpApi::FbaSmallAndLightApiModel::SmallAndLightEligibilityStatus
-
AmzSpApi::FbaSmallAndLightApiModel::SmallAndLightEnrollmentStatus
-
AmzSpApi::FbaSmallAndLightApiModel::SmallAndLightFeePreviewRequest
-
AmzSpApi::FbaSmallAndLightApiModel::SmallAndLightFeePreviews
Documentation for Authorization¶ ↑
All endpoints do not require authorization.