Skip to main content

Query Account Blocks

Request

ENDPOINT
/account/ACCOUNT_KEY/account_block_records
METHOD
GET

Path parameters

FieldTypeDescription
ACCOUNT_KEYUUIDKey of the account to be detailed

Query parameters

FieldTypeDescriptionCharacters
block_order_statuses *enumeratorIndicates the status of the block order.block_order_statuses enumerators

block_order_statuses enumerators

EnumeratorDescription
pendingPending block order
openOpen block order
concludedConcluded block order

Response

STATUS
200
Response Body
{
[
{
"account_blocked_amount": 1000,
"block_order": {
"block_order_protocol": "100000000",
"block_order_sequence": "00001",
"case_number": "0000000000000",
"court_code": "00000",
"defendant_document_number": "00000000000000",
"institution_document_number": null,
"lawsuit_author_name": "NOME DO JUIZ",
"lawsuit_type": "labor",
"protocol_datetime": "2025-04-28T08:34:16Z",
"requested_amount": 1000,
"requester_judge": "JUIZ DE DIREITO"
}
}
]
}

Response Body Params

FieldTypeDescriptionMax. Characters
account_blocked_amountfloatAmount blocked in the account.-
block_orderobjectDetails of the block order.block_order object

block_order object

FieldTypeDescriptionMax. Characters
block_order_protocolstringBlock order protocol.-
block_order_sequencestringBlock order sequence.-
case_numberstringCase number.-
court_codestringCourt code.-
defendant_document_numberstringDefendant's document number.14
institution_document_numberstring or nullInstitution's document number, if applicable.-
lawsuit_author_namestringLawsuit author's name.-
lawsuit_typeenumeratorLawsuit type.lawsuit_type enumerators
protocol_datetimestringProtocol date and time.20
requested_amountfloatRequested amount.-
requester_judgestringRequesting judge's name.-

lawsuit_type enumerators

EnumeratorDescription
laborLabor lawsuit
civilCivil lawsuit
criminalCriminal lawsuit
taxTax lawsuit
familyFamily lawsuit
STATUS
404
Response Body: Account not found
{
"title": "Not Found",
"description": "Account not found for the given key 3e4b8746-da58-4799-bcd0-063326428d3f",
"translation": "Conta não encontrada para a seguinte chave 3e4b8746-da58-4799-bcd0-063326428d3f",
"code": "ACC000006"
}
STATUS
403
Response Body: User does not have permission
{
"title": "Permission Validator Error",
"description": "Selected agent do not own this item.",
"translation": "O agente selecionado não é dono do item.",
"code": "QIT000005"
}