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

# Delete Invoice Draft

> Deletes an unpublished draft. Published invoices cannot be deleted.



## OpenAPI

````yaml https://api.coinvoyage.io/v3/openapi.json delete /invoices/{invoice_id}
openapi: 3.1.0
info:
  title: CoinVoyage API (v3)
  description: >-
    CoinVoyage v3 payment API. Unified Intent envelope, snake_case money via the
    Amount shape, and a single SHA-256 signature scheme.
  version: 3.0.0
servers:
  - url: https://api.coinvoyage.io/v3
security: []
paths:
  /invoices/{invoice_id}:
    delete:
      tags:
        - invoices
      summary: Delete Invoice Draft
      description: Deletes an unpublished draft. Published invoices cannot be deleted.
      operationId: v3DeleteInvoiceDraft
      parameters:
        - description: >-
            HMAC-SHA256 signature header:
            'APIKey=<api_key>,signature=<hex>,timestamp=<unix_timestamp>'. The
            signature is computed over METHOD + path (with the /v3 prefix
            stripped) + timestamp.
          in: header
          name: Authorization-Signature
          required: true
          schema:
            type: string
        - in: path
          name: invoice_id
          required: true
          schema:
            type: string
      responses:
        '204':
          description: Draft deleted
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unauthorized
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Draft invoice not found
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Internal Server Error
      security:
        - Authorization: []
components:
  schemas:
    ErrorResponse:
      example:
        code: 400
        error: Bad Request
        message: Invalid request parameters
      properties:
        error:
          example: Bad Request
          type: string
        message:
          example: Invalid request parameters
          type: string
        code:
          example: 400
          format: int64
          type: integer
        details:
          anyOf:
            - type: string
            - type: number
            - type: object
      required:
        - error
        - message
        - code
      type: object
  securitySchemes:
    Authorization:
      description: >-
        HMAC-SHA256 signature. See the Authorization-Signature header parameter
        on signed operations.
      in: header
      name: Authorization
      type: apiKey

````