---
title: List all ServicePackages
slug: list-all-servicepackages
docTags: 
createdAt: 2026-04-21T15:22:49.957Z
---

{
  "id": "1iMyELatWbFK7s1M6sUGZ",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "https://developer.digitail.io/api/v1/service-packages",
    "servers": [
      {
        "url": "https://developer.digitail.io/api/v1/service-packages",
        "description": "Sandbox server (uses test data)"
      },
      {
        "url": "https://vet.digitail.io/api/v1/service-packages",
        "description": "Production server (uses live data)"
      }
    ],
    "name": "List all ServicePackages",
    "description": "<p>Permissions needed: NONE\nSearches clinic's service packages by name and returns the result</p>",
    "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[search]",
          "type": "string",
          "description": "Service Package's name"
        },
        {
          "kind": "optional",
          "name": "filter[visit_type_id]",
          "type": "array",
          "description": "Visit Type Id",
          "schema": [],
          "itemType": "integer",
          "customType": "integer[]"
        },
        {
          "kind": "optional",
          "name": "filter[aaha_codes]",
          "type": "array",
          "description": "Service Id",
          "schema": [],
          "itemType": "string",
          "customType": "string[]"
        },
        {
          "kind": "optional",
          "name": "pet_id",
          "type": "integer",
          "description": "Pet Id that is used to check if the service package is within the pet's wellness plan benefits"
        },
        {
          "kind": "optional",
          "name": "filter[status]",
          "type": "string",
          "description": "<p>Status of the service package (ex: 'enabled', 'disabled')</p>",
          "enum": [
            "enabled",
            "disabled"
          ]
        },
        {
          "kind": "optional",
          "name": "filter[one_level_services]",
          "type": "integer",
          "description": "<p>Filter by one level services (ex: '1')</p>"
        },
        {
          "kind": "optional",
          "name": "include",
          "type": "string",
          "description": "<p>Additional info to include(ex: 'products', 'products.product', 'products.product.stock', 'taskTemplates' 'products.product.latestPurchaseOrderItem', 'servicePackageServices.products.product', 'labTests', 'labTests.lab', 'subServiceOn', 'taxRates')</p>"
        },
        {
          "kind": "optional",
          "name": "sort",
          "type": "string",
          "description": "<p>Sorting(ex: 'name', 'price', 'aaha_code')</p>"
        }
      ],
      "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": "Successful operation",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "schema": [
              {
                "name": "data",
                "kind": "optional",
                "type": "array",
                "description": "",
                "modelRef": "#/paths/~1api~1v1~1service-packages~1%7Bid%7D/get/responses/200/content/application~1json/schema/properties/data",
                "customType": "data[]",
                "schema": []
              },
              {
                "name": "links",
                "kind": "optional",
                "type": "object",
                "description": "",
                "modelRef": "#/paths/~1api~1v1~1pets/get/responses/200/content/application~1json/schema/properties/links",
                "customType": "links",
                "schema": []
              },
              {
                "name": "meta",
                "kind": "optional",
                "type": "object",
                "description": "",
                "modelRef": "#/paths/~1api~1v1~1pets/get/responses/200/content/application~1json/schema/properties/meta",
                "customType": "meta",
                "schema": []
              }
            ],
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "400",
        "description": "",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "6rp2XfzW_4fBAZpqpjlTN",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url https://developer.digitail.io/api/v1/service-packages \\\n     --header 'accept: application/json'"
        },
        {
          "id": "IZ08ax7HbxVHRIfrFX0do",
          "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/service-packages\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "q_Lwn7y4BRD1FtBLrNark",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://developer.digitail.io/api/v1/service-packages\")\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": "t63cYI4u0PQE0posefMTK",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://developer.digitail.io/api/v1/service-packages\"\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": "6rp2XfzW_4fBAZpqpjlTN"
    },
    "results": {
      "languages": [
        {
          "id": "CMRp-pY7H0ua8CUr4xYOR",
          "language": "200",
          "code": "// Successful operation\n{\n  \"data\": [\n    \"\"\n  ],\n  \"links\": {},\n  \"meta\": {}\n}"
        },
        {
          "id": "LX1BcrCo0tosfy0l2oolD",
          "language": "400",
          "code": ""
        }
      ],
      "selectedLanguageId": "CMRp-pY7H0ua8CUr4xYOR"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}