---
title: Get all LabOrders
slug: get-all-laborders
docTags: 
createdAt: 2026-04-21T15:22:49.957Z
---

{
  "id": "f8Y27If2yb1NJTk6ThiFK",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "https://developer.digitail.io/api/v1/integrations/labs/orders",
    "servers": [
      {
        "url": "https://developer.digitail.io/api/v1/integrations/labs/orders",
        "description": "Sandbox server (uses test data)"
      },
      {
        "url": "https://vet.digitail.io/api/v1/integrations/labs/orders",
        "description": "Production server (uses live data)"
      }
    ],
    "name": "Get all LabOrders",
    "description": "<p>Returns a list of lab orders for a clinic and optioanally includes their results.</p>\n<p>Permissions required:</p>\n<ul>\n<li>VIEW_CHECKUPS</li>\n</ul>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "application/json"
          ],
          "default": "application/json"
        }
      ],
      "queryParameters": [
        {
          "kind": "optional",
          "name": "filter[file_case_id]",
          "type": "integer",
          "description": "ID of the filecase from where the entity was created"
        },
        {
          "kind": "optional",
          "name": "include",
          "type": "string",
          "example": "result,result.tests,result.file",
          "description": "<p>A comma-separated list of additional data to include in the response.</p>\n<p><code>result</code> - include result metadata</p>\n<p><code>result.tests</code> - include discrete results</p>\n<p><code>result.file</code> - include result file</p>",
          "enum": [
            "result",
            "result.tests",
            "result.file"
          ]
        }
      ],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "passport",
          "name": "passport",
          "kind": "optional",
          "type": "oauth2",
          "description": "Laravel passport oauth2 security.",
          "oauth2Flows": {
            "authorizationCode": {
              "authorizationUrl": "https://digitail.test/oauth/authorize",
              "tokenUrl": "https://digitail.test/oauth/token",
              "refreshUrl": "https://digitail.test/oauth/token"
            }
          }
        },
        {
          "id": "Bearer",
          "name": "Bearer",
          "kind": "optional",
          "type": "http",
          "scheme": "bearer"
        }
      ],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "OK",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "schema": [
              {
                "name": "data",
                "kind": "optional",
                "type": "array",
                "description": "",
                "example": "",
                "itemType": "object",
                "customType": "object[]",
                "schema": [
                  {
                    "name": "id",
                    "kind": "optional",
                    "type": "integer",
                    "description": ""
                  },
                  {
                    "name": "lab",
                    "kind": "optional",
                    "type": "object",
                    "description": "",
                    "example": "{\"id\":1,\"name\":\"Antech\"}",
                    "schema": [
                      {
                        "name": "id",
                        "kind": "optional",
                        "type": "integer",
                        "description": ""
                      },
                      {
                        "name": "name",
                        "kind": "optional",
                        "type": "string",
                        "description": ""
                      }
                    ]
                  },
                  {
                    "name": "clinic_id",
                    "kind": "optional",
                    "type": "integer",
                    "description": ""
                  },
                  {
                    "name": "file_case_id",
                    "kind": "optional",
                    "type": "integer",
                    "description": ""
                  },
                  {
                    "name": "vet_id",
                    "kind": "optional",
                    "type": "integer",
                    "description": ""
                  },
                  {
                    "name": "order_ext_id",
                    "kind": "optional",
                    "type": "integer",
                    "description": ""
                  },
                  {
                    "name": "status",
                    "kind": "optional",
                    "type": "string<none | pending | partial | completed | failed | cancelled>",
                    "description": "",
                    "enum": [
                      "none",
                      "pending",
                      "partial",
                      "completed",
                      "failed",
                      "cancelled"
                    ]
                  },
                  {
                    "name": "ordered_tests",
                    "kind": "optional",
                    "type": "array",
                    "description": "",
                    "example": "",
                    "itemType": "object",
                    "customType": "object[]",
                    "schema": [
                      {
                        "name": "code",
                        "kind": "optional",
                        "type": "string",
                        "description": ""
                      },
                      {
                        "name": "name",
                        "kind": "optional",
                        "type": "string",
                        "description": ""
                      }
                    ]
                  },
                  {
                    "name": "details",
                    "kind": "optional",
                    "type": "object",
                    "description": "",
                    "example": "",
                    "schema": [
                      {
                        "name": "ordering_ui_url",
                        "kind": "optional",
                        "type": "string",
                        "description": ""
                      },
                      {
                        "name": "is_editable",
                        "kind": "optional",
                        "type": "boolean",
                        "description": ""
                      },
                      {
                        "name": "has_requisition_form",
                        "kind": "optional",
                        "type": "boolean",
                        "description": ""
                      },
                      {
                        "name": "result_url",
                        "kind": "optional",
                        "type": "string",
                        "description": ""
                      }
                    ]
                  },
                  {
                    "name": "result",
                    "kind": "optional",
                    "type": "object",
                    "description": "",
                    "example": "",
                    "schema": [
                      {
                        "name": "id",
                        "kind": "optional",
                        "type": "integer",
                        "description": ""
                      },
                      {
                        "name": "ext_id",
                        "kind": "optional",
                        "type": "string",
                        "description": ""
                      },
                      {
                        "name": "reported_at",
                        "kind": "optional",
                        "type": "string<date-time>",
                        "description": "",
                        "format": "date-time"
                      },
                      {
                        "name": "file",
                        "kind": "optional",
                        "type": "object",
                        "description": "",
                        "example": "",
                        "schema": [
                          {
                            "name": "name",
                            "kind": "optional",
                            "type": "string",
                            "description": ""
                          },
                          {
                            "name": "url",
                            "kind": "optional",
                            "type": "string",
                            "description": ""
                          }
                        ]
                      },
                      {
                        "name": "tests",
                        "kind": "optional",
                        "type": "array",
                        "description": "",
                        "example": "",
                        "itemType": "object",
                        "customType": "object[]",
                        "schema": [
                          {
                            "name": "id",
                            "kind": "optional",
                            "type": "integer",
                            "description": ""
                          },
                          {
                            "name": "code",
                            "kind": "optional",
                            "type": "string",
                            "description": ""
                          },
                          {
                            "name": "name",
                            "kind": "optional",
                            "type": "string",
                            "description": ""
                          },
                          {
                            "name": "conclusion",
                            "kind": "optional",
                            "type": "string",
                            "description": ""
                          },
                          {
                            "name": "other_conclusion",
                            "kind": "optional",
                            "type": "string",
                            "description": ""
                          },
                          {
                            "name": "result",
                            "kind": "optional",
                            "type": "string",
                            "description": ""
                          },
                          {
                            "name": "unit",
                            "kind": "optional",
                            "type": "string",
                            "description": ""
                          }
                        ]
                      }
                    ]
                  }
                ]
              }
            ],
            "isExpanded": true
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "VeaRRYdcSC9-_z2QsHVuL",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url https://developer.digitail.io/api/v1/integrations/labs/orders \\\n     --header 'accept: application/json'"
        },
        {
          "id": "GZZDSKfEYkHVKs95xL5Bz",
          "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://developer.digitail.io/api/v1/integrations/labs/orders\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "a3h2wnwUtcdgCrrRRfIYx",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://developer.digitail.io/api/v1/integrations/labs/orders\")\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": "lxmUeaU9lZ7ip9lZroxfQ",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://developer.digitail.io/api/v1/integrations/labs/orders\"\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": "VeaRRYdcSC9-_z2QsHVuL"
    },
    "results": {
      "languages": [
        {
          "id": "cYVMnE8guDSh9dE8Xy1Jv",
          "language": "200",
          "code": "// OK\n{\n  \"data\": [\n    {\n      \"id\": 0,\n      \"lab\": {\n        \"id\": 0,\n        \"name\": \"\"\n      },\n      \"clinic_id\": 0,\n      \"file_case_id\": 0,\n      \"vet_id\": 0,\n      \"order_ext_id\": 0,\n      \"status\": \"\",\n      \"ordered_tests\": [\n        {\n          \"code\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"details\": {\n        \"ordering_ui_url\": \"\",\n        \"is_editable\": false,\n        \"has_requisition_form\": false,\n        \"result_url\": \"\"\n      },\n      \"result\": {\n        \"id\": 0,\n        \"ext_id\": \"\",\n        \"reported_at\": \"\",\n        \"file\": {\n          \"name\": \"\",\n          \"url\": \"\"\n        },\n        \"tests\": [\n          {\n            \"id\": 0,\n            \"code\": \"\",\n            \"name\": \"\",\n            \"conclusion\": \"\",\n            \"other_conclusion\": \"\",\n            \"result\": \"\",\n            \"unit\": \"\"\n          }\n        ]\n      }\n    }\n  ]\n}"
        }
      ],
      "selectedLanguageId": "cYVMnE8guDSh9dE8Xy1Jv"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}