Class: Peddler::APIs::ListingsRestrictions20210801
- Inherits:
-
Peddler::API
- Object
- Peddler::API
- Peddler::APIs::ListingsRestrictions20210801
- Defined in:
- lib/peddler/apis/listings_restrictions_2021_08_01.rb
Overview
Selling Partner API for Listings Restrictions
The Selling Partner API for Listings Restrictions provides programmatic access to restrictions on Amazon catalog listings. For more information, see the href="https://developer-docs.amazon.com/sp-api/docs/listings-restrictions-api-v2021-08-01-use-case-guide">https://developer-docs.amazon.com/sp-api/docs/listings-restrictions-api-v2021-08-01-use-case-guide Listings Restrictions API Use Case Guide.
Instance Attribute Summary
Attributes inherited from Peddler::API
#access_token, #endpoint, #parser
Instance Method Summary collapse
-
#get_listings_restrictions(asin, seller_id, marketplace_ids, condition_type: nil, reason_locale: nil, rate_limit: 5.0) ⇒ Peddler::Response
Returns listing restrictions for an item in the Amazon Catalog.
Methods inherited from Peddler::API
#endpoint_uri, #http, #initialize, #meter, #retriable, #sandbox, #sandbox?, #use, #via
Constructor Details
This class inherits a constructor from Peddler::API
Instance Method Details
#get_listings_restrictions(asin, seller_id, marketplace_ids, condition_type: nil, reason_locale: nil, rate_limit: 5.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Returns listing restrictions for an item in the Amazon Catalog.
32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/peddler/apis/listings_restrictions_2021_08_01.rb', line 32 def get_listings_restrictions(asin, seller_id, marketplace_ids, condition_type: nil, reason_locale: nil, rate_limit: 5.0) path = "/listings/2021-08-01/restrictions" params = { "asin" => asin, "conditionType" => condition_type, "sellerId" => seller_id, "marketplaceIds" => marketplace_ids, "reasonLocale" => reason_locale, }.compact meter(rate_limit).get(path, params:) end |