Catálogos SAT
Catalogo de Tipos de Cfdi.
GET
/
Catalogs
/
CfdiTypes
Catalogo de Tipos de Cfdi.
curl --request GET \
--url https://apisandbox.facturama.mx/Catalogs/CfdiTypes \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://apisandbox.facturama.mx/Catalogs/CfdiTypes"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://apisandbox.facturama.mx/Catalogs/CfdiTypes', 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://apisandbox.facturama.mx/Catalogs/CfdiTypes",
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: Basic <encoded-value>"
],
]);
$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://apisandbox.facturama.mx/Catalogs/CfdiTypes"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://apisandbox.facturama.mx/Catalogs/CfdiTypes")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://apisandbox.facturama.mx/Catalogs/CfdiTypes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body[
{
"NameId": 1,
"Name": "Factura",
"Value": "I"
},
{
"NameId": 2,
"Name": "Nota de Crédito",
"Value": "E"
},
{
"NameId": 14,
"Name": "Complemento de pago",
"Value": "P"
},
{
"NameId": 17,
"Name": "Factura con IEPS",
"Value": "I"
},
{
"NameId": 21,
"Name": "Factura INE",
"Value": "I"
},
{
"NameId": 22,
"Name": "Honorarios INE",
"Value": "I"
},
{
"NameId": 23,
"Name": "Recibo de Arrendamiento INE",
"Value": "I"
},
{
"NameId": 24,
"Name": "Factura Detallista",
"Value": "I"
},
{
"NameId": 25,
"Name": "Factura para Notarios Publicos",
"Value": "I"
},
{
"NameId": 26,
"Name": "Factura Comercio Exterior",
"Value": "I"
},
{
"NameId": 27,
"Name": "Nota de Crédito Comercio Exterior",
"Value": "E"
},
{
"NameId": 28,
"Name": "Carta Porte Comercio Exterior",
"Value": "T"
},
{
"NameId": 29,
"Name": "Factura para terceros",
"Value": "I"
},
{
"NameId": 30,
"Name": "Factura Leyendas Fiscales",
"Value": "I"
},
{
"NameId": 34,
"Name": "Factura Global",
"Value": "I"
},
{
"NameId": 36,
"Name": "Complemento Carta Porte 3.1",
"Value": "T"
}
]⌘I
Catalogo de Tipos de Cfdi.
curl --request GET \
--url https://apisandbox.facturama.mx/Catalogs/CfdiTypes \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://apisandbox.facturama.mx/Catalogs/CfdiTypes"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://apisandbox.facturama.mx/Catalogs/CfdiTypes', 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://apisandbox.facturama.mx/Catalogs/CfdiTypes",
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: Basic <encoded-value>"
],
]);
$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://apisandbox.facturama.mx/Catalogs/CfdiTypes"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://apisandbox.facturama.mx/Catalogs/CfdiTypes")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://apisandbox.facturama.mx/Catalogs/CfdiTypes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body[
{
"NameId": 1,
"Name": "Factura",
"Value": "I"
},
{
"NameId": 2,
"Name": "Nota de Crédito",
"Value": "E"
},
{
"NameId": 14,
"Name": "Complemento de pago",
"Value": "P"
},
{
"NameId": 17,
"Name": "Factura con IEPS",
"Value": "I"
},
{
"NameId": 21,
"Name": "Factura INE",
"Value": "I"
},
{
"NameId": 22,
"Name": "Honorarios INE",
"Value": "I"
},
{
"NameId": 23,
"Name": "Recibo de Arrendamiento INE",
"Value": "I"
},
{
"NameId": 24,
"Name": "Factura Detallista",
"Value": "I"
},
{
"NameId": 25,
"Name": "Factura para Notarios Publicos",
"Value": "I"
},
{
"NameId": 26,
"Name": "Factura Comercio Exterior",
"Value": "I"
},
{
"NameId": 27,
"Name": "Nota de Crédito Comercio Exterior",
"Value": "E"
},
{
"NameId": 28,
"Name": "Carta Porte Comercio Exterior",
"Value": "T"
},
{
"NameId": 29,
"Name": "Factura para terceros",
"Value": "I"
},
{
"NameId": 30,
"Name": "Factura Leyendas Fiscales",
"Value": "I"
},
{
"NameId": 34,
"Name": "Factura Global",
"Value": "I"
},
{
"NameId": 36,
"Name": "Complemento Carta Porte 3.1",
"Value": "T"
}
]