Method: MWS::Reports::Client#request_report

Defined in:
lib/mws/reports/client.rb

#request_report(report_type, opts = {}) ⇒ Peddler::XMLParser

Creates a report request

Parameters:

  • report_type (String)
  • opts (Hash) (defaults to: {})

Options Hash (opts):

  • :start_date (String, #iso8601)
  • :end_date (String, #iso8601)
  • :report_options (String)
  • :marketplace_id_list (Array<String>, String)

Returns:

  • (Peddler::XMLParser)

See Also:



23
24
25
26
27
28
29
30
# File 'lib/mws/reports/client.rb', line 23

def request_report(report_type, opts = {})
  operation('RequestReport')
    .add(opts)
    .add('ReportType' => report_type)
    .structure!('MarketplaceIdList', 'Id')

  run
end