SAT Catalogs
Catalog of names that can be set in the PDF (default 1 = invoice)
GET
/
Catalogs
/
NameIds
Catalog of names that can be set in the PDF (default 1 = invoice)
curl --request GET \
--url https://apisandbox.facturama.mx/Catalogs/NameIds \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://apisandbox.facturama.mx/Catalogs/NameIds"
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/NameIds', 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/NameIds",
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/NameIds"
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/NameIds")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://apisandbox.facturama.mx/Catalogs/NameIds")
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[
{
"Type": "I",
"Name": "Factura",
"Value": "1"
},
{
"Type": "E",
"Name": "Nota de Crédito",
"Value": "2"
},
{
"Type": "I",
"Name": "Honorarios",
"Value": "3"
},
{
"Type": "T",
"Name": "Carta Porte",
"Value": "4"
},
{
"Type": "I",
"Name": "Factura para Restaurantes",
"Value": "5"
},
{
"Type": "I",
"Name": "Factura para Gasolineras",
"Value": "6"
},
{
"Type": "I",
"Name": "Factura con Retención IVA",
"Value": "7"
},
{
"Type": "I",
"Name": "Factura para Farmacias",
"Value": "8"
},
{
"Type": "I",
"Name": "Recibo Deducible",
"Value": "9"
},
{
"Type": "I",
"Name": "Recibo de Arrendamiento",
"Value": "10"
},
{
"Type": "I",
"Name": "Nota de Venta",
"Value": "11"
},
{
"Type": "P",
"Name": "Complemento de pago",
"Value": "14"
},
{
"Type": "I",
"Name": "Factura con IEPS",
"Value": "17"
},
{
"Type": "I",
"Name": "Factura INE",
"Value": "21"
},
{
"Type": "I",
"Name": "Factura Comercio Exterior",
"Value": "26"
},
{
"Type": "T",
"Name": "Complemento Carta Porte 3.1",
"Value": "36"
}
]⌘I
Catalog of names that can be set in the PDF (default 1 = invoice)
curl --request GET \
--url https://apisandbox.facturama.mx/Catalogs/NameIds \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://apisandbox.facturama.mx/Catalogs/NameIds"
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/NameIds', 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/NameIds",
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/NameIds"
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/NameIds")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://apisandbox.facturama.mx/Catalogs/NameIds")
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[
{
"Type": "I",
"Name": "Factura",
"Value": "1"
},
{
"Type": "E",
"Name": "Nota de Crédito",
"Value": "2"
},
{
"Type": "I",
"Name": "Honorarios",
"Value": "3"
},
{
"Type": "T",
"Name": "Carta Porte",
"Value": "4"
},
{
"Type": "I",
"Name": "Factura para Restaurantes",
"Value": "5"
},
{
"Type": "I",
"Name": "Factura para Gasolineras",
"Value": "6"
},
{
"Type": "I",
"Name": "Factura con Retención IVA",
"Value": "7"
},
{
"Type": "I",
"Name": "Factura para Farmacias",
"Value": "8"
},
{
"Type": "I",
"Name": "Recibo Deducible",
"Value": "9"
},
{
"Type": "I",
"Name": "Recibo de Arrendamiento",
"Value": "10"
},
{
"Type": "I",
"Name": "Nota de Venta",
"Value": "11"
},
{
"Type": "P",
"Name": "Complemento de pago",
"Value": "14"
},
{
"Type": "I",
"Name": "Factura con IEPS",
"Value": "17"
},
{
"Type": "I",
"Name": "Factura INE",
"Value": "21"
},
{
"Type": "I",
"Name": "Factura Comercio Exterior",
"Value": "26"
},
{
"Type": "T",
"Name": "Complemento Carta Porte 3.1",
"Value": "36"
}
]