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

# Cancel a Pix Schedule

> Cancel a schedule that is still in SCHEDULED status. If the schedule has already started processing, the cancel returns 409 (PIX-0809); if it is already in a terminal state, it returns 409 (PIX-0814). Requests for a schedule owned by another account return 404 (PIX-0800) without revealing whether it exists.



## OpenAPI

````yaml en/openapi/v3-current/indirect-pix.yaml DELETE /v1/schedules/{schedule_id}
openapi: 3.0.3
info:
  title: Plugin BR Pix Indirect - Complete API
  description: |
    Complete API for Brazilian Pix instant payment system including
    Pix key dictionary operations, QR code generation/decoding, transactions and
    transaction limits.
  version: 1.7.6
servers:
  - url: https://plugin-pix-indirect.api.lerian.net
security:
  - bearerAuth: []
paths:
  /v1/schedules/{schedule_id}:
    delete:
      tags:
        - Schedules API
      summary: Cancel a Pix Schedule
      description: >-
        Cancel a schedule that is still in SCHEDULED status. If the schedule has
        already started processing, the cancel returns 409 (PIX-0809); if it is
        already in a terminal state, it returns 409 (PIX-0814). Requests for a
        schedule owned by another account return 404 (PIX-0800) without
        revealing whether it exists.
      parameters:
        - name: schedule_id
          in: path
          description: Schedule ID (UUID v7)
          required: true
          schema:
            type: string
          example: 019cf6ef-e418-7ced-80c0-7b9816faa798
        - $ref: '#/components/parameters/XAccountId'
      responses:
        '204':
          description: No Content
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorFormat'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorFormat'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorFormat'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorFormat'
        '409':
          description: Schedule is PROCESSING (PIX-0809) or terminal (PIX-0814)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorFormat'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorFormat'
      security:
        - bearerAuth: []
components:
  parameters:
    XAccountId:
      name: X-Account-Id
      in: header
      description: Unique identifier of the Midaz Ledger Account (UUID format).
      required: true
      example: 019c96a0-0a98-7287-9a31-786e0809c769
      schema:
        type: string
  schemas:
    ErrorFormat:
      type: object
      description: The response message error.
      required:
        - code
        - title
        - message
      properties:
        code:
          type: string
          description: A unique, stable identifier for the error.
        title:
          type: string
          description: A brief summary of the issue.
        message:
          type: string
          description: Detailed guidance for resolving the error.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````