---
title: Get Order by ID
slug: api-documentation/5_wr-get-order-by-id
docTags: 
createdAt: 2026-08-27T16:58:28.243Z
---

{
  "id": "14r8LC1E3yTivKZbigruH",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "/order",
    "servers": [],
    "name": "Get Order by ID",
    "description": "This endpoint allows administrators to fetch a specific order based on the id passed in.",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [],
      "queryParameters": [],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": [],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "<p>Success-requested order found and returned.</p>",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "XR6Y-YA8dmIBJ_4r7KGLQ",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url /order \\\n     --header 'accept: application/json'"
        },
        {
          "id": "yWp9okYt_Ne73k2aLh2JV",
          "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(\"/order\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "3brMpLNG5fBY-03PdO63E",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"/order\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Get.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "nJdzgWKTP8IbzUj7A8Y_R",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"/order\"\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": "XR6Y-YA8dmIBJ_4r7KGLQ"
    },
    "results": {
      "languages": [
        {
          "id": "zFkDnx2FH3Bbt-7s7EJGK",
          "language": "200",
          "code": "// Success-requested order found and returned.\n"
        }
      ],
      "selectedLanguageId": "zFkDnx2FH3Bbt-7s7EJGK"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}