---
title: Get Async Job Status
slug: get-async-job-status
docTags: 
createdAt: 2026-08-25T19:28:59.170Z
---

{
  "id": "8e1f1E3YUXxrzTleKzWbh",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "https://api.nue.io/orders/async-jobs/{jobId}",
    "servers": [
      {
        "url": "https://api.nue.io/orders/async-jobs/{jobId}",
        "description": "Nue Production API Endpoint"
      },
      {
        "url": "https://api.sandbox.nue.io/orders/async-jobs/{jobId}",
        "description": "Nue Sandbox API Endpoint"
      }
    ],
    "name": "Get Async Job Status",
    "description": "<p>Retrieve the status of a specific async job, including but not limited to the jobs that asynchronously activate, cancel, and delete invoices; asynchronously activate, cancel, and delete credit memos.</p>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "jobId",
          "type": "string",
          "description": "The async job ID. "
        }
      ],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "application/json"
          ],
          "default": "application/json"
        }
      ],
      "queryParameters": [],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "apiKeyAuth",
          "name": "nue-api-key",
          "kind": "optional",
          "type": "apiKey",
          "in": "header"
        }
      ],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "400",
        "description": "Bad Request",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "schema": [
              {
                "name": "title",
                "kind": "optional",
                "type": "string",
                "description": ""
              },
              {
                "name": "message",
                "kind": "optional",
                "type": "string",
                "description": ""
              },
              {
                "name": "errorCode",
                "kind": "optional",
                "type": "string",
                "description": ""
              }
            ],
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "404",
        "description": "Job ID not found",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "default",
        "description": "The status of the requested async job ",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "AsyncJobResponse",
            "schema": [
              {
                "name": "status",
                "kind": "optional",
                "type": "string",
                "description": "<p>The status of the current async job, the available options are Queued, Processing, Completed, and Error.</p>"
              },
              {
                "name": "error",
                "kind": "optional",
                "type": "object",
                "description": "",
                "modelRef": "#/components/schemas/ErrorResponse",
                "customType": "ErrorResponse",
                "schema": [
                  {
                    "name": "errorCode",
                    "kind": "optional",
                    "type": "string",
                    "description": ""
                  },
                  {
                    "name": "errorMessage",
                    "kind": "optional",
                    "type": "string",
                    "description": ""
                  }
                ]
              }
            ],
            "modelRef": "#/components/schemas/AsyncJobResponse",
            "isExpanded": true
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "2ir7mNZO78u6gvdiu4Trv",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url https://api.nue.io/orders/async-jobs/{jobId} \\\n     --header 'accept: application/json'"
        },
        {
          "id": "PBL_-gDKiU-sR7qXza9Zj",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar requestOptions = {\n   method: 'GET',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.nue.io/orders/async-jobs/{jobId}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "V-ctQQIcUrlBUY1yyGetC",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.nue.io/orders/async-jobs/{jobId}\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "1f_tM2jrwZauGZhDHdjzb",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.nue.io/orders/async-jobs/{jobId}\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "2ir7mNZO78u6gvdiu4Trv"
    },
    "results": {
      "languages": [
        {
          "id": "GluiGRxwr9XLN2tUgfUbp",
          "language": "400",
          "code": "// Bad Request\n{\n  \"title\": \"\",\n  \"message\": \"\",\n  \"errorCode\": \"\"\n}"
        },
        {
          "id": "YDAeP0UPbUBsCVBpNFXY2",
          "language": "404",
          "code": "// Job ID not found\n"
        },
        {
          "id": "ZhO8Baar6NSxLcn24DdD1",
          "language": "default",
          "code": "// The status of the requested async job\n{\n  \"status\": \"\",\n  \"error\": {\n    \"errorCode\": \"\",\n    \"errorMessage\": \"\"\n  }\n}"
        }
      ],
      "selectedLanguageId": "GluiGRxwr9XLN2tUgfUbp"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}