> ## 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 an Infraction Report

> Use this endpoint to cancel an infraction report that is no longer
valid. This endpoint is used to cancel infractions reported by your own
PSP.


**Notes:**

- Cancellation is only allowed for reports in OPEN or ACKNOWLEDGED
status.

- Cancelled reports cannot be reopened or modified.

- Cancellation reason should be provided for audit purposes.



## OpenAPI

````yaml /en/openapi/v3-current/indirect-pix.yaml post /v1/dict/infraction-reports/{infraction_id}/cancel
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.0.0
servers:
  - url: https://plugin-pix-indirect.api.lerian.net
security:
  - bearerAuth: []
paths:
  /v1/dict/infraction-reports/{infraction_id}/cancel:
    post:
      tags:
        - MED API
      summary: Cancel an Infraction Report
      description: |-
        Use this endpoint to cancel an infraction report that is no longer
        valid. This endpoint is used to cancel infractions reported by your own
        PSP.


        **Notes:**

        - Cancellation is only allowed for reports in OPEN or ACKNOWLEDGED
        status.

        - Cancelled reports cannot be reopened or modified.

        - Cancellation reason should be provided for audit purposes.
      parameters:
        - $ref: '#/components/parameters/InfractionId'
      responses:
        '200':
          description: Infraction report cancelled successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InfractionReportObject'
        '400':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorFormat'
              examples:
                ErrorPIX0001:
                  $ref: '#/components/examples/ErrorPIX0001'
                ErrorPIX0218:
                  $ref: '#/components/examples/ErrorPIX0218'
        '404':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorFormat'
              examples:
                ErrorPIX0200:
                  $ref: '#/components/examples/ErrorPIX0200'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorFormat'
              examples:
                ErrorPIX0206:
                  $ref: '#/components/examples/ErrorPIX0206'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorFormat'
              examples:
                ErrorPIX0000:
                  $ref: '#/components/examples/ErrorPIX0000'
        '502':
          description: Bad Gateway
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorFormat'
              examples:
                ErrorPIX1000:
                  $ref: '#/components/examples/ErrorPIX1000'
                ErrorPIX1007:
                  $ref: '#/components/examples/ErrorPIX1007'
                ErrorPIX1099:
                  $ref: '#/components/examples/ErrorPIX1099'
      deprecated: false
      security:
        - bearerAuth: []
components:
  parameters:
    InfractionId:
      name: infraction_id
      in: path
      description: Unique identifier of the infraction report (UUID format).
      required: true
      example: 019c96a0-0c98-799e-9135-4613ca469ad8
      schema:
        type: string
  schemas:
    InfractionReportObject:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier.
          example: 019c96a0-0c98-799e-9135-4613ca469ad8
        transactionId:
          type: string
          description: SPI transaction identifier.
          example: E12345678202411241430ABCDEFGHIJK
        status:
          type: string
          description: Current status.
          enum:
            - OPEN
            - ACKNOWLEDGED
            - CLOSED
            - CANCELLED
          example: OPEN
        reason:
          type: string
          description: Infraction reason.
          example: REFUND_REQUEST
        reporterParticipant:
          type: string
          description: ISPB of the reporting participant.
          example: '12345678'
        counterpartyParticipant:
          type: string
          description: ISPB of the counterparty.
          example: '87654321'
        analysisResult:
          type: string
          description: BACEN analysis result.
          example: AGREED
        createdAt:
          type: string
          format: date-time
          example: '2024-01-15T10:30:00Z'
        updatedAt:
          type: string
          format: date-time
          example: '2024-01-15T10:30:00Z'
    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.
  examples:
    ErrorPIX0001:
      summary: Missing Headers in Request
      value:
        code: PIX-0001
        title: Missing Headers in Request
        message: >-
          Your request is missing one or more required header params. Please
          refer to the documentation to ensure all necessary header params are
          included in your request.
    ErrorPIX0218:
      summary: Cancellation Reason Too Long
      value:
        code: PIX-0218
        title: Cancellation Reason Too Long
        message: >-
          The cancellation reason exceeds the maximum allowed length of 500
          characters.
    ErrorPIX0200:
      summary: Infraction Report Not Found
      value:
        code: PIX-0200
        title: Infraction Report Not Found
        message: The infraction report was not found.
    ErrorPIX0206:
      summary: Infraction Report Cannot Be Cancelled
      value:
        code: PIX-0206
        title: Infraction Report Cannot Be Cancelled
        message: The infraction report cannot be cancelled in current status.
    ErrorPIX0000:
      summary: Internal Server Error
      value:
        code: PIX-0000
        title: Internal Server Error
        message: The server encountered an unexpected error. Please try again later.
    ErrorPIX1000:
      summary: Provider Connection Error
      value:
        code: PIX-1000
        title: Provider Connection Error
        message: Failed to connect to provider.
    ErrorPIX1007:
      summary: Provider Internal Error
      value:
        code: PIX-1007
        title: Provider Internal Error
        message: Provider returned an internal error.
    ErrorPIX1099:
      summary: Provider Unmapped Error
      value:
        code: PIX-1099
        title: Provider Unmapped Error
        message: Provider returned an unmapped error.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````