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

# Delete Draft Charge

> Soft-delete a DRAFT charge (patient-facing quote).

Dedicated route so the frontend Quotes table doesn't have to reach
for the general ``DELETE /charge/{id}`` — that endpoint requires
``billing:payments:delete`` because it can archive real charges with
payment side effects. A DRAFT charge holds no payments, adjustments,
or ledger effects, so a lighter perm (quotes module + billing:read)
matches the old cart-delete surface. Refuses to touch non-DRAFT
rows so a stray charge id can't slip through.



## OpenAPI

````yaml delete /billing/charge/draft/{charge_id}
openapi: 3.1.0
info:
  title: Decoda API
  description: External API documentation for the Decoda Health platform.
  version: '1.0'
servers: []
security: []
paths:
  /billing/charge/draft/{charge_id}:
    delete:
      tags:
        - Charges
      summary: Delete Draft Charge
      description: |-
        Soft-delete a DRAFT charge (patient-facing quote).

        Dedicated route so the frontend Quotes table doesn't have to reach
        for the general ``DELETE /charge/{id}`` — that endpoint requires
        ``billing:payments:delete`` because it can archive real charges with
        payment side effects. A DRAFT charge holds no payments, adjustments,
        or ledger effects, so a lighter perm (quotes module + billing:read)
        matches the old cart-delete surface. Refuses to touch non-DRAFT
        rows so a stray charge id can't slip through.
      operationId: delete_draft_charge_billing_charge_draft__charge_id__delete
      parameters:
        - name: TENANT
          in: header
          required: true
          schema:
            type: string
            title: Tenant
          description: The tenant you are making this request on behalf of
        - name: API-KEY
          in: header
          required: true
          schema:
            type: string
            title: Api-Key
          description: Your api key
        - name: charge_id
          in: path
          required: true
          schema:
            type: string
            title: Charge Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: boolean
                title: >-
                  Response Delete Draft Charge Billing Charge Draft  Charge Id 
                  Delete
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````