How to get Amazon MWS Reports Java client library to download specific Document version -
i have code processes amazon settlement reports (xml format). until user download xml file amazon seller central , load application processing.
i have added code use mws reports api , via amazon java client library, search available settlement reports , allow user select 1 want, fetch , process it. works fine except refunds not processed.
in comparing xml retrieved different methods find downloaded files newer format api.
<documentversion>'4.01'</documentversion>
versus:
<documentversion>'3.01'</documentversion>
in older version <refund>
element called <adjustment>
xml otherwise same.
as attempted find answer came across mws forum post dated 11 aug 2014:
https://sellercentral.amazon.com/forums/ann.jspa?annid=186
this announces changes settlement reports , "notes" client libraries not changing.
the latest version of reports api java client released on 30 sep 2014 (i.e. after announcement) 1 using, not seem use new document version.
can suggest how may tell client library version use?
p.s. issue latest reports missing...
there announcement missed earlier:
https://sellercentral.amazon.com/forums/ann.jspa?annid=240
this real issue here , explains why reports since end of may missing.
the important part is:
the enumeration value xml settlement report changing _get_payment_settlement_data_ _get_v2_settlement_report_data_xml_.
so when setting report list request need change report type shown below:
getreportlistrequest req = new getreportlistrequest(); arraylist<string> typearraylist = new arraylist<string>(); typearraylist.add("_get_v2_settlement_report_data_xml_"); typelist typelist = new typelist(); typelist.settype(typearraylist); req.setreporttypelist(typelist);
once done newer reports can found , xml adjustments , refunds found.
Comments
Post a Comment