Listar CFDIs
curl --request GET \
--url https://api.ipsofactura.com/cfdi \
--header 'x-api: <api-key>'import requests
url = "https://api.ipsofactura.com/cfdi"
headers = {"x-api": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api': '<api-key>'}};
fetch('https://api.ipsofactura.com/cfdi', 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.ipsofactura.com/cfdi",
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: <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.ipsofactura.com/cfdi"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api", "<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.ipsofactura.com/cfdi")
.header("x-api", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ipsofactura.com/cfdi")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"facturas": [
{
"uuid": "<string>",
"serie": "<string>",
"folio": "<string>",
"fecha": "<string>",
"total": 123,
"moneda": "<string>",
"estatus": "<string>",
"subtotal": 123,
"tipo_comprobante": "<string>",
"emisor_rfc": "<string>",
"emisor_nombre": "<string>",
"receptor_rfc": "<string>",
"receptor_nombre": "<string>",
"tipo_cambio": 123,
"fecha_timbrado": "<string>",
"metodo_pago": "<string>",
"forma_pago": "<string>",
"uso_cfdi": "<string>",
"xml_url": "<string>"
}
],
"pagination": {
"page": 123,
"per_page": 123,
"total_items": 123,
"total_pages": 123,
"has_next": true,
"has_prev": true,
"next_page": 123,
"prev_page": 123
}
}CFDI
Listar CFDIs
Devuelve los CFDIs de la cuenta, paginados. Filtra opcionalmente por tipo de comprobante.
GET
/
cfdi
Listar CFDIs
curl --request GET \
--url https://api.ipsofactura.com/cfdi \
--header 'x-api: <api-key>'import requests
url = "https://api.ipsofactura.com/cfdi"
headers = {"x-api": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api': '<api-key>'}};
fetch('https://api.ipsofactura.com/cfdi', 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.ipsofactura.com/cfdi",
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: <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.ipsofactura.com/cfdi"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api", "<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.ipsofactura.com/cfdi")
.header("x-api", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ipsofactura.com/cfdi")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"facturas": [
{
"uuid": "<string>",
"serie": "<string>",
"folio": "<string>",
"fecha": "<string>",
"total": 123,
"moneda": "<string>",
"estatus": "<string>",
"subtotal": 123,
"tipo_comprobante": "<string>",
"emisor_rfc": "<string>",
"emisor_nombre": "<string>",
"receptor_rfc": "<string>",
"receptor_nombre": "<string>",
"tipo_cambio": 123,
"fecha_timbrado": "<string>",
"metodo_pago": "<string>",
"forma_pago": "<string>",
"uso_cfdi": "<string>",
"xml_url": "<string>"
}
],
"pagination": {
"page": 123,
"per_page": 123,
"total_items": 123,
"total_pages": 123,
"has_next": true,
"has_prev": true,
"next_page": 123,
"prev_page": 123
}
}⌘I