Class: Peddler::APIs::ProductPricing20220501

Inherits:
Peddler::API show all
Defined in:
lib/peddler/apis/product_pricing_2022_05_01.rb

Overview

Selling Partner API for Pricing

The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, refer to the Product Pricing v2022-05-01 Use Case Guide.

Instance Attribute Summary

Attributes inherited from Peddler::API

#access_token, #endpoint, #parser

Instance Method Summary collapse

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_competitive_summary(requests, rate_limit: 0.033) ⇒ Peddler::Response

Note:

This operation can make a static sandbox call.

Returns the competitive summary response including featured buying options for the ASIN and marketplaceId combination.

Parameters:

  • requests (Hash)

    The batch of getCompetitiveSummary requests.

  • rate_limit (Float) (defaults to: 0.033)

    Requests per second

Returns:



46
47
48
49
50
51
# File 'lib/peddler/apis/product_pricing_2022_05_01.rb', line 46

def get_competitive_summary(requests, rate_limit: 0.033)
  path = "/batches/products/pricing/2022-05-01/items/competitiveSummary"
  body = requests

  meter(rate_limit).post(path, body:)
end
Note:

This operation can make a static sandbox call.

Returns the set of responses that correspond to the batched list of up to 40 requests defined in the request body. The response for each successful (HTTP status code 200) request in the set includes the computed listing price at or below which a seller can expect to become the featured offer (before applicable promotions). This is called the featured offer expected price (FOEP). Featured offer is not guaranteed, because competing offers may change, and different offers may be featured based on other factors, including fulfillment capabilities to a specific customer. The response to an unsuccessful request includes the available error text.

Parameters:

  • get_featured_offer_expected_price_batch_request_body (Hash)

    The batch of getFeaturedOfferExpectedPrice requests.

  • rate_limit (Float) (defaults to: 0.033)

    Requests per second

Returns:



31
32
33
34
35
36
37
# File 'lib/peddler/apis/product_pricing_2022_05_01.rb', line 31

def get_featured_offer_expected_price_batch(get_featured_offer_expected_price_batch_request_body,
  rate_limit: 0.033)
  path = "/batches/products/pricing/2022-05-01/offer/featuredOfferExpectedPrice"
  body = get_featured_offer_expected_price_batch_request_body

  meter(rate_limit).post(path, body:)
end