Cancel PIX Key Claim

Cancel an ongoing PIX key claim. Both the claimer (requesting party) and donor (current key holder) can cancel a claim while it is in OPEN or WAITING_RESOLUTION status.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Endpoint

POST /v3/dict/claim/{pix_key_claim_id}/cancel

Headers

ParameterTypeDescriptionExample
AuthorizationStringBearer + Access_tokenBearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzEzMzAwOTMxLCJpYXQiOjE3MTMyOTczMzEsImp0aSI6Ijc2ZWI4ZTE5ZjM4YjQ4NmZiODdmNzNjNTdkMWVmNDJhIiwidXNlcl9pZCI6MjQ2fQ.5zekMa7CUj9p-MvNHns5ke4ZPhYV3Y1CLOsYL7hDUUo
hmacStringHMAC signature for request authenticationhmac: 57373705c83bc5efe41001790c54642e670088c0c87d56bc8f990f2260c7740b99f4081ff231b87f82118c1e77a959e1f40eacf690a8fa61a827a9ba01d546f6

Path Parameters

ParameterTypeDescriptionExample
pix_key_claim_idStringThe internal ID of the claim to cancelabc123def456ghi789

Body Details

{
  "cancellation_reason": "USER_REQUESTED"
}
FieldTypeDescriptionRequired or Optional
cancellation_reasonStringReason for cancellation. Valid values: USER_REQUESTED (user requested) or FRAUD (suspected fraud)required

Request Examples

Cancel claim with user requested reason:

POST /v3/dict/claim/abc123def456ghi789/cancel
Authorization: Bearer access_token_here
hmac: computed_hmac_signature
Content-Type: application/json

{
  "cancellation_reason": "USER_REQUESTED"
}

Cancel claim for fraud:

POST /v3/dict/claim/abc123def456ghi789/cancel
Authorization: Bearer access_token_here
hmac: computed_hmac_signature
Content-Type: application/json

{
  "cancellation_reason": "FRAUD"
}

HMAC Payload:
The HMAC signature must be computed over the JSON payload:

{
  "pix_key_claim_id": "abc123def456ghi789",
  "cancellation_reason": "USER_REQUESTED"
}

Response Details

{
  "worked": true,
  "pix_key_claim_id": "abc123def456ghi789",
  "claim_id": "123e4567-e89b-12d3-a456-426655440000",
  "status": "CANCELLED",
  "cancellation_reason": "USER_REQUESTED",
  "cancelled_by_role": "CLAIMER",
  "last_modification_datetime": "2024-12-24T14:30:00.000Z",
  "message": "Claim cancelled successfully in the DICT."
}
FieldTypeDescription
workedBooleanAlways true for successful requests.
pix_key_claim_idStringInternal database ID for this claim record
claim_idStringDICT claim identifier (UUID format)
statusStringUpdated claim status. Should be CANCELLED after successful cancellation
cancellation_reasonStringReason for cancellation: USER_REQUESTED or FRAUD
cancelled_by_roleStringRole of the party who cancelled: CLAIMER or DONOR
last_modification_datetimeStringTimestamp of the last modification in DICT (ISO 8601 format)
messageStringInformative message about the operation result

Error Responses

HTTP CodeError MessageDescription
400Company not foundThe company associated with the authenticated user was not found

| 400 | Claim can only be cancelled in status OPEN or WAITING_RESOLUTION | Claim is not in a cancellable status. Only OPEN or WAITING_RESOLUTION claims can be cancelled |
| 400 | Claim has no DICT claim_id | The claim does not have a DICT identifier yet and cannot be cancelled |
| 400 | Cancellation reason not allowed | The provided cancellation reason is not valid for the user's role in this claim |
| 401 | Unauthorized | Invalid or missing authentication token, or invalid HMAC signature |
| 404 | Pix key claim not found | The claim ID was not found, or does not belong to the authenticated company, or user lacks permission |
| 422 | Validation error | Request validation failed. Check that all required fields are present and in the correct format. |

Business Rules

Who Can Cancel:

  • Claimer: Can cancel claims where they are the requesting party
  • Donor: Can cancel claims where they are the current key holder
  • You must have access to the account associated with the claim

When to Cancel:

  • Claim must be in OPEN or WAITING_RESOLUTION status
  • Claims that are already CONFIRMED, COMPLETED, or CANCELLED cannot be cancelled
  • Once a claim moves to CONFIRMED status, only the claimer can act (conclude for ownership)

Cancellation Reasons:
Two cancellation reasons are supported, and their usage depends on the claim context:

ReasonCodeClaimer Can Use?Donor Can Use?Description
USER_REQUESTED0✅ Yes✅ YesUser requested the cancellation (most common reason)
FRAUD4✅ Yes✅ YesSuspected fraud or unauthorized claim

Authentication Requirements:

  • Must provide valid hmac header
  • HMAC must be computed over the JSON containing both pix_key_claim_id and cancellation_reason

Effect of Cancellation:

  • Updates claim status to CANCELLED
  • Records cancellation reason in the claim
  • Records which role (CLAIMER or DONOR) cancelled
  • Records the authenticated user's ID for audit purposes
  • For portability claims with donor cancellation, the key remains with the donor
  • For ownership claims with donor cancellation, the key ownership stays with the donor

Important Notes:

  • Cancellation is final and cannot be undone
  • After cancellation, a new claim can be created for the same key (subject to business rules)
  • The cancellation is immediately communicated to DICT
  • Both parties are notified of the cancellation
  • Cancelled claims remain in the database for audit purposes
  • The system validates that the cancellation reason is appropriate for the user's role and claim type

Common Use Cases:

  • User requested: User changed their mind, no longer wants the key transfer
  • Fraud: Suspected fraudulent claim attempt, unauthorized request, or security concerns
Path Params
string
required

The pix_key_claim_id identifier

Body Params
Responses

400

Bad request - Invalid parameters

401

Unauthorized - Invalid or missing authentication

500

Internal server error

Language
LoadingLoading…
Response
Choose an example:
application/json