---
updatedAt: 2026-04-27T20:42:40.000Z
agentTools:
  projectIndex: https://docs.clover.com/dev/llms.txt
---

# Get all categories

Retrieves all categories. Items display on the Register app within categories in the order in which they are added to a category. Items may be associated with one or more categories or may not be associated with any category. Categories display in the Register app based on the sort order value for each category.

# OpenAPI definition

```json
{
  "x-samples-languages": [
    "curl",
    "node",
    "javascript",
    "java",
    "swift",
    "csharp"
  ],
  "openapi": "3.0.1",
  "info": {
    "title": "Platform API",
    "version": "3.0"
  },
  "externalDocs": {
    "url": "https://docs.clover.com"
  },
  "servers": [
    {
      "url": "https://apisandbox.dev.clover.com"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "paths": {
    "/v3/merchants/{mId}/categories": {
      "get": {
        "tags": [
          "INVENTORY"
        ],
        "summary": "Get all categories",
        "description": "Retrieves all categories. Items display on the Register app within categories in the order in which they are added to a category. Items may be associated with one or more categories or may not be associated with any category. Categories display in the Register app based on the sort order value for each category.",
        "operationId": "category.GetCategories",
        "parameters": [
          {
            "$ref": "#/components/parameters/UserAgentHeader"
          },
          {
            "name": "mId",
            "in": "path",
            "description": "Merchant identifier.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "Filter fields to display search results: [modifiedTime, deleted, sortOrder, name, colorCode, id]",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "expand",
            "in": "query",
            "description": "Additional information provided as an expanded response: [items]",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "description": "Position of the first line item returned in the search results. Indicates the number of line items that are excluded from the search results.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of line items returned in the search result.\n Default: 100 \n Maximum limit: 1000",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response. Displays all categories information.",
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "name"
                  ],
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier of the category."
                    },
                    "name": {
                      "type": "string",
                      "description": "Category name as it displays in the Register app."
                    },
                    "sortOrder": {
                      "type": "integer",
                      "description": "Integer that determines the sort order of the category against other categories."
                    },
                    "items": {
                      "type": "array",
                      "description": "Ordered list of items associated with the category.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Unique list of items associated with the category."
                          }
                        }
                      }
                    },
                    "colorCode": {
                      "type": "string",
                      "description": "Hex code of the color assigned to the category and its items.\n Format: #fff, #ffffff, or #ffffffff."
                    },
                    "deleted": {
                      "type": "boolean",
                      "description": "Indicates whether the category can be deleted."
                    },
                    "modifiedTime": {
                      "type": "integer",
                      "description": "Time when the category was modified."
                    },
                    "canonical": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique identifier of the canonical category."
                        }
                      },
                      "description": "Reference to a canonical category in an item inventory."
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    },
    "parameters": {
      "UserAgentHeader": {
        "name": "User-Agent",
        "in": "header",
        "description": "Identifies the application, operating system, vendor, and/or version of the requesting user agent. Format: `<product> / <product-version> <comment>`",
        "required": true,
        "schema": {
          "type": "string"
        },
        "example": "PostmanRuntime/7.44.1"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": false,
    "samples-enabled": true
  }
}
```