如何使用亚马逊 MWS API 从亚马逊卖家编号提取所有商品



使用此API get_report_request_list,get_report,我收到的产品响应仅已订购,许多产品仍然没有订购。

mws = MWS.new(:aws_access_key_id => access_key,
     :secret_access_key => secret_key,
     :seller_id => merchant_id,
     :marketplace_id => marketplace_id,
     :MWS_auth_token => mws_auth_token)

            mws = Mws.connect(
              merchant: merchant_id,
              access: access_key,
              secret: secret_key]
            )
response = mws.reports.get_report(:report_id => generated_report_id)

有了这个 API list_matching_products

mws = Mws.connect(
        merchant: merchant_id,
        access: access_key,
        secret: secret_key,
        MWS_auth_token: mws_auth_token,
      )
response = mws.products.list_matching_products(marketplace_id: marketplace_id,query: "1")

我只得到 10 个产品的回应。

但是,我需要列出的产品总数,订购一个或无序产品。

https://docs.developer.amazonservices.com/en_US/reports/Reports_GetReportRequestList.htmlhttp://docs.developer.amazonservices.com/en_IT/products/Products_ListMatchingProducts.html

如果有人知道哪个API,我可以用来获取所有列出的产品。

报告 API 是您想要的,看起来这就是您

正在使用的,但我没有看到您请求的报告,只是您请求了报告。 在此处查看报告类型:

https://docs.developer.amazonservices.com/en_US/reports/Reports_ReportType.html

,然后使用RequestReport请求所需的报告。 您可能想要Inventory ReportActive Listings Report

您不想为此使用产品 API,这不会退回您的库存。

最新更新