Class: Peddler::APIs::SellersV1
- Inherits:
-
Peddler::API
- Object
- Peddler::API
- Peddler::APIs::SellersV1
- Defined in:
- lib/peddler/apis/sellers_v1.rb,
lib/peddler/apis/sellers_v1/error.rb,
lib/peddler/apis/sellers_v1/account.rb,
lib/peddler/apis/sellers_v1/address.rb,
lib/peddler/apis/sellers_v1/business.rb,
lib/peddler/apis/sellers_v1/error_list.rb,
lib/peddler/apis/sellers_v1/marketplace.rb,
lib/peddler/apis/sellers_v1/participation.rb,
lib/peddler/apis/sellers_v1/primary_contact.rb,
lib/peddler/apis/sellers_v1/get_account_response.rb,
lib/peddler/apis/sellers_v1/marketplace_participation.rb,
lib/peddler/apis/sellers_v1/marketplace_participation_list.rb,
lib/peddler/apis/sellers_v1/get_marketplace_participations_response.rb,
sig/peddler/apis/sellers_v1.rbs
Overview
The Selling Partner API for Sellers
The Selling Partner API for Sellers (Sellers API) provides essential information about seller accounts, such as:
- The marketplaces a seller can list in - The default language and currency of a marketplace - Whether the seller has suspended listings
Refer to the Sellers API reference for details about this API's operations, data types, and schemas.
Defined Under Namespace
Classes: Account, Address, Business, Error, ErrorList, GetAccountResponse, GetMarketplaceParticipationsResponse, Marketplace, MarketplaceParticipation, MarketplaceParticipationList, Participation, PrimaryContact
Instance Attribute Summary
Attributes inherited from Peddler::API
#access_token, #endpoint, #retries
Instance Method Summary collapse
-
#get_account(rate_limit: 0.016) ⇒ Peddler::Response
Returns information about a seller account and its marketplaces.
-
#get_marketplace_participations(rate_limit: 0.016) ⇒ Peddler::Response
Returns a list of marketplaces where the seller can list items and information about the seller's participation in those marketplaces.
Methods inherited from Peddler::API
#cannot_sandbox!, #delete, #endpoint_uri, #get, #http, #initialize, #must_sandbox!, #patch, #percent_encode, #post, #put, #request, #sandbox, #sandbox?, #stringify_array, #timestamp, #user_agent
Constructor Details
This class inherits a constructor from Peddler::API
Instance Method Details
#get_account(rate_limit: 0.016) ⇒ Peddler::Response
This operation can make a static sandbox call.
Returns information about a seller account and its marketplaces.
37 38 39 40 41 |
# File 'lib/peddler/apis/sellers_v1.rb', line 37 def get_account(rate_limit: 0.016) path = "/sellers/v1/account" parser = -> { GetAccountResponse } get(path, rate_limit:, parser:) end |
#get_marketplace_participations(rate_limit: 0.016) ⇒ Peddler::Response
This operation can make a static sandbox call.
Returns a list of marketplaces where the seller can list items and information about the seller's participation in those marketplaces.
26 27 28 29 30 |
# File 'lib/peddler/apis/sellers_v1.rb', line 26 def get_marketplace_participations(rate_limit: 0.016) path = "/sellers/v1/marketplaceParticipations" parser = -> { GetMarketplaceParticipationsResponse } get(path, rate_limit:, parser:) end |