クエリー処理が完了したことを確認する

クエリーの処理が終了したことを確認する方法。

APIバージョン:2023-11-15

After you call the createQuery operation, Amazon receives the request and begins processing the query. This document describes how to verify that the processing has completed.

レスポンスのprocessingStatus値が処理の終了を示すまで、前のステップのqueryId値を渡して、getQueryオペレーションを定期的に呼び出します。processingStatusCANCELLEDDONEFATALのいずれかの場合は、処理が終了しています。

The response includes one of:

  • クエリーの結果としてデータがある場合は、dataDocumentIdの値。
  • クエリーの処理中にエラーが発生した場合は、errorDocumentIdの値。
  • Neither of these when there is no data returned as a result of processing the query.

processingStatusIN_PROGRESSまたはIN_QUEUEの場合は、 処理がまだ終了していないことを示します。CANCELLEDDONE、またはFATALprocessingStatusを受け取るまで、getQueryオペレーションをポーリングし続ける必要があります。

パスパラメーター

名前説明Type必須
queryIdクエリーの識別子。stringはい

リクエストの例

GET https://sellingpartnerapi-na.amazon.com/dataKiosk/2023-11-15/queries/ID323

レスポンス

成功レスポンスには、以下が含まれます。

名前説明Schema
responsegetQueryオペレーションのペイロード。getQuery

レスポンスの例

{ "queryId": "ID323", "query": "query {sampleQuery(startDate:\"2022-03-12\" endDate:\"2022-03-20\" marketplaceIds:[\"ATVPDKIKX0DER\"]){sales{date averageSellingPrice{amount currencyCode}}}}", "createdTime": "2019-12-10T13:47:20.677Z", "processingStatus": "DONE", "processingStartTime": "2019-12-10T13:47:20.677Z", "processingEndTime": "2019-12-12T13:47:20.677Z", "dataDocumentId": "DOC-b9b0-4226-b4b9-0ee058ea5760", }

このページは役に立ちましたか?