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

# Contracts / Request Deletion

> Registers a contract-holder deletion request to be processed asynchronously at the given future date. Requires a contract-bound token, not a partner API key. Required permission: crm:contracts:deletion-request. Available contexts: Contract.



## OpenAPI

````yaml /api/core-api/crmiapi.json post /api/v1/crm/contracts/{uuid}/deletion-request
openapi: 3.2.0
info:
  title: chargecloud - Core API
  summary: chargecloud Core API. All around CRM, Asset Management and more.
  version: 1.141.0
  description: chargecloud Core API. All around CRM, Asset Management and more.
servers:
  - url: https://api.chargecloud.dev
    description: Production - chargecloud Core API
  - url: https://demo.chargecloud.de
    description: Sandbox/Dev - chargecloud Core API
security: []
paths:
  /api/v1/crm/contracts/{uuid}/deletion-request:
    post:
      tags:
        - Contracts
      summary: Contracts / Request Deletion
      description: >-
        Registers a contract-holder deletion request to be processed
        asynchronously at the given future date. Requires a contract-bound
        token, not a partner API key. Required permission:
        crm:contracts:deletion-request. Available contexts: Contract.
      operationId: /api/v1/crm/contracts/{uuid}/deletion-request_POST
      parameters:
        - name: uuid
          in: path
          description: >-
            Identifies the contract to schedule for deletion. It must be the
            contract of the authenticated contract token; otherwise 404.
          required: true
          schema:
            type: string
            maxLength: 36
            description: >-
              Identifies the contract to schedule for deletion. It must be the
              contract of the authenticated contract token; otherwise 404.
        - name: Accept-Language
          in: header
          description: BCP 47 language tag for content negotiation (e.g. en, de-DE).
          required: false
          schema:
            type: string
            description: BCP 47 language tag for content negotiation (e.g. en, de-DE).
            example: en
      requestBody:
        description: >-
          Registers a contract-holder deletion request to be processed
          asynchronously at the given future date. Requires a contract-bound
          token, not a partner API key. Required permission:
          crm:contracts:deletion-request. Available contexts: Contract.
        content:
          application/json:
            schema:
              type: object
              required:
                - deleteAt
              properties:
                deleteAt:
                  type: string
                  format: date-time
                  pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(Z|[+-]\d{2}:\d{2})$
                  description: >-
                    Future date and time at which the contract becomes eligible
                    for deletion.
                  example: '2023-09-25T12:00:00Z'
        required: true
      responses:
        '202':
          headers:
            Content-Language:
              description: The locale of the response content (BCP 47 language tag).
              required: false
              schema:
                type: string
                example: en
          content:
            application/json:
              schema:
                type: object
                required:
                  - message
                  - deleteAt
                properties:
                  message:
                    type: string
                    description: Human-readable confirmation of the deletion request.
                  deleteAt:
                    type: string
                    format: date-time
                    pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(Z|[+-]\d{2}:\d{2})$
                    description: >-
                      Echo of the requested deletion date; marks when the
                      contract becomes eligible for deletion.
          description: >-
            Receipt that the deletion request was registered; the actual
            deletion runs asynchronously.
        '401':
          headers:
            Content-Language:
              description: The locale of the response content (BCP 47 language tag).
              required: false
              schema:
                type: string
                example: en
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: string
                    description: Error message
          description: Unauthorized
        '403':
          headers:
            Content-Language:
              description: The locale of the response content (BCP 47 language tag).
              required: false
              schema:
                type: string
                example: en
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: string
                    description: Error message
          description: Forbidden
        '404':
          headers:
            Content-Language:
              description: The locale of the response content (BCP 47 language tag).
              required: false
              schema:
                type: string
                example: en
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: string
                    description: Error message
          description: Not found
        '405':
          headers:
            Content-Language:
              description: The locale of the response content (BCP 47 language tag).
              required: false
              schema:
                type: string
                example: en
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: string
                    description: Error message
          description: Method not allowed
        '422':
          headers:
            Content-Language:
              description: The locale of the response content (BCP 47 language tag).
              required: false
              schema:
                type: string
                example: en
          content:
            application/json:
              schema:
                type: object
                required:
                  - errors
                properties:
                  errors:
                    type: array
                    items:
                      type: object
                      properties:
                        errorKey:
                          type: string
                          description: A key identifying the error
                        message:
                          type: string
                          description: The error message
                        parameter:
                          type: string
                          description: The parameter that caused the error, if any
                      required:
                        - errorKey
                        - message
                        - parameter
                      description: Error
                    description: List of errors
          description: Request validation failed
      security:
        - bearer:
            - crm:contracts
components:
  securitySchemes:
    bearer:
      type: http
      description: OAuth2 Bearer Authorization
      scheme: bearer
      bearerFormat: JWT

````

## Related topics

- [Contract management](https://chargecloud.dev/contract-management.md)
- [Contracts / Cancel](https://chargecloud.dev/api-reference/contracts/contracts-cancel.md)
- [Contracts / Create](https://chargecloud.dev/api-reference/contracts/contracts-create.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.