List an entity's RPC documents
curl --request GET \
--url https://api.syntage.com/entities/{entityId}/datasources/mx/rpc/documents \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.syntage.com/entities/{entityId}/datasources/mx/rpc/documents"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.syntage.com/entities/{entityId}/datasources/mx/rpc/documents', 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://api.syntage.com/entities/{entityId}/datasources/mx/rpc/documents",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$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://api.syntage.com/entities/{entityId}/datasources/mx/rpc/documents"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.syntage.com/entities/{entityId}/datasources/mx/rpc/documents")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.syntage.com/entities/{entityId}/datasources/mx/rpc/documents")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"@context": "/contexts/MxRpcDocuments",
"@id": "/entities/99c13810-868f-482e-a6f1-878254248d27/datasources/mx/rpc/documents",
"@type": "MxRpcDocuments",
"documents": [
{
"id": "7c1f0e2a-1b3c-4d5e-8f90-abcdef012345",
"hash": "<string>",
"numeroDeDocumento": "<string>",
"formaPrecodificada": "<string>",
"layout": 123,
"nci": "<string>",
"fechaDeIngreso": "2017-01-01",
"fechaDeInscripcion": "2017-01-15",
"actosCount": 123,
"fileId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"actos": [
{
"id": "91106968-1abd-4d64-85c1-4e73d96fb997",
"acto": "<string>",
"modalidad": "<string>",
"formaPrecodificada": "<string>",
"numeroDeDocumento": "<string>",
"nci": "<string>",
"fechaDeIngreso": "2017-01-01",
"fileId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
}
]
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Documents
List an entity's RPC documents
List the RPC documents filed under an entity, each with the actos grouped under it, deduplicated by the content hash computed upstream. Use the optional entidade filter to scope the list to a single registry entidade.
GET
/
entities
/
{entityId}
/
datasources
/
mx
/
rpc
/
documents
List an entity's RPC documents
curl --request GET \
--url https://api.syntage.com/entities/{entityId}/datasources/mx/rpc/documents \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.syntage.com/entities/{entityId}/datasources/mx/rpc/documents"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.syntage.com/entities/{entityId}/datasources/mx/rpc/documents', 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://api.syntage.com/entities/{entityId}/datasources/mx/rpc/documents",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$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://api.syntage.com/entities/{entityId}/datasources/mx/rpc/documents"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.syntage.com/entities/{entityId}/datasources/mx/rpc/documents")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.syntage.com/entities/{entityId}/datasources/mx/rpc/documents")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"@context": "/contexts/MxRpcDocuments",
"@id": "/entities/99c13810-868f-482e-a6f1-878254248d27/datasources/mx/rpc/documents",
"@type": "MxRpcDocuments",
"documents": [
{
"id": "7c1f0e2a-1b3c-4d5e-8f90-abcdef012345",
"hash": "<string>",
"numeroDeDocumento": "<string>",
"formaPrecodificada": "<string>",
"layout": 123,
"nci": "<string>",
"fechaDeIngreso": "2017-01-01",
"fechaDeInscripcion": "2017-01-15",
"actosCount": 123,
"fileId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"actos": [
{
"id": "91106968-1abd-4d64-85c1-4e73d96fb997",
"acto": "<string>",
"modalidad": "<string>",
"formaPrecodificada": "<string>",
"numeroDeDocumento": "<string>",
"nci": "<string>",
"fechaDeIngreso": "2017-01-01",
"fileId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
}
]
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Authorizations
Your API key is available in the Production and Sandbox dashboards.
Response
Documents filed under the entity, each with its grouped actos
Every document filed under the entity, each with the actos grouped under it.
Was this page helpful?