Obtém os detalhes de um processo
curl --request GET \
--url https://search.tratum.com.br/v1/process/{organizationId}/{processNumber} \
--header 'Authorization: Bearer <token>'import requests
url = "https://search.tratum.com.br/v1/process/{organizationId}/{processNumber}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://search.tratum.com.br/v1/process/{organizationId}/{processNumber}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://search.tratum.com.br/v1/process/{organizationId}/{processNumber}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://search.tratum.com.br/v1/process/{organizationId}/{processNumber}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://search.tratum.com.br/v1/process/{organizationId}/{processNumber}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://search.tratum.com.br/v1/process/{organizationId}/{processNumber}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"process": "<string>",
"process_id": 123,
"state": "<string>",
"court": "<string>",
"court_name": "<string>",
"classe": "<string>",
"status": "<string>",
"status_custom": "<string>",
"distribution_date": "2023-11-07T05:31:56Z",
"last_update": "2023-11-07T05:31:56Z",
"last_update_message": "<string>",
"value_claim": 123,
"value_claim_str": "<string>",
"authors": [
{
"name_author": "<string>",
"document": "<string>",
"representatives": [
{
"name_author": "<string>",
"document": "<string>"
}
]
}
],
"defendants": [
{
"name_author": "<string>",
"document": "<string>",
"representatives": [
{
"name_author": "<string>",
"document": "<string>"
}
]
}
],
"person_custom": [
{
"name_person": "<string>",
"function_person": "<string>"
}
],
"documents": [
{
"moviment_id": 123,
"description": "<string>",
"document_date": "2023-11-07T05:31:56Z",
"file": "<string>",
"type": "<string>",
"type_upload_file": "<string>",
"has_session": true,
"problem_file": true
}
],
"part_matches": [
{}
]
}Módulo Monitoria
Detalhes de Processo
API responsável por buscar detalhes de um processo.
GET
/
v1
/
process
/
{organizationId}
/
{processNumber}
Obtém os detalhes de um processo
curl --request GET \
--url https://search.tratum.com.br/v1/process/{organizationId}/{processNumber} \
--header 'Authorization: Bearer <token>'import requests
url = "https://search.tratum.com.br/v1/process/{organizationId}/{processNumber}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://search.tratum.com.br/v1/process/{organizationId}/{processNumber}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://search.tratum.com.br/v1/process/{organizationId}/{processNumber}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://search.tratum.com.br/v1/process/{organizationId}/{processNumber}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://search.tratum.com.br/v1/process/{organizationId}/{processNumber}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://search.tratum.com.br/v1/process/{organizationId}/{processNumber}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"process": "<string>",
"process_id": 123,
"state": "<string>",
"court": "<string>",
"court_name": "<string>",
"classe": "<string>",
"status": "<string>",
"status_custom": "<string>",
"distribution_date": "2023-11-07T05:31:56Z",
"last_update": "2023-11-07T05:31:56Z",
"last_update_message": "<string>",
"value_claim": 123,
"value_claim_str": "<string>",
"authors": [
{
"name_author": "<string>",
"document": "<string>",
"representatives": [
{
"name_author": "<string>",
"document": "<string>"
}
]
}
],
"defendants": [
{
"name_author": "<string>",
"document": "<string>",
"representatives": [
{
"name_author": "<string>",
"document": "<string>"
}
]
}
],
"person_custom": [
{
"name_person": "<string>",
"function_person": "<string>"
}
],
"documents": [
{
"moviment_id": 123,
"description": "<string>",
"document_date": "2023-11-07T05:31:56Z",
"file": "<string>",
"type": "<string>",
"type_upload_file": "<string>",
"has_session": true,
"problem_file": true
}
],
"part_matches": [
{}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Response
Detalhes do processo
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I
