> ## Documentation Index
> Fetch the complete documentation index at: https://documentation.byteful.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Cancel Service

> Allows the authenticated user to cancel a specific service associated with their account.
The user provides a service_id and optionally a cancel feedback and comment.




## OpenAPI

````yaml delete /public/user/service/cancel/{service_id}
openapi: 3.0.1
info:
  title: Byteful Public User API
  description: Public API used for third-party usage.
  termsOfService: https://byteful.com
  contact:
    url: https://byteful.com
    email: developer@byteful.com
  version: '1.0'
  x-logo:
    altText: Byteful
    backgroundColor: '#6354eb'
    url: >-
      https://pbs.twimg.com/profile_banners/1038803520605118464/1729783007/1500x500
servers:
  - url: https://api.byteful.com/1.0/
security: []
paths:
  /public/user/service/cancel/{service_id}:
    delete:
      tags:
        - Service
      summary: Cancel Service
      description: >
        Allows the authenticated user to cancel a specific service associated
        with their account.

        The user provides a service_id and optionally a cancel feedback and
        comment.
      parameters:
        - name: service_id
          in: path
          description: ID of the Service to cancel
          required: true
          schema:
            type: string
        - name: Content-Type
          in: header
          description: Content type for the request body as application/json.
          required: true
          schema:
            type: string
            default: application/json
      requestBody:
        description: Service cancellation details.
        content:
          application/json:
            schema:
              type: object
              properties:
                cancel_comment:
                  maxLength: 300
                  type: string
                  description: >-
                    A short comment explaining the reason for cancellation.
                    Maximum 300 characters.
                cancel_feedback:
                  type: string
                  description: |
                    Feedback code indicating the cancellation reason.
                  enum:
                    - too_expensive
                    - missing_features
                    - switched_service
                    - unused
                    - customer_service
                    - too_complex
                    - low_quality
                    - other
        required: true
      responses:
        '200':
          description: Successfully canceled the service.
          content:
            application/json:
              schema:
                type: object
                properties:
                  edited:
                    type: array
                    description: List of service IDs that were successfully canceled.
                    example:
                      - API-1234-5678
                    items:
                      type: string
                      description: The service ID.
                  message:
                    type: string
                    description: >-
                      Success message indicating the successful cancellation of
                      the service.
                    example: Service successfully canceled.
                  proxy_edited:
                    type: array
                    description: >-
                      List of proxy IDs that were affected by the cancellation
                      of the service.
                    example:
                      - a7f8b4f1-da8d-4e9f-bdd2-21e74d2eafff
                      - f5bade6e-29b2-4a8a-bd4d-21c528794dd6
                    items:
                      type: integer
                      description: The proxy ID.
      security:
        - APIPrivateKey: []
          APIPublicKey: []
components:
  securitySchemes:
    APIPrivateKey:
      type: apiKey
      description: ' Private API key for user-level authentication.'
      name: X-API-Private-Key
      in: header
    APIPublicKey:
      type: apiKey
      description: ' Public API key for user-level authentication.'
      name: X-API-Public-Key
      in: header

````