---
title: Returns the aggregate status log of a(n import) task at the time of the request.
slug: commerce-connect-15/service-api/ZCMO-returns-the-aggregate-status-log-of-an-import-task-at-the-time-of-the-request
docTags: 
createdAt: 2026-10-09T17:33:31.916Z
---

{
  "id": "GE-iFRxcVMk7mMnk31Q_7",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "/episerverapi/commerce/task/{taskId}/log",
    "servers": [],
    "name": "Returns the aggregate status log of a(n import) task at the time of the request.",
    "description": "Depends on receiving the OAuth security token to validate the session.",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "taskId",
          "type": "string<uuid>",
          "description": "The ID of the task as returned at the time the task was initiated.",
          "format": "uuid"
        }
      ],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "text/plain",
            "application/json",
            "text/json"
          ],
          "default": "text/plain"
        }
      ],
      "queryParameters": [],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": [],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Return the aggregate status log at the time of the request.",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "array",
            "description": "A job message.",
            "customType": "JobMessage[]",
            "schema": [
              {
                "name": "timestampUtc",
                "kind": "optional",
                "type": "string<date-time>",
                "description": "<p>Gets or sets the timestamp of the message, in UTC.</p>",
                "format": "date-time"
              },
              {
                "name": "messageType",
                "kind": "optional",
                "type": "integer",
                "description": "",
                "modelRef": "#/components/schemas/JobMessageType",
                "customType": "JobMessageType",
                "schema": []
              },
              {
                "name": "message",
                "kind": "optional",
                "type": "string",
                "nullable": true,
                "description": "Gets or sets the content of the message."
              },
              {
                "name": "stageName",
                "kind": "optional",
                "type": "string",
                "nullable": true,
                "description": "Gets or sets the name of the current stage of processing."
              },
              {
                "name": "stageIndex",
                "kind": "optional",
                "type": "integer<int32>",
                "description": "<p>Gets or sets the index (zero based) of the current stage.</p>",
                "format": "int32"
              },
              {
                "name": "stageCount",
                "kind": "optional",
                "type": "integer<int32>",
                "description": "Gets or sets the number of stages in the task.",
                "format": "int32"
              },
              {
                "name": "stageProgress",
                "kind": "optional",
                "type": "integer<int32>",
                "description": "Gets or sets the current progress within the current stage of execution.",
                "format": "int32"
              },
              {
                "name": "stageTotalProgress",
                "kind": "optional",
                "type": "integer<int32>",
                "description": "Gets or sets the value of StageProgress that indicates completion of the\r\ncurrent stage.",
                "format": "int32"
              },
              {
                "name": "exceptionMessage",
                "kind": "optional",
                "type": "string",
                "nullable": true,
                "description": "<p>Gets or sets the exception message from Exception, or null if\r\nSystem.Exception is null.</p>"
              },
              {
                "name": "exceptionStackTrace",
                "kind": "optional",
                "type": "string",
                "nullable": true,
                "description": "<p>Gets or sets the stack trace from Exception, or null if\r\nSystem.Exception is null.</p>"
              }
            ],
            "modelRef": "#/components/schemas/JobMessage",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "401",
        "description": "If user does not have enough permission for this request.",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "404",
        "description": "If task does not exist.",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "EmNrwnYW3MpfZhYr-MPn4",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url /episerverapi/commerce/task/{taskId}/log \\\n     --header 'accept: text/plain'"
        },
        {
          "id": "LX4DHIWVUWGXC1KIYX2hA",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"text/plain\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar requestOptions = {\n   method: 'GET',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"/episerverapi/commerce/task/{taskId}/log\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "z_0XGitGdiLocaguBPvKD",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"/episerverapi/commerce/task/{taskId}/log\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Get.new(url)\nrequest[\"accept\"] = \"text/plain\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "GYSZmaAlxJUz1TnD-lRb8",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"/episerverapi/commerce/task/{taskId}/log\"\n\npayload = {}\nheaders = {\n   'accept': 'text/plain',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "EmNrwnYW3MpfZhYr-MPn4"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-200",
          "language": "200",
          "code": "// Return the aggregate status log at the time of the request.\n[\n  {\n    \"timestampUtc\": \"\",\n    \"messageType\": 0,\n    \"message\": \"\",\n    \"stageName\": \"\",\n    \"stageIndex\": \"\",\n    \"stageCount\": \"\",\n    \"stageProgress\": \"\",\n    \"stageTotalProgress\": \"\",\n    \"exceptionMessage\": \"\",\n    \"exceptionStackTrace\": \"\"\n  }\n]"
        },
        {
          "id": "response-1-401",
          "language": "401",
          "code": "// If user does not have enough permission for this request.\n"
        },
        {
          "id": "response-2-404",
          "language": "404",
          "code": "// If task does not exist.\n"
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}