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

> Cancels a DICT fraud marker by its directory resource ID within the scope of the participant determined by the authenticated tenant. The request has no body. Cancelling an already-CANCELLED marker is idempotent and returns 200 without changes. Returns 404 for an unknown resource ID, 403 when the participant is not authorized to cancel the marker, and 409 for another state conflict. When BACEN has not resolved the cancellation yet, the operation answers 409 / PIX-0118; errors[] carries operationId and operationStatus when the provider sent valid values. A later Get fraud marker shows the change BACEN applies. Do not retry blindly: a retry can keep returning this answer after BACEN resolves the operation.



## OpenAPI

````yaml /pt/openapi/v3-current/pix-lerian-dict.yaml post /dict/fraud-markers/{fraud_marker_id}/cancel
openapi: 3.1.0
info:
  contact:
    name: Lerian Studio
    url: https://lerian.studio
  description: >-
    Public API for Pix keys, claims, fraud markers, infraction reports, and MED
    funds recovery.
  license:
    name: Lerian Studio General License
  title: Pix Lerian — DICT
  version: 1.2.0
servers:
  - url: https://api.example.com/dict-hub/v1
    description: >-
      Replace the example host with the URL provided during environment
      onboarding.
security:
  - BearerAuth: []
tags:
  - description: Manage ownership and portability claims for Pix keys.
    name: Claims
  - description: Register, retrieve, list, update, and remove Pix keys.
    name: Entries
  - description: Create, query, list, and cancel DICT fraud markers.
    name: Fraud Markers
  - description: Manage participant-scoped MED 2.0 funds recoveries.
    name: Funds Recoveries
  - description: Manage MED 2.0 infraction reports for the authenticated organization.
    name: Infraction Reports
  - description: Look up Pix keys and check whether keys exist in the DICT directory.
    name: Keys
  - description: Create, query, cancel, and settle MED 2.0 refunds.
    name: Refunds
  - description: >-
      Read the state of key reconciliation against BACEN, and start a
      verification or a file reconciliation.
    name: VSync
paths:
  /dict/fraud-markers/{fraud_marker_id}/cancel:
    post:
      tags:
        - Fraud Markers
      summary: Cancel a fraud marker
      description: >-
        Cancels a DICT fraud marker by its directory resource ID within the
        scope of the participant determined by the authenticated tenant. The
        request has no body. Cancelling an already-CANCELLED marker is
        idempotent and returns 200 without changes. Returns 404 for an unknown
        resource ID, 403 when the participant is not authorized to cancel the
        marker, and 409 for another state conflict. When BACEN has not resolved
        the cancellation yet, the operation answers 409 / PIX-0118; errors[]
        carries operationId and operationStatus when the provider sent valid
        values. A later Get fraud marker shows the change BACEN applies. Do not
        retry blindly: a retry can keep returning this answer after BACEN
        resolves the operation.
      operationId: cancelFraudMarker
      parameters:
        - description: Directory fraud-marker id (UUID)
          in: path
          name: fraud_marker_id
          required: true
          schema:
            description: Directory fraud-marker id (UUID)
            examples:
              - 0b843bcc-7c1a-4a12-9c88-8d3a5d70e6a1
            format: uuid
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DICTFraudMarker'
          description: >-
            The cancelled marker (status CANCELLED). Also returned, unchanged,
            on an idempotent re-cancel of an already-CANCELLED marker.
        '400':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Detail'
          description: Malformed fraud_marker_id path parameter -- not a UUID (PIX-0015).
        '403':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Detail'
          description: >-
            The requesting participant is not authorized to perform this
            operation at the provider (PIX-0133).
        '404':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Detail'
          description: No fraud marker exists with this id at the provider (PIX-0130).
        '409':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Detail'
          description: >-
            The provider accepted the request but BACEN has not resolved it yet
            (PIX-0118); errors[] carries operationId and operationStatus when
            the provider sent valid values. Any other 409 the provider answers
            is a genuine state conflict unrelated to idempotent re-cancellation
            (PIX-0131).
        '429':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Detail'
          description: The provider rate-limited this operation; retry later (PIX-0134).
        '500':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Detail'
          description: Internal Server Error
        '502':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Detail'
          description: >-
            The provider adapter call failed outright -- an unreachable adapter
            or an unclassified upstream failure (PIX-0141).
        '504':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Detail'
          description: The provider call did not complete within its deadline (PIX-0054).
        default:
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Detail'
          description: Error
