Emitir CFE
curl --request POST \
--url https://api.zynvo.uy/v1/enterprises/{rut}/cfes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--header 'X-Sandbox-Mode: <x-sandbox-mode>' \
--data '
{
"cfe_type": "ETICKET",
"header": {
"doc_id": {
"emission_date": "2024-03-15",
"payment_method": "1"
},
"totals": {
"currency": "UYU",
"exchange_rate": 1,
"total_amount": 1000,
"pay_amount": 1000,
"line_count": 1,
"tax_free_amount": 123,
"tax_basic_amount": 1000,
"tax_basic_net_amount": 819.67,
"tax_minimum_amount": 123,
"tax_minimum_net_amount": 123
},
"receiver": {
"receiver_doc_type": "RUC",
"receiver_document": "987654321",
"legal_name": "Cliente Ejemplo S.R.L.",
"fiscal_address": "Calle Principal 123",
"city": "Montevideo",
"department": "Montevideo",
"country": "Uruguay",
"country_code": "UY"
}
},
"details": [
{
"line_number": 1,
"iva_type": "BASIC_RATE",
"item_name": "Producto Ejemplo",
"count": 1,
"unit_price": 1000,
"item_amount": 1000,
"item_description": "Descripción del producto"
}
],
"reference": {
"cfe_id": "101-123456"
},
"extra": "<string>"
}
'import requests
url = "https://api.zynvo.uy/v1/enterprises/{rut}/cfes"
payload = {
"cfe_type": "ETICKET",
"header": {
"doc_id": {
"emission_date": "2024-03-15",
"payment_method": "1"
},
"totals": {
"currency": "UYU",
"exchange_rate": 1,
"total_amount": 1000,
"pay_amount": 1000,
"line_count": 1,
"tax_free_amount": 123,
"tax_basic_amount": 1000,
"tax_basic_net_amount": 819.67,
"tax_minimum_amount": 123,
"tax_minimum_net_amount": 123
},
"receiver": {
"receiver_doc_type": "RUC",
"receiver_document": "987654321",
"legal_name": "Cliente Ejemplo S.R.L.",
"fiscal_address": "Calle Principal 123",
"city": "Montevideo",
"department": "Montevideo",
"country": "Uruguay",
"country_code": "UY"
}
},
"details": [
{
"line_number": 1,
"iva_type": "BASIC_RATE",
"item_name": "Producto Ejemplo",
"count": 1,
"unit_price": 1000,
"item_amount": 1000,
"item_description": "Descripción del producto"
}
],
"reference": { "cfe_id": "101-123456" },
"extra": "<string>"
}
headers = {
"X-Sandbox-Mode": "<x-sandbox-mode>",
"X-API-Key": "<api-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Sandbox-Mode': '<x-sandbox-mode>',
'X-API-Key': '<api-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
cfe_type: 'ETICKET',
header: {
doc_id: {emission_date: '2024-03-15', payment_method: '1'},
totals: {
currency: 'UYU',
exchange_rate: 1,
total_amount: 1000,
pay_amount: 1000,
line_count: 1,
tax_free_amount: 123,
tax_basic_amount: 1000,
tax_basic_net_amount: 819.67,
tax_minimum_amount: 123,
tax_minimum_net_amount: 123
},
receiver: {
receiver_doc_type: 'RUC',
receiver_document: '987654321',
legal_name: 'Cliente Ejemplo S.R.L.',
fiscal_address: 'Calle Principal 123',
city: 'Montevideo',
department: 'Montevideo',
country: 'Uruguay',
country_code: 'UY'
}
},
details: [
{
line_number: 1,
iva_type: 'BASIC_RATE',
item_name: 'Producto Ejemplo',
count: 1,
unit_price: 1000,
item_amount: 1000,
item_description: 'Descripción del producto'
}
],
reference: {cfe_id: '101-123456'},
extra: '<string>'
})
};
fetch('https://api.zynvo.uy/v1/enterprises/{rut}/cfes', 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",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'cfe_type' => 'ETICKET',
'header' => [
'doc_id' => [
'emission_date' => '2024-03-15',
'payment_method' => '1'
],
'totals' => [
'currency' => 'UYU',
'exchange_rate' => 1,
'total_amount' => 1000,
'pay_amount' => 1000,
'line_count' => 1,
'tax_free_amount' => 123,
'tax_basic_amount' => 1000,
'tax_basic_net_amount' => 819.67,
'tax_minimum_amount' => 123,
'tax_minimum_net_amount' => 123
],
'receiver' => [
'receiver_doc_type' => 'RUC',
'receiver_document' => '987654321',
'legal_name' => 'Cliente Ejemplo S.R.L.',
'fiscal_address' => 'Calle Principal 123',
'city' => 'Montevideo',
'department' => 'Montevideo',
'country' => 'Uruguay',
'country_code' => 'UY'
]
],
'details' => [
[
'line_number' => 1,
'iva_type' => 'BASIC_RATE',
'item_name' => 'Producto Ejemplo',
'count' => 1,
'unit_price' => 1000,
'item_amount' => 1000,
'item_description' => 'Descripción del producto'
]
],
'reference' => [
'cfe_id' => '101-123456'
],
'extra' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.zynvo.uy/v1/enterprises/{rut}/cfes"
payload := strings.NewReader("{\n \"cfe_type\": \"ETICKET\",\n \"header\": {\n \"doc_id\": {\n \"emission_date\": \"2024-03-15\",\n \"payment_method\": \"1\"\n },\n \"totals\": {\n \"currency\": \"UYU\",\n \"exchange_rate\": 1,\n \"total_amount\": 1000,\n \"pay_amount\": 1000,\n \"line_count\": 1,\n \"tax_free_amount\": 123,\n \"tax_basic_amount\": 1000,\n \"tax_basic_net_amount\": 819.67,\n \"tax_minimum_amount\": 123,\n \"tax_minimum_net_amount\": 123\n },\n \"receiver\": {\n \"receiver_doc_type\": \"RUC\",\n \"receiver_document\": \"987654321\",\n \"legal_name\": \"Cliente Ejemplo S.R.L.\",\n \"fiscal_address\": \"Calle Principal 123\",\n \"city\": \"Montevideo\",\n \"department\": \"Montevideo\",\n \"country\": \"Uruguay\",\n \"country_code\": \"UY\"\n }\n },\n \"details\": [\n {\n \"line_number\": 1,\n \"iva_type\": \"BASIC_RATE\",\n \"item_name\": \"Producto Ejemplo\",\n \"count\": 1,\n \"unit_price\": 1000,\n \"item_amount\": 1000,\n \"item_description\": \"Descripción del producto\"\n }\n ],\n \"reference\": {\n \"cfe_id\": \"101-123456\"\n },\n \"extra\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Sandbox-Mode", "<x-sandbox-mode>")
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.zynvo.uy/v1/enterprises/{rut}/cfes")
.header("X-Sandbox-Mode", "<x-sandbox-mode>")
.header("X-API-Key", "<api-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"cfe_type\": \"ETICKET\",\n \"header\": {\n \"doc_id\": {\n \"emission_date\": \"2024-03-15\",\n \"payment_method\": \"1\"\n },\n \"totals\": {\n \"currency\": \"UYU\",\n \"exchange_rate\": 1,\n \"total_amount\": 1000,\n \"pay_amount\": 1000,\n \"line_count\": 1,\n \"tax_free_amount\": 123,\n \"tax_basic_amount\": 1000,\n \"tax_basic_net_amount\": 819.67,\n \"tax_minimum_amount\": 123,\n \"tax_minimum_net_amount\": 123\n },\n \"receiver\": {\n \"receiver_doc_type\": \"RUC\",\n \"receiver_document\": \"987654321\",\n \"legal_name\": \"Cliente Ejemplo S.R.L.\",\n \"fiscal_address\": \"Calle Principal 123\",\n \"city\": \"Montevideo\",\n \"department\": \"Montevideo\",\n \"country\": \"Uruguay\",\n \"country_code\": \"UY\"\n }\n },\n \"details\": [\n {\n \"line_number\": 1,\n \"iva_type\": \"BASIC_RATE\",\n \"item_name\": \"Producto Ejemplo\",\n \"count\": 1,\n \"unit_price\": 1000,\n \"item_amount\": 1000,\n \"item_description\": \"Descripción del producto\"\n }\n ],\n \"reference\": {\n \"cfe_id\": \"101-123456\"\n },\n \"extra\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zynvo.uy/v1/enterprises/{rut}/cfes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Sandbox-Mode"] = '<x-sandbox-mode>'
request["X-API-Key"] = '<api-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"cfe_type\": \"ETICKET\",\n \"header\": {\n \"doc_id\": {\n \"emission_date\": \"2024-03-15\",\n \"payment_method\": \"1\"\n },\n \"totals\": {\n \"currency\": \"UYU\",\n \"exchange_rate\": 1,\n \"total_amount\": 1000,\n \"pay_amount\": 1000,\n \"line_count\": 1,\n \"tax_free_amount\": 123,\n \"tax_basic_amount\": 1000,\n \"tax_basic_net_amount\": 819.67,\n \"tax_minimum_amount\": 123,\n \"tax_minimum_net_amount\": 123\n },\n \"receiver\": {\n \"receiver_doc_type\": \"RUC\",\n \"receiver_document\": \"987654321\",\n \"legal_name\": \"Cliente Ejemplo S.R.L.\",\n \"fiscal_address\": \"Calle Principal 123\",\n \"city\": \"Montevideo\",\n \"department\": \"Montevideo\",\n \"country\": \"Uruguay\",\n \"country_code\": \"UY\"\n }\n },\n \"details\": [\n {\n \"line_number\": 1,\n \"iva_type\": \"BASIC_RATE\",\n \"item_name\": \"Producto Ejemplo\",\n \"count\": 1,\n \"unit_price\": 1000,\n \"item_amount\": 1000,\n \"item_description\": \"Descripción del producto\"\n }\n ],\n \"reference\": {\n \"cfe_id\": \"101-123456\"\n },\n \"extra\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"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"
}
}{
"error": {
"code": "INVALID_INPUT",
"message": "Los datos proporcionados no son válidos"
}
}Comprobantes
Emitir CFE
Emite y envía un nuevo comprobante fiscal electrónico
POST
/
enterprises
/
{rut}
/
cfes
Emitir CFE
curl --request POST \
--url https://api.zynvo.uy/v1/enterprises/{rut}/cfes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--header 'X-Sandbox-Mode: <x-sandbox-mode>' \
--data '
{
"cfe_type": "ETICKET",
"header": {
"doc_id": {
"emission_date": "2024-03-15",
"payment_method": "1"
},
"totals": {
"currency": "UYU",
"exchange_rate": 1,
"total_amount": 1000,
"pay_amount": 1000,
"line_count": 1,
"tax_free_amount": 123,
"tax_basic_amount": 1000,
"tax_basic_net_amount": 819.67,
"tax_minimum_amount": 123,
"tax_minimum_net_amount": 123
},
"receiver": {
"receiver_doc_type": "RUC",
"receiver_document": "987654321",
"legal_name": "Cliente Ejemplo S.R.L.",
"fiscal_address": "Calle Principal 123",
"city": "Montevideo",
"department": "Montevideo",
"country": "Uruguay",
"country_code": "UY"
}
},
"details": [
{
"line_number": 1,
"iva_type": "BASIC_RATE",
"item_name": "Producto Ejemplo",
"count": 1,
"unit_price": 1000,
"item_amount": 1000,
"item_description": "Descripción del producto"
}
],
"reference": {
"cfe_id": "101-123456"
},
"extra": "<string>"
}
'import requests
url = "https://api.zynvo.uy/v1/enterprises/{rut}/cfes"
payload = {
"cfe_type": "ETICKET",
"header": {
"doc_id": {
"emission_date": "2024-03-15",
"payment_method": "1"
},
"totals": {
"currency": "UYU",
"exchange_rate": 1,
"total_amount": 1000,
"pay_amount": 1000,
"line_count": 1,
"tax_free_amount": 123,
"tax_basic_amount": 1000,
"tax_basic_net_amount": 819.67,
"tax_minimum_amount": 123,
"tax_minimum_net_amount": 123
},
"receiver": {
"receiver_doc_type": "RUC",
"receiver_document": "987654321",
"legal_name": "Cliente Ejemplo S.R.L.",
"fiscal_address": "Calle Principal 123",
"city": "Montevideo",
"department": "Montevideo",
"country": "Uruguay",
"country_code": "UY"
}
},
"details": [
{
"line_number": 1,
"iva_type": "BASIC_RATE",
"item_name": "Producto Ejemplo",
"count": 1,
"unit_price": 1000,
"item_amount": 1000,
"item_description": "Descripción del producto"
}
],
"reference": { "cfe_id": "101-123456" },
"extra": "<string>"
}
headers = {
"X-Sandbox-Mode": "<x-sandbox-mode>",
"X-API-Key": "<api-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Sandbox-Mode': '<x-sandbox-mode>',
'X-API-Key': '<api-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
cfe_type: 'ETICKET',
header: {
doc_id: {emission_date: '2024-03-15', payment_method: '1'},
totals: {
currency: 'UYU',
exchange_rate: 1,
total_amount: 1000,
pay_amount: 1000,
line_count: 1,
tax_free_amount: 123,
tax_basic_amount: 1000,
tax_basic_net_amount: 819.67,
tax_minimum_amount: 123,
tax_minimum_net_amount: 123
},
receiver: {
receiver_doc_type: 'RUC',
receiver_document: '987654321',
legal_name: 'Cliente Ejemplo S.R.L.',
fiscal_address: 'Calle Principal 123',
city: 'Montevideo',
department: 'Montevideo',
country: 'Uruguay',
country_code: 'UY'
}
},
details: [
{
line_number: 1,
iva_type: 'BASIC_RATE',
item_name: 'Producto Ejemplo',
count: 1,
unit_price: 1000,
item_amount: 1000,
item_description: 'Descripción del producto'
}
],
reference: {cfe_id: '101-123456'},
extra: '<string>'
})
};
fetch('https://api.zynvo.uy/v1/enterprises/{rut}/cfes', 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",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'cfe_type' => 'ETICKET',
'header' => [
'doc_id' => [
'emission_date' => '2024-03-15',
'payment_method' => '1'
],
'totals' => [
'currency' => 'UYU',
'exchange_rate' => 1,
'total_amount' => 1000,
'pay_amount' => 1000,
'line_count' => 1,
'tax_free_amount' => 123,
'tax_basic_amount' => 1000,
'tax_basic_net_amount' => 819.67,
'tax_minimum_amount' => 123,
'tax_minimum_net_amount' => 123
],
'receiver' => [
'receiver_doc_type' => 'RUC',
'receiver_document' => '987654321',
'legal_name' => 'Cliente Ejemplo S.R.L.',
'fiscal_address' => 'Calle Principal 123',
'city' => 'Montevideo',
'department' => 'Montevideo',
'country' => 'Uruguay',
'country_code' => 'UY'
]
],
'details' => [
[
'line_number' => 1,
'iva_type' => 'BASIC_RATE',
'item_name' => 'Producto Ejemplo',
'count' => 1,
'unit_price' => 1000,
'item_amount' => 1000,
'item_description' => 'Descripción del producto'
]
],
'reference' => [
'cfe_id' => '101-123456'
],
'extra' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.zynvo.uy/v1/enterprises/{rut}/cfes"
payload := strings.NewReader("{\n \"cfe_type\": \"ETICKET\",\n \"header\": {\n \"doc_id\": {\n \"emission_date\": \"2024-03-15\",\n \"payment_method\": \"1\"\n },\n \"totals\": {\n \"currency\": \"UYU\",\n \"exchange_rate\": 1,\n \"total_amount\": 1000,\n \"pay_amount\": 1000,\n \"line_count\": 1,\n \"tax_free_amount\": 123,\n \"tax_basic_amount\": 1000,\n \"tax_basic_net_amount\": 819.67,\n \"tax_minimum_amount\": 123,\n \"tax_minimum_net_amount\": 123\n },\n \"receiver\": {\n \"receiver_doc_type\": \"RUC\",\n \"receiver_document\": \"987654321\",\n \"legal_name\": \"Cliente Ejemplo S.R.L.\",\n \"fiscal_address\": \"Calle Principal 123\",\n \"city\": \"Montevideo\",\n \"department\": \"Montevideo\",\n \"country\": \"Uruguay\",\n \"country_code\": \"UY\"\n }\n },\n \"details\": [\n {\n \"line_number\": 1,\n \"iva_type\": \"BASIC_RATE\",\n \"item_name\": \"Producto Ejemplo\",\n \"count\": 1,\n \"unit_price\": 1000,\n \"item_amount\": 1000,\n \"item_description\": \"Descripción del producto\"\n }\n ],\n \"reference\": {\n \"cfe_id\": \"101-123456\"\n },\n \"extra\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Sandbox-Mode", "<x-sandbox-mode>")
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.zynvo.uy/v1/enterprises/{rut}/cfes")
.header("X-Sandbox-Mode", "<x-sandbox-mode>")
.header("X-API-Key", "<api-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"cfe_type\": \"ETICKET\",\n \"header\": {\n \"doc_id\": {\n \"emission_date\": \"2024-03-15\",\n \"payment_method\": \"1\"\n },\n \"totals\": {\n \"currency\": \"UYU\",\n \"exchange_rate\": 1,\n \"total_amount\": 1000,\n \"pay_amount\": 1000,\n \"line_count\": 1,\n \"tax_free_amount\": 123,\n \"tax_basic_amount\": 1000,\n \"tax_basic_net_amount\": 819.67,\n \"tax_minimum_amount\": 123,\n \"tax_minimum_net_amount\": 123\n },\n \"receiver\": {\n \"receiver_doc_type\": \"RUC\",\n \"receiver_document\": \"987654321\",\n \"legal_name\": \"Cliente Ejemplo S.R.L.\",\n \"fiscal_address\": \"Calle Principal 123\",\n \"city\": \"Montevideo\",\n \"department\": \"Montevideo\",\n \"country\": \"Uruguay\",\n \"country_code\": \"UY\"\n }\n },\n \"details\": [\n {\n \"line_number\": 1,\n \"iva_type\": \"BASIC_RATE\",\n \"item_name\": \"Producto Ejemplo\",\n \"count\": 1,\n \"unit_price\": 1000,\n \"item_amount\": 1000,\n \"item_description\": \"Descripción del producto\"\n }\n ],\n \"reference\": {\n \"cfe_id\": \"101-123456\"\n },\n \"extra\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zynvo.uy/v1/enterprises/{rut}/cfes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Sandbox-Mode"] = '<x-sandbox-mode>'
request["X-API-Key"] = '<api-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"cfe_type\": \"ETICKET\",\n \"header\": {\n \"doc_id\": {\n \"emission_date\": \"2024-03-15\",\n \"payment_method\": \"1\"\n },\n \"totals\": {\n \"currency\": \"UYU\",\n \"exchange_rate\": 1,\n \"total_amount\": 1000,\n \"pay_amount\": 1000,\n \"line_count\": 1,\n \"tax_free_amount\": 123,\n \"tax_basic_amount\": 1000,\n \"tax_basic_net_amount\": 819.67,\n \"tax_minimum_amount\": 123,\n \"tax_minimum_net_amount\": 123\n },\n \"receiver\": {\n \"receiver_doc_type\": \"RUC\",\n \"receiver_document\": \"987654321\",\n \"legal_name\": \"Cliente Ejemplo S.R.L.\",\n \"fiscal_address\": \"Calle Principal 123\",\n \"city\": \"Montevideo\",\n \"department\": \"Montevideo\",\n \"country\": \"Uruguay\",\n \"country_code\": \"UY\"\n }\n },\n \"details\": [\n {\n \"line_number\": 1,\n \"iva_type\": \"BASIC_RATE\",\n \"item_name\": \"Producto Ejemplo\",\n \"count\": 1,\n \"unit_price\": 1000,\n \"item_amount\": 1000,\n \"item_description\": \"Descripción del producto\"\n }\n ],\n \"reference\": {\n \"cfe_id\": \"101-123456\"\n },\n \"extra\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"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"
}
}{
"error": {
"code": "INVALID_INPUT",
"message": "Los datos proporcionados no son válidos"
}
}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 Path Parameters
RUT de la empresa emisora
Body
application/json
Tipo de CFE
Available options:
ETICKET, ETICKET_NC, ETICKET_ND, EFACTURA, EFACTURA_NC, EFACTURA_ND, EFACTURA_EXPORT, EFACTURA_EXPORT_NC, EFACTURA_EXPORT_ND Example:
"ETICKET"
Show child attributes
Show child attributes
Líneas de detalle del comprobante
Show child attributes
Show child attributes
Referencia a otro CFE (para notas de crédito/débito)
Show child attributes
Show child attributes
Información adicional en formato JSON string
Response
CFE creado
Show child attributes
Show child attributes
⌘I