---
title: Returns the current processing status of a(n import) task.
slug: commerce-connect-15/service-api/3rWh-returns-the-current-processing-status-of-an-import-task
docTags: 
createdAt: 2026-10-09T17:33:31.916Z
---

{
  "id": "rdVlNwNN0pKfWFXlpol1T",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "/episerverapi/commerce/task/{taskId}/status",
    "servers": [],
    "name": "Returns the current processing status of a(n import) task.",
    "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 most recent status message at the time of the request.",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "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": "60JLfZX6Mq1tpXLp30Nrd",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url /episerverapi/commerce/task/{taskId}/status \\\n     --header 'accept: text/plain'"
        },
        {
          "id": "vv_z1BSKB8xhAhWFQwnq2",
          "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}/status\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "OuUyvKj8LWEPSoe_DB3x6",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"/episerverapi/commerce/task/{taskId}/status\")\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": "ytfvqJHLcI7eJx09qkiDf",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"/episerverapi/commerce/task/{taskId}/status\"\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": "60JLfZX6Mq1tpXLp30Nrd"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-200",
          "language": "200",
          "code": "// Return the most recent status message at the time of the request.\n{\n  \"timestampUtc\": \"\",\n  \"messageType\": 0,\n  \"message\": \"\",\n  \"stageName\": \"\",\n  \"stageIndex\": \"\",\n  \"stageCount\": \"\",\n  \"stageProgress\": \"\",\n  \"stageTotalProgress\": \"\",\n  \"exceptionMessage\": \"\",\n  \"exceptionStackTrace\": \"\"\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": ""
    }
  ]
}