## How it works
Integrations, such as with Optimizely Product Information Management, often involve the transfer of large data volumes. The Service API allows for bulk operations that can take a long time to complete.
To facilitate long-running tasks, bulk operations return a _task identifier_ that you can use to get the status of a task and any associated messages. You can get _last_ or _aggregated_ status messages for the associated task identifier.
## Example model
Note
Only consider a task completed if the message type is number 4 or 5.
### Get task status
Column Title | Column Title | Column Title |
GET | get/episerverapi/commerce/task/{taskId}/status | This method gets the \_last_status message of the associated task identifier. |
#### JSON response type
C# code sample
#### XML response type
C# code sample
Response
### Get task log
Column Title | Column Title | Column Title |
GET | get/episerverapi/commerce/task/{taskId}/log | This method gets the _aggregated_ status messages of the associated task identifier. |
#### JSON response type
C# code sample
#### XML response type
C# code sample
Response