Informe de revisión
Problemas encontrados y arreglos aplicados.
curl --request GET \
--url https://api.eu.doconda.com/v1/documents/{document_id}/report \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.eu.doconda.com/v1/documents/{document_id}/report"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.eu.doconda.com/v1/documents/{document_id}/report', 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.eu.doconda.com/v1/documents/{document_id}/report",
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://api.eu.doconda.com/v1/documents/{document_id}/report"
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://api.eu.doconda.com/v1/documents/{document_id}/report")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eu.doconda.com/v1/documents/{document_id}/report")
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{
"document_id": "<string>",
"issues": [
{
"code": "table.overflow_width",
"severity": "error",
"category": "structural",
"message": "<string>",
"fixable": true,
"location": {
"pages": [
0
],
"sheet": "<string>",
"cells": [
"<string>"
]
}
}
],
"ledger": [
{
"iteration": 0,
"fix": "<string>",
"issue_code": "<string>",
"outcome": "applied",
"issues_before": 0,
"issues_after": 0,
"reason": "<string>"
}
],
"validation_summary": {
"errors": 0,
"warnings": 0,
"info": 0
},
"repair_summary": {
"iterations": 0,
"applied": 0,
"rejected": 0
},
"key_data": [
{
"value": "<string>",
"kind": "<string>",
"role": "<string>",
"context": "<string>"
}
],
"edits": [
{
"op": "<string>",
"outcome": "applied",
"block": "<string>",
"target": "<string>",
"before": "<string>",
"after": "<string>",
"reason": "<string>"
}
],
"changes": [
{
"change": "added",
"before": [
"<string>"
],
"after": [
"<string>"
]
}
],
"sanitized": {
"removed": [
"imagen enlazada",
"plantilla adjunta"
]
}
}{
"type": "<string>",
"title": "<string>",
"status": 0,
"code": "<string>",
"request_id": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 0,
"code": "<string>",
"request_id": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 0,
"code": "<string>",
"request_id": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
]
}Authorizations
Authorization: Bearer ak_eu_…. The prefix is the project's region and must match the server (api.eu / api.us).
Path Parameters
Response
Report.
^doc_[0-9A-HJKMNP-TV-Z]{26}$What is left after repairs.
Show child attributes
Show child attributes
Every repair attempted: applied or rejected, and why.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Key data found in the document (amounts, dates, tax ids, IBANs), with their role.
Show child attributes
Show child attributes
Only for edit: every change asked for, applied or not, with the text before and after.
Show child attributes
Show child attributes
Edits by the agent or by hand (a saved version): the paragraphs, cells or slide texts that were added, changed or removed.
Show child attributes
Show child attributes
Only for review/edit: what we neutralised in your file before opening it.
Show child attributes
Show child attributes
curl --request GET \
--url https://api.eu.doconda.com/v1/documents/{document_id}/report \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.eu.doconda.com/v1/documents/{document_id}/report"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.eu.doconda.com/v1/documents/{document_id}/report', 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.eu.doconda.com/v1/documents/{document_id}/report",
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://api.eu.doconda.com/v1/documents/{document_id}/report"
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://api.eu.doconda.com/v1/documents/{document_id}/report")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eu.doconda.com/v1/documents/{document_id}/report")
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{
"document_id": "<string>",
"issues": [
{
"code": "table.overflow_width",
"severity": "error",
"category": "structural",
"message": "<string>",
"fixable": true,
"location": {
"pages": [
0
],
"sheet": "<string>",
"cells": [
"<string>"
]
}
}
],
"ledger": [
{
"iteration": 0,
"fix": "<string>",
"issue_code": "<string>",
"outcome": "applied",
"issues_before": 0,
"issues_after": 0,
"reason": "<string>"
}
],
"validation_summary": {
"errors": 0,
"warnings": 0,
"info": 0
},
"repair_summary": {
"iterations": 0,
"applied": 0,
"rejected": 0
},
"key_data": [
{
"value": "<string>",
"kind": "<string>",
"role": "<string>",
"context": "<string>"
}
],
"edits": [
{
"op": "<string>",
"outcome": "applied",
"block": "<string>",
"target": "<string>",
"before": "<string>",
"after": "<string>",
"reason": "<string>"
}
],
"changes": [
{
"change": "added",
"before": [
"<string>"
],
"after": [
"<string>"
]
}
],
"sanitized": {
"removed": [
"imagen enlazada",
"plantilla adjunta"
]
}
}{
"type": "<string>",
"title": "<string>",
"status": 0,
"code": "<string>",
"request_id": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 0,
"code": "<string>",
"request_id": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 0,
"code": "<string>",
"request_id": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
]
}