components:
  schemas:
    DICTFraudMarker:
      additionalProperties: false
      properties:
        creationTime:
          description: When the marker was registered at the provider (RFC 3339 UTC)
          examples:
            - '2026-08-21T10:00:00Z'
          format: date-time
          type: string
        fraudType:
          enum:
            - APPLICATION_FRAUD
            - MULE_ACCOUNT
            - SCAMMER_ACCOUNT
            - OTHER
            - UNKNOWN
          examples:
            - APPLICATION_FRAUD
          type: string
        id:
          description: Directory fraud-marker id
          examples:
            - 0b843bcc-7c1a-4a12-9c88-8d3a5d70e6a1
          format: uuid
          type: string
        infractionReport:
          $ref: '#/components/schemas/DICTFraudMarkerInfractionReport'
          description: >-
            The infraction report the provider created this marker from, when
            applicable
        key:
          description: Pix key linked to the marker, when one was supplied on create
          examples:
            - '+5561999998888'
          type: string
        lastModified:
          description: When the marker was last modified at the provider (RFC 3339 UTC)
          examples:
            - '2026-08-21T10:00:00Z'
          format: date-time
          type: string
        status:
          enum:
            - REGISTERED
            - CANCELLED
          examples:
            - REGISTERED
          type: string
        taxIdNumber:
          description: >-
            CPF (11 digits) or CNPJ (14 characters: 12 uppercase alphanumeric
            characters followed by 2 digits, unformatted, per IN RFB 2.229/2024)
            marked
          examples:
            - '12345678901'
          type: string
      required:
        - id
        - status
        - taxIdNumber
        - fraudType
        - creationTime
        - lastModified
      type: object
    Detail:
      additionalProperties: true
      properties:
        code:
          description: >-
            Stable, machine-readable domain error code scoped to the emitting
            service (format: <SERVICE>-NNNN).
          type: string
        detail:
          description: >-
            A human-readable explanation specific to this occurrence of the
            problem.
          examples:
            - Property foo is required but is missing.
          type: string
        errors:
          description: Optional list of individual error details
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type:
            - array
            - 'null'
        instance:
          description: >-
            A URI reference that identifies the specific occurrence of the
            problem.
          examples:
            - https://example.com/error-log/abc123
          format: uri
          type: string
        status:
          description: HTTP status code
          examples:
            - 400
          format: int64
          type: integer
        title:
          description: >-
            A short, human-readable summary of the problem type. This value
            should not change between occurrences of the error.
          examples:
            - Bad Request
          type: string
        type:
          default: about:blank
          description: A URI reference to human-readable documentation for the error.
          examples:
            - https://example.com/errors/example
          format: uri
          type: string
        upstream:
          $ref: '#/components/schemas/Upstream'
          description: >-
            RFC 9457 extension member: the error a proxied third-party provider
            reported. Absent unless the emitting service explicitly surfaced
            one.
      type: object
    DICTFraudMarkerInfractionReport:
      additionalProperties: false
      properties:
        id:
          description: Infraction report id at the provider
          examples:
            - 5e6f7a8b-9c0d-4e1f-8a2b-3c4d5e6f7a8b
          type: string
        reporterParticipant:
          description: ISPB of the participant that opened the infraction report
          examples:
            - '18236120'
          type: string
      required:
        - id
        - reporterParticipant
      type: object
    ErrorDetail:
      additionalProperties: false
      properties:
        location:
          description: >-
            Where the error occurred, e.g. 'body.items[3].tags' or
            'path.thing-id'
          type: string
        message:
          description: Error message text
          type: string
        value:
          description: The value at the given location
      type: object
    Upstream:
      additionalProperties: false
      properties:
        code:
          description: The upstream provider's own error code, verbatim.
          examples:
            - E4001
          type: string
        message:
          description: >-
            The upstream provider's own error message, verbatim (bounded, never
            its raw response body).
          examples:
            - account not found at provider
          type: string
      type: object
  securitySchemes:
    BearerAuth:
      bearerFormat: JWT
      description: JWT bearer token issued by the identity provider.
      scheme: bearer
      type: http

````

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