クエリー処理が完了したことを確認する
クエリーの処理が終了したことを確認する方法。
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
オペレーションを定期的に呼び出します。processingStatus
がCANCELLED
、 DONE
、FATAL
のいずれかの場合は、処理が終了しています。
The response includes one of:
- クエリーの結果としてデータがある場合は、
dataDocumentId
の値。 - クエリーの処理中にエラーが発生した場合は、
errorDocumentId
の値。 - Neither of these when there is no data returned as a result of processing the query.
processingStatus
がIN_PROGRESS
またはIN_QUEUE
の場合は、 処理がまだ終了していないことを示します。CANCELLED
、DONE
、またはFATAL
のprocessingStatus
を受け取るまで、getQuery
オペレーションをポーリングし続ける必要があります。
パスパラメーター
名前 | 説明 | Type | 必須 |
---|---|---|---|
queryId | クエリーの識別子。 | string | はい |
リクエストの例
GET https://sellingpartnerapi-na.amazon.com/dataKiosk/2023-11-15/queries/ID323
レスポンス
成功レスポンスには、以下が含まれます。
名前 | 説明 | Schema |
---|---|---|
response | getQuery オペレーションのペイロード。 | 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",
}
Updated 6 months ago
このページは役に立ちましたか?