> ## 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 Fraud Marker

> Use this endpoint to cancel a previously registered fraud marker.


**Notes:**

- Cancellation is only allowed for markers in REGISTERED status.

- Only the participant who created the fraud marker can cancel it.

- For fraud markers created from infraction report closures, the
counterparty participant who closed the infraction can cancel the
marker.

- Cancelled markers cannot be reactivated.



## OpenAPI

````yaml /en/openapi/v3-current/indirect-pix.yaml post /v1/dict/fraud-markers/{fraud_marker_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/fraud-markers/{fraud_marker_id}/cancel:
    post:
      tags:
        - MED API
      summary: Cancel a Fraud Marker
      description: |-
        Use this endpoint to cancel a previously registered fraud marker.


        **Notes:**

        - Cancellation is only allowed for markers in REGISTERED status.

        - Only the participant who created the fraud marker can cancel it.

        - For fraud markers created from infraction report closures, the
        counterparty participant who closed the infraction can cancel the
        marker.

        - Cancelled markers cannot be reactivated.
      parameters:
        - $ref: '#/components/parameters/FraudMarkerId'
      responses:
        '200':
          description: Fraud marker cancelled successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FraudMarkerObject'
        '400':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorFormat'
              examples:
                ErrorPIX0001:
                  $ref: '#/components/examples/ErrorPIX0001'
        '404':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorFormat'
              examples:
                ErrorPIX0262:
                  $ref: '#/components/examples/ErrorPIX0262'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorFormat'
              examples:
                ErrorPIX0263:
                  $ref: '#/components/examples/ErrorPIX0263'
                ErrorPIX1083:
                  $ref: '#/components/examples/ErrorPIX1083'
        '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:
    FraudMarkerId:
      name: fraud_marker_id
      in: path
      description: Unique identifier of the fraud marker (UUID format).
      required: true
      example: 019c96a0-0cfd-7d0d-8fc5-17a164b828b6
      schema:
        type: string
  schemas:
    FraudMarkerObject:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier.
          example: 019c96a0-0cfd-7d0d-8fc5-17a164b828b6
        document:
          type: string
          description: CPF or CNPJ.
          example: '12345678901'
        fraudType:
          type: string
          description: Type of fraud.
          enum:
            - APPLICATION_FRAUD
            - MULE_ACCOUNT
            - SCAMMER_ACCOUNT
            - OTHER
          example: MULE_ACCOUNT
        key:
          type: string
          description: Associated Pix key.
          example: fraud@example.com
        status:
          type: string
          description: Current status.
          enum:
            - REGISTERED
            - CANCELLED
          example: REGISTERED
        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.
    ErrorPIX0262:
      summary: Fraud Marker Not Found
      value:
        code: PIX-0262
        title: Fraud Marker Not Found
        message: The specified fraud marker was not found.
    ErrorPIX0263:
      summary: Cannot Cancel Marker
      value:
        code: PIX-0263
        title: Cannot Cancel Marker
        message: >-
          The fraud marker cannot be cancelled because it is already in
          CANCELLED status.
    ErrorPIX1083:
      summary: Cannot Cancel Marker
      value:
        code: PIX-1083
        title: Cannot Cancel Marker
        message: >-
          The provider reports that the marker cannot be cancelled due to its
          current state.
    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

````