SAQ DigitalDocs

    List PIX Key Claims

    Retrieve a list of all PIX key claims associated with a specific account. This endpoint allows you to monitor the status of ongoing claims, view completed claims, and track claim history.

    GEThttps://api.saq.digital/v3/dict/claim
    curl --request GET \
      --url 'https://api.saq.digital/v3/dict/claim' \
      --header 'Authorization: Bearer <ACCESS_TOKEN>'
    Response200
    {
      "worked": true,
      "claims": [
        {
          "pix_key_claim_id": "abc123def456ghi789",
          "claim_id": "123e4567-e89b-12d3-a456-426655440000",
          "type": "CELL_PHONE",
          "key": "+5511999999999",
          "role": "CLAIMER",
          "claim_type": "PORTABILITY",
          "status": "OPEN",
          "source_account_branch_identifier": "0001",
          "source_account_number": "12345678",
          "resolution_deadline": "2024-12-31T23:59:59.999Z",
          "conclusion_deadline": null,
          "last_modification_datetime": "2024-12-24T10:30:00.000Z",
          "counterpart_ispb": "12345678",
          "confirmation_reason": null,
          "cancellation_reason": null,
          "cancelled_by_role": null,
          "cancelled_by_name": null,
          "confirmed_by_name": null,
          "completed_by_name": null,
          "created_by_name": "John Doe",
          "created_at": "2024-12-24T10:30:00.000Z"
        },
        {
          "pix_key_claim_id": "xyz789abc012def345",
          "claim_id": "987f6543-c21b-34d5-e678-890123456789",
          "type": "CPF",
          "key": "12345678901",
          "role": "DONOR",
          "claim_type": "OWNERSHIP",
          "status": "WAITING_RESOLUTION",
          "source_account_branch_identifier": "0001",
          "source_account_number": "12345678",
          "resolution_deadline": "2024-12-31T23:59:59.999Z",
          "conclusion_deadline": "2025-01-02T23:59:59.999Z",
          "last_modification_datetime": "2024-12-25T14:20:00.000Z",
          "counterpart_ispb": "87654321",
          "confirmation_reason": null,
          "cancellation_reason": null,
          "cancelled_by_role": null,
          "cancelled_by_name": null,
          "confirmed_by_name": null,
          "completed_by_name": null,
          "created_by_name": "Jane Smith",
          "created_at": "2024-12-25T14:20:00.000Z"
        }
      ]
    }

    Endpoint

    GET /v3/dict/claim

    Headers

    ParameterTypeDescriptionExample
    AuthorizationStringBearer + Access_tokenBearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzEzMzAwOTMxLCJpYXQiOjE3MTMyOTczMzEsImp0aSI6Ijc2ZWI4ZTE5ZjM4YjQ4NmZiODdmNzNjNTdkMWVmNDJhIiwidXNlcl9pZCI6MjQ2fQ.5zekMa7CUj9p-MvNHns5ke4ZPhYV3Y1CLOsYL7hDUUo

    Query Parameters

    ParameterTypeDescriptionRequired or OptionalExample
    source_account_branch_identifierStringBranch identifier of the accountrequired0001
    source_account_numberStringAccount number to list claims forrequired12345678
    statusStringFilter by claim status. Valid values: OPEN, WAITING_RESOLUTION, CONFIRMED, COMPLETED, CANCELLEDoptionalOPEN

    Request Examples

    List all claims for an account:

    GET /v3/dict/claim?source_account_branch_identifier=0001&source_account_number=12345678
    Authorization: Bearer access_token_here

    List only open claims:

    GET /v3/dict/claim?source_account_branch_identifier=0001&source_account_number=12345678&status=OPEN
    Authorization: Bearer access_token_here

    List confirmed claims:

    GET /v3/dict/claim?source_account_branch_identifier=0001&source_account_number=12345678&status=CONFIRMED
    Authorization: Bearer access_token_here

    Response Details

    {
      "worked": true,
      "claims": [
        {
          "pix_key_claim_id": "abc123def456ghi789",
          "claim_id": "123e4567-e89b-12d3-a456-426655440000",
          "type": "CELL_PHONE",
          "key": "+5511999999999",
          "role": "CLAIMER",
          "claim_type": "PORTABILITY",
          "status": "OPEN",
          "source_account_branch_identifier": "0001",
          "source_account_number": "12345678",
          "resolution_deadline": "2024-12-31T23:59:59.999Z",
          "conclusion_deadline": null,
          "last_modification_datetime": "2024-12-24T10:30:00.000Z",
          "counterpart_ispb": "12345678",
          "confirmation_reason": null,
          "cancellation_reason": null,
          "cancelled_by_role": null,
          "cancelled_by_name": null,
          "confirmed_by_name": null,
          "completed_by_name": null,
          "created_by_name": "John Doe",
          "created_at": "2024-12-24T10:30:00.000Z"
        },
        {
          "pix_key_claim_id": "xyz789abc012def345",
          "claim_id": "987f6543-c21b-34d5-e678-890123456789",
          "type": "CPF",
          "key": "12345678901",
          "role": "DONOR",
          "claim_type": "OWNERSHIP",
          "status": "WAITING_RESOLUTION",
          "source_account_branch_identifier": "0001",
          "source_account_number": "12345678",
          "resolution_deadline": "2024-12-31T23:59:59.999Z",
          "conclusion_deadline": "2025-01-02T23:59:59.999Z",
          "last_modification_datetime": "2024-12-25T14:20:00.000Z",
          "counterpart_ispb": "87654321",
          "confirmation_reason": null,
          "cancellation_reason": null,
          "cancelled_by_role": null,
          "cancelled_by_name": null,
          "confirmed_by_name": null,
          "completed_by_name": null,
          "created_by_name": "Jane Smith",
          "created_at": "2024-12-25T14:20:00.000Z"
        }
      ]
    }

    Response Fields

    FieldTypeDescription
    workedBooleanAlways true for successful requests.
    claimsArrayArray of claim objects matching the query criteria

    Claim Object Fields

    FieldTypeDescription
    pix_key_claim_idStringInternal database ID for this claim record
    claim_idStringDICT claim identifier (UUID format). May be null if not yet synced with DICT
    typeStringPIX key type being claimed (CPF, CNPJ, CELL_PHONE, EMAIL)
    keyStringThe PIX key value being claimed
    roleStringRole in this claim: CLAIMER (requesting) or DONOR (current holder)
    claim_typeStringType of claim: PORTABILITY or OWNERSHIP
    statusStringCurrent claim status: OPEN, WAITING_RESOLUTION, CONFIRMED, COMPLETED, CANCELLED
    source_account_branch_identifierStringBranch identifier of the account
    source_account_numberStringAccount number
    resolution_deadlineStringDeadline for donor to respond (ISO 8601 format). May be null
    conclusion_deadlineStringDeadline for claimer to conclude (ownership claims only - ISO 8601 format). May be null
    last_modification_datetimeStringLast modification timestamp from DICT (ISO 8601 format). May be null
    counterpart_ispbStringISPB of the counterpart institution. May be null
    confirmation_reasonStringReason for confirmation if claim was confirmed. May be null
    cancellation_reasonStringReason for cancellation if claim was cancelled. May be null
    cancelled_by_roleStringRole of who cancelled (CLAIMER or DONOR). May be null
    cancelled_by_nameStringName of the user who cancelled. May be null
    confirmed_by_nameStringName of the user who confirmed. May be null
    completed_by_nameStringName of the user who completed. May be null
    created_by_nameStringName of the user who created the claim. May be null
    created_atStringTimestamp when the claim was created locally (ISO 8601 format)

    Error Responses

    HTTP CodeError MessageDescription
    400Company not foundThe company associated with the authenticated user was not found
    400Account not foundThe source account was not found or is not active
    400AccountBank is closedThe account is closed and cannot be accessed
    401UnauthorizedInvalid or missing authentication token
    422Validation errorRequest validation failed. Check that all required query parameters are present and in the correct format.

    Business Rules

    Authorization:

    • You must have access to the specified account
    • Only claims associated with accounts you can access are returned

    Filtering:

    • Required filters: source_account_branch_identifier and source_account_number are mandatory
    • Optional filter: status can be provided to filter by a specific claim status
    • If no status is provided, all claims for the account are returned

    Claim Roles: You will see two types of claims in the results:

    • CLAIMER: Claims where your account is requesting to receive the key
    • DONOR: Claims where your account currently holds the key and someone is claiming it

    Status Values:

    • OPEN: Claim initiated, waiting for donor to read
    • WAITING_RESOLUTION: Donor has read the claim, waiting for action
    • CONFIRMED: Donor confirmed the claim
    • COMPLETED: Claim successfully completed
    • CANCELLED: Claim was cancelled

    Sorting:

    • Claims are returned with most recent first (by creation date)
    • You can use the created_at field to determine claim age

    Important Notes:

    • The response includes historical claims (completed and cancelled)
    • Claims with null claim_id are still pending synchronization with DICT
    • Deadlines shown are in ISO 8601 format with timezone information
    • The counterpart_ispb identifies the other institution involved in the claim
    • User names (created_by, confirmed_by, etc.) are included for audit purposes

    Use Cases:

    1. Monitor pending claims: Filter by status=OPEN or status=WAITING_RESOLUTION to see claims needing action
    2. Check claim history: Retrieve all claims without status filter to see complete history
    3. Donor notifications: Filter by role=DONOR to see claims where you need to confirm/cancel
    4. Claimer tracking: Filter by role=CLAIMER to monitor your outgoing claim requests
    5. Audit trail: Use the various _by_name fields to track who performed each action

    Performance Considerations:

    • This endpoint is optimized for single-account queries
    • For bulk operations across multiple accounts, make separate requests
    • Results are not paginated - all matching claims are returned
    • Typical response times are under 500ms for accounts with moderate claim history