Obtener borrador por identificador público
curl --request GET \
--url https://rest.yafacture.com/borradores/publico/{identificadorPublico}const options = {method: 'GET'};
fetch('https://rest.yafacture.com/borradores/publico/{identificadorPublico}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://rest.yafacture.com/borradores/publico/{identificadorPublico}"
response = requests.get(url)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://rest.yafacture.com/borradores/publico/{identificadorPublico}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.get("https://rest.yafacture.com/borradores/publico/{identificadorPublico}")
.asString();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://rest.yafacture.com/borradores/publico/{identificadorPublico}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"_id": "<string>",
"emisorId": "<string>",
"cuentaId": "<string>",
"receptorId": "<string>",
"sucursalId": "<string>",
"tipoComprobante": "I",
"usoCfdi": "<string>",
"metodoPago": "<string>",
"formaPago": "<string>",
"regimenFiscal": "",
"moneda": "<string>",
"isCartaPorte": false,
"isAutofactura": false,
"isVenta": false,
"isBloqueada": "",
"isVisible": true,
"isGlobal": false,
"global": {},
"relaciones": [],
"origen": "app",
"resumen": {},
"serieCotizacion": "",
"folioCotizacion": 1,
"mensajeCotizacion": "<string>",
"mensajeCfdi": "<string>",
"mensajeAutofactura": "<string>",
"fechaCreacion": "2026-07-14T05:45:17.526Z",
"fechaActualizacion": "2026-07-14T05:45:17.526Z",
"identificadorPublico": "",
"status": true
}{
"message": "Forbidden resource",
"error": "Forbidden",
"statusCode": 403
}Borradores
Obtener borrador por identificador público
GET
/
borradores
/
publico
/
{identificadorPublico}
Obtener borrador por identificador público
curl --request GET \
--url https://rest.yafacture.com/borradores/publico/{identificadorPublico}const options = {method: 'GET'};
fetch('https://rest.yafacture.com/borradores/publico/{identificadorPublico}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://rest.yafacture.com/borradores/publico/{identificadorPublico}"
response = requests.get(url)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://rest.yafacture.com/borradores/publico/{identificadorPublico}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.get("https://rest.yafacture.com/borradores/publico/{identificadorPublico}")
.asString();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://rest.yafacture.com/borradores/publico/{identificadorPublico}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"_id": "<string>",
"emisorId": "<string>",
"cuentaId": "<string>",
"receptorId": "<string>",
"sucursalId": "<string>",
"tipoComprobante": "I",
"usoCfdi": "<string>",
"metodoPago": "<string>",
"formaPago": "<string>",
"regimenFiscal": "",
"moneda": "<string>",
"isCartaPorte": false,
"isAutofactura": false,
"isVenta": false,
"isBloqueada": "",
"isVisible": true,
"isGlobal": false,
"global": {},
"relaciones": [],
"origen": "app",
"resumen": {},
"serieCotizacion": "",
"folioCotizacion": 1,
"mensajeCotizacion": "<string>",
"mensajeCfdi": "<string>",
"mensajeAutofactura": "<string>",
"fechaCreacion": "2026-07-14T05:45:17.526Z",
"fechaActualizacion": "2026-07-14T05:45:17.526Z",
"identificadorPublico": "",
"status": true
}{
"message": "Forbidden resource",
"error": "Forbidden",
"statusCode": 403
}Response
Descripción del schema de Borradores

