Retrieve a SAT CFDI
curl --request GET \
--url https://api.syntage.com/datasources/mx/sat/cfdis/{uuid} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.syntage.com/datasources/mx/sat/cfdis/{uuid}"
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/datasources/mx/sat/cfdis/{uuid}', 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/datasources/mx/sat/cfdis/{uuid}",
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/datasources/mx/sat/cfdis/{uuid}"
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/datasources/mx/sat/cfdis/{uuid}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.syntage.com/datasources/mx/sat/cfdis/{uuid}")
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{
"uuid": "def404af-5eef-4112-aa99-d1ec8493b89a",
"data": {},
"processedXmlAt": "2020-01-01T12:15:00.000Z",
"processedPdfAt": "2020-01-01T12:15:00.000Z"
}{
"message": "The CFDI is being processed and will be available soon. Please try again later."
}{
"message": "<string>"
}{
"message": "<string>"
}Invoices
Retrieve a SAT CFDI
Retrieve parsed SAT CFDI data by invoice UUID.
When X-Async-Process is set to 1, the endpoint can return 202 Accepted while CFDI parsing continues asynchronously.
GET
/
datasources
/
mx
/
sat
/
cfdis
/
{uuid}
Retrieve a SAT CFDI
curl --request GET \
--url https://api.syntage.com/datasources/mx/sat/cfdis/{uuid} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.syntage.com/datasources/mx/sat/cfdis/{uuid}"
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/datasources/mx/sat/cfdis/{uuid}', 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/datasources/mx/sat/cfdis/{uuid}",
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/datasources/mx/sat/cfdis/{uuid}"
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/datasources/mx/sat/cfdis/{uuid}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.syntage.com/datasources/mx/sat/cfdis/{uuid}")
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{
"uuid": "def404af-5eef-4112-aa99-d1ec8493b89a",
"data": {},
"processedXmlAt": "2020-01-01T12:15:00.000Z",
"processedPdfAt": "2020-01-01T12:15:00.000Z"
}{
"message": "The CFDI is being processed and will be available soon. Please try again later."
}{
"message": "<string>"
}{
"message": "<string>"
}Authorizations
Generate your API key in the Production or Sandbox dashboard. The key is shown in full only when it is generated or rotated, so copy it then.
Headers
Response
Parsed SAT CFDI response
Was this page helpful?