Retrieve the product task status (synchronous API)
Get the latest product information for an asynchronous task. You can find the taskId in the response when you send a request to create or update product.
For system access use case, use API key/secret in the Authorization header, the API key should be set up with sufficient role.
The task identifier received in the response when you create or update a product (synchronous API).
Successful response.
- The API key is invalid if you are using HTTP Basic Authentication.
- The token is invalid if you are using Bearer Token Authentication.
- The task was not found.
GET /v1/products/tasks/{taskId} HTTP/1.1
Host: api.digitalriver.com
Authorization: Basic username:password
Accept: */*
{
"taskId": "d8a81162-aaaa-bbbb-cccc-ea513d1afa82",
"receivedTime": "2022-05-01T23:00:21.123Z",
"finishedTime": "2022-05-01T23:05:21.123Z",
"taskStatus": "PUBLISHED",
"requestType": "CREATE_PRODUCT",
"products": [
{
"productId": "text",
"externalReferenceId": "text",
"productType": "text"
}
],
"errors": [
{
"errorCode": "text",
"description": "text"
}
],
"deploymentErrors": [
{
"errorCode": "text",
"description": "text"
}
],
"deploymentWarnings": [
{
"errorCode": "text",
"description": "text"
}
]
}Retrieve the tasks for Product Admin API requests. Specify the conditions using the query parameters to filter your query.
For system access use case, use API key/secret in the Authorization header, the API key should be set up with sufficient role.
The product identifier or external reference identifier associated with the related tasks.
nullcomma separated status
PUBLISHED,PROCESSING,COMPLETED,FAILEDExample: PUBLISHEDThe date and time when the the task received time began.
The current system date time minus 30 days.Example: 2022-05-01T23:00:21.123ZThe date and time when the task ended.
The current system date time.Example: 2022-05-30T23:00:21.123ZThe maximum number of tasks returned with this request.
50Example: 50When you specify a task identifier, the system will fetch the tasks that started later than the current task. Use either startingAfter or endingBefore. Do not use them togehter.
nullWhen you specify a task identifier, system will fetch the tasks that started earlier than current the task. Use either startingAfter or endingBefore. Do not use them togehter.
nullSuccessful response.
- The query parameter is invalid
- The API key is invalid if you are using HTTP Basic Authentication.
- The token is invalid if you are using Bearer Token Authentication.
GET /v1/products/tasks/ HTTP/1.1
Host: api.digitalriver.com
Authorization: Basic username:password
Accept: */*
{
"tasks": [
{
"taskId": "d8a81162-aaaa-bbbb-cccc-ea513d1afa82",
"receivedTime": "2022-05-01T23:00:21.123Z",
"finishedTime": "2022-05-01T23:05:21.123Z",
"taskStatus": "PUBLISHED",
"requestType": "CREATE_PRODUCT",
"products": [
{
"productId": "text",
"externalReferenceId": "text",
"productType": "text"
}
],
"uri": "https://api.digitalriver.com/v1/products/tasks/d8a81162-aaaa-bbbb-cccc-ea513d1afa82"
}
],
"totalSize": 1,
"previousPage": {
"endingBefore": "zzzzzzzz-aaaa-bbbb-cccc-ea513d1afa82"
},
"nextPage": {
"startingAfter": "aaaaaaaa-aaaa-bbbb-cccc-ea513d1afa82"
},
"searchCriteria": {
"beginReceivedTime": "2022-05-01T23:00:21.123Z",
"endReceivedTime": "2022-05-31T23:00:21.123Z",
"taskStatus": [
"PUBLISHED"
],
"productId": "1234567800"
},
"pagination": {
"limit": 50,
"startingAfter": "aaaaaaaa-aaaa-bbbb-cccc-ea513d1afa82",
"endingBefore": "zzzzzzzz-aaaa-bbbb-cccc-ea513d1afa82"
}
}Last updated
