> ## Documentation Index > Fetch the complete documentation index at: https://www.bloxs.io/llms.txt > Use this file to discover all available pages before exploring further. # Get all service ticket costs categories > Get all service ticket costs categories in the system. ## OpenAPI ````json GET /api/v1/maintenance/servicetickets/costscategories { "openapi": "3.0.4", "info": { "title": "Maintenance V1", "description": "# Maintenance API Documentation\nWelcome to BETA version of the new Maintenance API - intended for client public testing before the launch of the final version. During this BETA phase, we'll be improving the API based on specific client's feedbacks.\n\n## Authentication \n\nTo access the API, include your API key in the headers. Refer to our authentication documentation for details on obtaining and using your API key. \n\n## Operations \n\nThe API supports operations for the following: \n\n- **Service Tickets**\n\nFor each type, you can: \n\n- **GET**: Retrieve a list or apply filters.", "version": "v1" }, "security": [ {} ], "tags": [ { "name": "Metadata" }, { "name": "ServiceTickets" } ], "paths": { "/api/v1/maintenance/servicetickets/costscategories": { "get": { "tags": [ "Admin" ], "summary": "Get all service ticket costs categories", "description": "Get all service ticket costs categories in the system.", "operationId": "GetServiceTicketCostsCategories", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ServiceTicketCostsCategory" } } } } } }, "x-d360-narrative-url": "

Get all service ticket costs categories

This endpoint retrieves the list of cost categories available for service tickets.

A cost category relates to the type of issue reported and helps determine how the associated costs should be allocated, for example distinguishing a repair from a full replacement.

Integrators call this endpoint before creating or updating a ticket, to know which cost category names are currently available.


Request Fields

This endpoint takes no request parameters.


Response Fields

Field

Type

Required

Description

name

string

Yes

Name of the cost category. Fixed list, not configurable by the user. Maximum length 256 characters.

ledgerAccountCode

string

No

Ledger account code linked to the cost category, used for financial allocation and reporting.

" } } }, "components": { "schemas": { "ServiceTicketCostsCategory": { "required": [ "name" ], "type": "object", "properties": { "name": { "maxLength": 256, "minLength": 0, "type": "string" }, "ledgerAccountCode": { "type": "string", "nullable": true } }, "additionalProperties": false } } } } ````