Class: MWS::CartInformation::Client
- Inherits:
-
Peddler::Client
- Object
- Peddler::Client
- MWS::CartInformation::Client
- Defined in:
- lib/mws/cart_information/client.rb
Overview
The Cart Information API only returns cart information for Webstores with Seller-Branded Checkout. No cart information is returned for Amazon Webstores with Amazon.com checkout. If your Webstore offers both checkout options, cart information is returned only for Seller-Branded Checkout accounts.
In addition to registering for Amazon MWS, you must also request authorization to use the Cart Information API section.
With the Cart Information API, you can retrieve shopping carts that your Amazon Webstore customers have created. The Cart Information API enables you to programmatically integrate Amazon Webstore cart information with your CRM systems, marketing applications, and other systems that require cart data
Instance Attribute Summary
Attributes inherited from Peddler::Client
#auth_token, #body, #marketplace_id, #merchant_id, #path
Instance Method Summary collapse
-
#get_carts(marketplace_id, *cart_id_list) ⇒ Peddler::XMLParser
Returns shopping carts based on specified values.
-
#get_service_status ⇒ Peddler::XMLParser
Gets the service status of the API.
-
#list_carts(date_range_start, opts = {}) ⇒ Peddler::XMLParser
Lists shopping carts.
-
#list_carts_by_next_token(next_token) ⇒ Peddler::XMLParser
Lists the next page of shopping carts.
Methods inherited from Peddler::Client
#aws_endpoint, #defaults, #headers, inherited, #initialize, #marketplace, #on_error, #operation, parser, parser=, path, #run
Constructor Details
This class inherits a constructor from Peddler::Client
Instance Method Details
#get_carts(marketplace_id, *cart_id_list) ⇒ Peddler::XMLParser
Returns shopping carts based on specified values
54 55 56 57 58 59 60 |
# File 'lib/mws/cart_information/client.rb', line 54 def get_carts(marketplace_id, *cart_id_list) operation('GetCarts') .add('MarketplaceId' => marketplace_id, 'CartIdList' => cart_id_list) .structure!('CartIdList', 'CartId') run end |
#get_service_status ⇒ Peddler::XMLParser
Gets the service status of the API
66 67 68 69 |
# File 'lib/mws/cart_information/client.rb', line 66 def get_service_status operation('GetServiceStatus') run end |
#list_carts(date_range_start, opts = {}) ⇒ Peddler::XMLParser
Lists shopping carts
29 30 31 32 33 34 |
# File 'lib/mws/cart_information/client.rb', line 29 def list_carts(date_range_start, opts = {}) operation('ListCarts') .add(opts.update('DateRangeStart' => date_range_start)) run end |
#list_carts_by_next_token(next_token) ⇒ Peddler::XMLParser
Lists the next page of shopping carts
41 42 43 44 45 46 |
# File 'lib/mws/cart_information/client.rb', line 41 def list_carts_by_next_token(next_token) operation('ListCartsByNextToken') .add('NextToken' => next_token) run end |