openapi: 3.1.0 info: title: Shopware Admin Account Category API version: 6.7.9999999-dev description: The Shopware Admin API provides programmatic access to all back-office and administrative operations including product management, order processing, customer data, indexing, and configuration. It uses OAuth 2.0 authentication and covers 658 endpoints across the full Shopware data model. contact: name: Shopware Developer Documentation url: https://developer.shopware.com/docs/concepts/api/admin-api.html license: name: MIT url: https://opensource.org/licenses/MIT servers: - url: https://{shopDomain}/api description: Self-hosted or SaaS Shopware instance Admin API variables: shopDomain: default: your-shop.example.com description: Hostname of the Shopware instance security: - oAuth2: - write:all tags: - name: Category description: Manage the product category tree paths: /category: get: operationId: listCategories summary: List categories description: Returns a paginated list of product categories. tags: - Category parameters: - $ref: '#/components/parameters/limit' - $ref: '#/components/parameters/page' responses: '200': description: Paginated list of categories content: application/json: schema: $ref: '#/components/schemas/CategoryListResponse' '401': $ref: '#/components/responses/Unauthorized' components: schemas: Category: type: object description: Shopware product category entity properties: id: type: string pattern: ^[0-9a-f]{32}$ parentId: type: string pattern: ^[0-9a-f]{32}$ name: type: string active: type: boolean visible: type: boolean type: type: string enum: - page - link - folder level: type: integer path: type: string ErrorResponse: type: object properties: errors: type: array items: type: object properties: code: type: string status: type: string title: type: string detail: type: string CategoryListResponse: type: object properties: total: type: integer data: type: array items: $ref: '#/components/schemas/Category' responses: Unauthorized: description: Authentication required or token expired content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' parameters: limit: name: limit in: query description: Maximum number of resources per page (default 25) schema: type: integer default: 25 maximum: 500 page: name: page in: query description: Page number (1-based) schema: type: integer default: 1 securitySchemes: oAuth2: type: oauth2 flows: clientCredentials: tokenUrl: /api/oauth/token scopes: write:all: Full write access to all Admin API resources password: tokenUrl: /api/oauth/token scopes: write:all: Full write access to all Admin API resources externalDocs: description: Full interactive specification (Stoplight) url: https://shopware.stoplight.io/docs/admin-api