---
agentTools:
  projectIndex: https://docs.wastehero.io/llms.txt
---

# Get Ticket Type

# OpenAPI definition

```json
{
  "openapi": "3.0.2",
  "info": {
    "title": "WasteHero REST API",
    "description": "\nWelcome to the WasteHero REST API. Using this API you will be able to retrieve metrics from your WasteHero account. \n\nAPI endpoints have the throttling enabled and configured in a customer company settings.\n Default is 120 requests per minute.\n",
    "version": "3.0"
  },
  "servers": [
    {
      "url": "https://platform-api.wastehero.io",
      "description": "Production environment"
    }
  ],
  "paths": {
    "/api/v3/ticket_type/{ticket_type_id}": {
      "get": {
        "tags": [
          "Ticket type"
        ],
        "summary": "Get Ticket Type",
        "operationId": "get_ticket_type_api_v3_ticket_type__ticket_type_id__get",
        "parameters": [
          {
            "required": true,
            "schema": {
              "title": "ID of a ticket type",
              "type": "string"
            },
            "name": "ticket_type_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TicketTypeOutputSerializerV3"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "PlatformAPIKey": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "ContainerStorageLocationOutputSerializerV3": {
        "title": "ContainerStorageLocationOutputSerializerV3",
        "type": "object",
        "properties": {
          "depot": {
            "$ref": "#/components/schemas/DepotOutputSerializerV3"
          }
        }
      },
      "DepotOutputSerializerV3": {
        "title": "DepotOutputSerializerV3",
        "required": [
          "id",
          "location",
          "name"
        ],
        "type": "object",
        "properties": {
          "id": {
            "title": "Id",
            "type": "string"
          },
          "location": {
            "$ref": "#/components/schemas/LocationOutputSerializerV3"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "description": {
            "title": "Description",
            "type": "string"
          },
          "geofence_radius": {
            "title": "Geofence Radius",
            "type": "integer"
          },
          "opening_time": {
            "title": "Opening Time",
            "type": "string",
            "format": "time"
          },
          "closing_time": {
            "title": "Closing Time",
            "type": "string",
            "format": "time"
          },
          "time_to_unload_truck": {
            "title": "Time To Unload Truck",
            "type": "string",
            "format": "time"
          },
          "time_to_leave_the_facility": {
            "title": "Time To Leave The Facility",
            "type": "string",
            "format": "time"
          },
          "amount_of_trucks": {
            "title": "Amount Of Trucks",
            "type": "integer"
          },
          "capacity_of_trucks": {
            "title": "Capacity Of Trucks",
            "type": "integer"
          },
          "workshop_service_description": {
            "title": "Workshop Service Description",
            "type": "string"
          },
          "workshop_type": {
            "title": "Workshop Type",
            "type": "string"
          }
        }
      },
      "HTTPValidationError": {
        "title": "HTTPValidationError",
        "type": "object",
        "properties": {
          "detail": {
            "title": "Detail",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            }
          }
        }
      },
      "LocationOutputSerializerV3": {
        "title": "LocationOutputSerializerV3",
        "required": [
          "latitude",
          "longitude"
        ],
        "type": "object",
        "properties": {
          "latitude": {
            "title": "Latitude",
            "type": "number"
          },
          "longitude": {
            "title": "Longitude",
            "type": "number"
          },
          "name": {
            "title": "Name",
            "type": "string"
          }
        }
      },
      "ServiceOutputSerializerV3": {
        "title": "ServiceOutputSerializerV3",
        "required": [
          "id",
          "name"
        ],
        "type": "object",
        "properties": {
          "id": {
            "title": "Id",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "service_type": {
            "title": "Service Type",
            "type": "string"
          }
        }
      },
      "TicketCategoryOutputSerializerV3": {
        "title": "TicketCategoryOutputSerializerV3",
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "title": "Name",
            "type": "string"
          }
        }
      },
      "TicketTypeOutputSerializerV3": {
        "title": "TicketTypeOutputSerializerV3",
        "required": [
          "id",
          "category",
          "name",
          "created_at"
        ],
        "type": "object",
        "properties": {
          "id": {
            "title": "Id",
            "type": "string"
          },
          "category": {
            "$ref": "#/components/schemas/TicketCategoryOutputSerializerV3"
          },
          "service": {
            "$ref": "#/components/schemas/ServiceOutputSerializerV3"
          },
          "container_source": {
            "$ref": "#/components/schemas/ContainerStorageLocationOutputSerializerV3"
          },
          "container_destination": {
            "$ref": "#/components/schemas/ContainerStorageLocationOutputSerializerV3"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "is_property_level": {
            "title": "Is Property Level",
            "type": "boolean",
            "default": true
          },
          "is_container_level": {
            "title": "Is Container Level",
            "type": "boolean",
            "default": false
          },
          "enable_on_portal": {
            "title": "Enable On Portal",
            "type": "boolean",
            "default": false
          },
          "enable_on_platform": {
            "title": "Enable On Platform",
            "type": "boolean",
            "default": false
          },
          "enable_on_navigation_app": {
            "title": "Enable On Navigation App",
            "type": "boolean",
            "default": false
          },
          "created_at": {
            "title": "Created At",
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ValidationError": {
        "title": "ValidationError",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "type": "object",
        "properties": {
          "loc": {
            "title": "Location",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "msg": {
            "title": "Message",
            "type": "string"
          },
          "type": {
            "title": "Error Type",
            "type": "string"
          }
        }
      }
    },
    "securitySchemes": {
      "PlatformAPIKey": {
        "type": "apiKey",
        "description": "\nYou can find your API key in the settings section on app.wastehero.io. When you have the key it should be added as an Authorization header with the name X-API-Key.\n",
        "in": "header",
        "name": "X-API-Key"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 100,
      "1": 199,
      "2": 86,
      "3": 211,
      "4": 157,
      "5": 89,
      "6": 18,
      "7": 0,
      "8": 12,
      "9": 100,
      "10": 34,
      "11": 175
    }
  }
}
```