【问题标题】:about amazon mws reports api for FBA Fee关于亚马逊 mws 报告 FBA 费用的 api
【发布时间】:2018-11-14 17:03:13
【问题描述】:

我正在制作有关 FBA 费用的功能。

参考此链接。 How to get FBA Fee and commission using Amazon MWS

我正在使用 node.js 我必须在 getReportList 函数上输入 2 个参数,但我不能。

这是我的代码:

function mws_RequestReportForFee (req, res, i, data, io) {  
var report1 = '_GET_FLAT_FILE_PAYMENT_SETTLEMENT_DATA_';    
var report2 = '_GET_V2_SETTLEMENT_REPORT_DATA_FLAT_FILE_';  

//var paramsdata2 = {'ReportTypeList.Type.1' : report1, 'ReportTypeList.Type.2' : report2};
//var paramsdata2 = {'ReportTypes' : {'ReportTypeList.Type.1': report1, 'ReportTypeList.Type.2' : report2}};    

console.log("2222222222222222222222222222222222"+paramsdata2);
}
console.log('----------------------config==================\n',config); 
mws.reports.GetReportList(config, paramsdata2, true, function (err, result1) {
console.log("333333333333333333333333333"+result1);
to_json(result1,function(err,data1){
if (!err) {...........  

然后是当前结果:

333333333333333333333333333<?xml version="1.0"?>
<GetReportListResponse xmlns="http://mws.amazonaws.com/doc/2009-01-01/">
<GetReportListResult>
<HasNext>true</HasNext>
<NextToken>blah blah</NextToken>
<ReportInfo>
<ReportType>_GET_MERCHANT_LISTINGS_DATA_</ReportType> 
<Acknowledged>false</Acknowledged>
<ReportId>1234123412341234</ReportId>
<ReportRequestId>123412341234</ReportRequestId>
<AvailableDate>2016-04-06T00:38:32+00:00</AvailableDate>
</ReportInfo>
<ReportInfo>
<ReportType>_GET_MERCHANT_LISTINGS_DATA_</ReportType>
<Acknowledged>false</Acknowledged>
<ReportId>1234123412341234</ReportId>
<ReportRequestId>1234123412341234</ReportRequestId>
<AvailableDate>2016-04-06T00:31:57+00:00</AvailableDate>
</ReportInfo>    
.........

当我尝试使用 2parameters 暂存器时:

<?xml version="1.0"?>
<GetReportListResponse xmlns="http://mws.amazonaws.com/doc/2009-01-01/">
<GetReportListResult>
<HasNext>false</HasNext>
<ReportInfo>
<ReportType>_GET_V2_SETTLEMENT_REPORT_DATA_FLAT_FILE_</ReportType>
<Acknowledged>false</Acknowledged>
<ReportId>123412341234</ReportId>
<ReportRequestId>12341234</ReportRequestId>
<AvailableDate>2016-03-30T01:48:38+00:00</AvailableDate>
</ReportInfo>
<ReportInfo>
<ReportType>_GET_V2_SETTLEMENT_REPORT_DATA_FLAT_FILE_</ReportType>
<Acknowledged>false</Acknowledged>
<ReportId>123412341234</ReportId>
<ReportRequestId>12341234</ReportRequestId>
<AvailableDate>2016-03-16T01:40:03+00:00</AvailableDate>
</ReportInfo>

我想让结果看起来像暂存器。 如何获取该报告类型。 如何输入“paramsdata2”。

谢谢。

【问题讨论】:

    标签: node.js amazon-mws fba


    【解决方案1】:

    我不确定是否使用报告,但我使用ListFinancialEvents api 调用来获取信息。您可以简单地传递订单 ID,并从收取的金额和亚马逊取出的所有费用中提取有关订单的所有信息。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多