Obtener CFE por ID
curl --request GET \
--url https://api.zynvo.uy/v1/enterprises/{rut}/cfes/{cfe_id} \
--header 'Authorization: Bearer <token>' \
--header 'X-API-Key: <api-key>' \
--header 'X-Sandbox-Mode: <x-sandbox-mode>'import requests
url = "https://api.zynvo.uy/v1/enterprises/{rut}/cfes/{cfe_id}"
headers = {
"X-Sandbox-Mode": "<x-sandbox-mode>",
"X-API-Key": "<api-key>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'X-Sandbox-Mode': '<x-sandbox-mode>',
'X-API-Key': '<api-key>',
Authorization: 'Bearer <token>'
}
};
fetch('https://api.zynvo.uy/v1/enterprises/{rut}/cfes/{cfe_id}', 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.zynvo.uy/v1/enterprises/{rut}/cfes/{cfe_id}",
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>",
"X-API-Key: <api-key>",
"X-Sandbox-Mode: <x-sandbox-mode>"
],
]);
$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.zynvo.uy/v1/enterprises/{rut}/cfes/{cfe_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Sandbox-Mode", "<x-sandbox-mode>")
req.Header.Add("X-API-Key", "<api-key>")
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.zynvo.uy/v1/enterprises/{rut}/cfes/{cfe_id}")
.header("X-Sandbox-Mode", "<x-sandbox-mode>")
.header("X-API-Key", "<api-key>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zynvo.uy/v1/enterprises/{rut}/cfes/{cfe_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Sandbox-Mode"] = '<x-sandbox-mode>'
request["X-API-Key"] = '<api-key>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"items": [
{
"cfe_id": "101-123456",
"cfe_type": "ETICKET",
"cfe_type_code": "101",
"cfe_type_label": "e-Ticket",
"cfe_status": "ACCEPTED",
"serie": "A",
"numero": 123456,
"emission_date": "2024-03-15",
"total_amount": 1500,
"pay_amount": 1500,
"currency": "UYU",
"exchange_rate": 1,
"receiver": {
"receiver_doc_type": "RUC",
"receiver_document": "987654321",
"legal_name": "Cliente Ejemplo S.R.L.",
"country_code": "UY"
},
"created_at": "2024-03-15T14:30:00Z"
}
],
"total": 1
}
}{
"error": {
"code": "INVALID_INPUT",
"message": "Los datos proporcionados no son válidos"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "No se encontró el recurso solicitado"
}
}Comprobantes
Obtener CFE por ID
Obtiene los detalles completos de un comprobante fiscal electrónico específico
GET
/
enterprises
/
{rut}
/
cfes
/
{cfe_id}
Obtener CFE por ID
curl --request GET \
--url https://api.zynvo.uy/v1/enterprises/{rut}/cfes/{cfe_id} \
--header 'Authorization: Bearer <token>' \
--header 'X-API-Key: <api-key>' \
--header 'X-Sandbox-Mode: <x-sandbox-mode>'import requests
url = "https://api.zynvo.uy/v1/enterprises/{rut}/cfes/{cfe_id}"
headers = {
"X-Sandbox-Mode": "<x-sandbox-mode>",
"X-API-Key": "<api-key>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'X-Sandbox-Mode': '<x-sandbox-mode>',
'X-API-Key': '<api-key>',
Authorization: 'Bearer <token>'
}
};
fetch('https://api.zynvo.uy/v1/enterprises/{rut}/cfes/{cfe_id}', 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.zynvo.uy/v1/enterprises/{rut}/cfes/{cfe_id}",
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>",
"X-API-Key: <api-key>",
"X-Sandbox-Mode: <x-sandbox-mode>"
],
]);
$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.zynvo.uy/v1/enterprises/{rut}/cfes/{cfe_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Sandbox-Mode", "<x-sandbox-mode>")
req.Header.Add("X-API-Key", "<api-key>")
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.zynvo.uy/v1/enterprises/{rut}/cfes/{cfe_id}")
.header("X-Sandbox-Mode", "<x-sandbox-mode>")
.header("X-API-Key", "<api-key>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zynvo.uy/v1/enterprises/{rut}/cfes/{cfe_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Sandbox-Mode"] = '<x-sandbox-mode>'
request["X-API-Key"] = '<api-key>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"items": [
{
"cfe_id": "101-123456",
"cfe_type": "ETICKET",
"cfe_type_code": "101",
"cfe_type_label": "e-Ticket",
"cfe_status": "ACCEPTED",
"serie": "A",
"numero": 123456,
"emission_date": "2024-03-15",
"total_amount": 1500,
"pay_amount": 1500,
"currency": "UYU",
"exchange_rate": 1,
"receiver": {
"receiver_doc_type": "RUC",
"receiver_document": "987654321",
"legal_name": "Cliente Ejemplo S.R.L.",
"country_code": "UY"
},
"created_at": "2024-03-15T14:30:00Z"
}
],
"total": 1
}
}{
"error": {
"code": "INVALID_INPUT",
"message": "Los datos proporcionados no son válidos"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "No se encontró el recurso solicitado"
}
}Authorizations
API Key de Zynvo obtenida desde el dashboard. Requerida en todos los endpoints.
Token JWT obtenido del endpoint /tokens. Se debe enviar en el header Authorization como "Bearer {token}"
Headers
Define el entorno de ejecución de la API.
Valores:
"true"- Modo sandbox: Usa datos de prueba aislados"false"- Modo producción: Usa datos reales
Available options:
true, false Response
Detalles del CFE
Show child attributes
Show child attributes
⌘I