Class: Peddler::APIs::CatalogItemsV0
- Inherits:
-
Peddler::API
- Object
- Peddler::API
- Peddler::APIs::CatalogItemsV0
- Defined in:
- lib/peddler/apis/catalog_items_v0.rb
Overview
Selling Partner API for Catalog Items
The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog.
Instance Attribute Summary
Attributes inherited from Peddler::API
#access_token, #endpoint, #parser, #retries
Instance Method Summary collapse
-
#get_catalog_item(marketplace_id, asin) ⇒ Peddler::Response
Effective September 30, 2022, the ‘getCatalogItem` operation will no longer be available in the Selling Partner API for Catalog Items v0.
-
#list_catalog_categories(marketplace_id, asin: nil, seller_sku: nil, rate_limit: 1.0) ⇒ Peddler::Response
Returns the parent categories to which an item belongs, based on the specified ASIN or SellerSKU.
-
#list_catalog_items(marketplace_id, query: nil, query_context_id: nil, seller_sku: nil, upc: nil, ean: nil, isbn: nil, jan: nil) ⇒ Peddler::Response
Effective September 30, 2022, the ‘listCatalogItems` operation will no longer be available in the Selling Partner API for Catalog Items v0.
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_catalog_item(marketplace_id, asin) ⇒ Peddler::Response
This operation can make a static sandbox call.
Effective September 30, 2022, the ‘getCatalogItem` operation will no longer be available in the Selling Partner API for Catalog Items v0. This operation is available in the latest version of the Selling Partner API for Catalog Items v2022-04-01. Integrations that rely on this operation should migrate to the latest version to avoid service disruption. Note: The [`listCatalogCategories`](#get-catalogv0categories) operation is not being deprecated and you can continue to make calls to it.
71 72 73 74 75 76 77 78 |
# File 'lib/peddler/apis/catalog_items_v0.rb', line 71 def get_catalog_item(marketplace_id, asin) path = "/catalog/v0/items/#{asin}" params = { "MarketplaceId" => marketplace_id, }.compact get(path, params:) end |
#list_catalog_categories(marketplace_id, asin: nil, seller_sku: nil, rate_limit: 1.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Returns the parent categories to which an item belongs, based on the specified ASIN or SellerSKU.
89 90 91 92 93 94 95 96 97 98 |
# File 'lib/peddler/apis/catalog_items_v0.rb', line 89 def list_catalog_categories(marketplace_id, asin: nil, seller_sku: nil, rate_limit: 1.0) path = "/catalog/v0/categories" params = { "MarketplaceId" => marketplace_id, "ASIN" => asin, "SellerSKU" => seller_sku, }.compact meter(rate_limit).get(path, params:) end |
#list_catalog_items(marketplace_id, query: nil, query_context_id: nil, seller_sku: nil, upc: nil, ean: nil, isbn: nil, jan: nil) ⇒ Peddler::Response
This operation can make a static sandbox call.
Effective September 30, 2022, the ‘listCatalogItems` operation will no longer be available in the Selling Partner API for Catalog Items v0. As an alternative, `searchCatalogItems` is available in the latest version of the Selling Partner API for Catalog Items v2022-04-01. Integrations that rely on the `listCatalogItems` operation should migrate to the `searchCatalogItems`operation to avoid service disruption. Note: The [`listCatalogCategories`](#get-catalogv0categories) operation is not being deprecated and you can continue to make calls to it.
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/peddler/apis/catalog_items_v0.rb', line 43 def list_catalog_items(marketplace_id, query: nil, query_context_id: nil, seller_sku: nil, upc: nil, ean: nil, isbn: nil, jan: nil) path = "/catalog/v0/items" params = { "MarketplaceId" => marketplace_id, "Query" => query, "QueryContextId" => query_context_id, "SellerSKU" => seller_sku, "UPC" => upc, "EAN" => ean, "ISBN" => isbn, "JAN" => jan, }.compact get(path, params:) end |