2016-06-02 8 views
1

このAPIではget_report_request_list、get_reportを注文しているだけですが、多くの商品は依然として注文ではありません。Amazon MWS APIを使用してAmazonの売り手IDからすべての商品を取り出す方法

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の製品の応答を取得します。

しかし、私は、リストされている製品の合計が1つまたは順序付けられていないものが必要です。

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

誰がどのAPIを知っている場合、私はすべて記載されている製品を取得するために使用することができます。

+0

こんにちはVishwasすべてのアクティブなリスティングを取得するには、Amazon Orders APIを使用する必要があります.http://docs.developer.amazonservices.com/en_UK/reports/Reports_ReportType.html#ReportTypeCategories__ListingsReports –

+0

@ Keyurこれで私はすでに注文されている商品を手に入れました。注文APIは注文リストにある商品を提供します。 –

答えて

2

Reports APIはあなたが望むもので、使用していたようですが、要求したレポートは表示されません。レポートをリクエストしただけです。ここでは、レポートの種類を見てみましょう:

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

して、必要なレポートを要求するRequestReportを使用しています。おそらくInventory ReportまたはActive Listings Reportが必要です。

このためにProducts APIを使用したくない場合、在庫が返されません。

+1

ありがとう@ScottGインベントリレポートタイプが機能する –

関連する問題