Polling for the Status of a Completed Asynchronous Request
You can send a request similar to the following to get the task ID of the asynchronous request: GET https://demo123.suitetalk.api.netsuite.com/services/rest/async/v1/job/1/task/
Then you can send a request similar to the following to see the status of a completed asynchronous request: GET https://demo123.suitetalk.api.netsuite.com/services/rest/async/v1/job/1/task/1
The following example shows the returned result:
{
"links": [
{
"rel": "related",
"href": "https://demo123.suitetalk.api.netsuite.com/services/rest/async/v1/job/1/task/1/result"
},
{
"rel": "self",
"href": "https://demo123.suitetalk.api.netsuite.com/services/rest/async/v1/job/1/task/1"
},
],
"completed": true,
"endTime": 2020-12-09T12:04:40Z,
"id": "1",
"progress": "succeeded",
"startTime": "2020-12-09T12:04:28Z"
}