【问题标题】:How to fetch all products from Amazon seller ID by using Amazon MWS API如何使用亚马逊 MWS API 从亚马逊卖家 ID 获取所有产品
【发布时间】:2017-12-02 15:39:01
【问题描述】:

通过这个 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.html http://docs.developer.amazonservices.com/en_IT/products/Products_ListMatchingProducts.html

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

【问题讨论】:

  • 嗨 Vish,您需要使用 Amazon Orders API 来获取所有有效列表。docs.developer.amazonservices.com/en_UK/reports/…
  • @Keyur 感谢您的评论,但是有了这个我得到了那些已经订购的产品,我也想要未订购的。 order API 给出了那些在有序列表中的产品。

标签: ruby-on-rails-4 amazon-mws


【解决方案1】:

Reports API 是您想要的,看起来就是您使用的,但我没有看到您请求的报告,只是您请求了报告。在此处查看报告类型:

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

并使用RequestReport 请求您想要的报告。您可能想要Inventory ReportActive Listings Report

您不想为此使用 Products API,这不会返回您的库存。

【讨论】:

    猜你喜欢
    • 2018-06-04
    • 1970-01-01
    • 2013-07-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多