Clientes
Administra las cuentas de tus clientes: consulta, alta, actualización, suspensión, reactivación y reenvío de accesos.
Suscripción ilimitada v1.1
En las respuestas de cliente, subscription.isUnlimited indica si la suscripción activa es de folios ilimitados. subscription.folios es el valor numérico del paquete, o null si no hay paquete.
Host: https://api-partners.factura.com/api
En los ejemplos sustituye {HOST} y { HOST } por ese valor. Cada petición protegida lleva Authorization: Bearer <access_token> y, en sandbox, el header F-Sandbox-Mode: true.
Consultar clientes
Este endpoint permite obtener un listado de todos los clientes registrados bajo tu cuenta de Partner.
Construcción de la URL
Importante
El método para consultar tus clientes es GET
Host: https://api-partners.factura.com/api
Endpoint: v1/clients
Ejemplo: https://api-partners.factura.com/api/v1/clients
Utilice los siguientes parámetros opcionales en la URL para filtrar los resultados por nombre del cliente, o para aplicar paginación u ordenamiento en la respuesta:
| Parámetro | Tipo | Requerido | Detalles |
|---|---|---|---|
| name | string | Opcional | Indica el nombre del cliente que se quiere consultar, puede estar completo o no. Ejemplo: /api/v1/clients?name=Escuela |
| sort | string | Opcional | Define el orden de los resultados. Utiliza el prefijo + para orden ascendente y - para descendente. Valores permitidos: +name, -name, +created_at, -created_at.Ejemplo: /api/v1/clients?sort=+name |
| per_page | Integer | Opcional | Indica el límite de resultados para mostrar, por default retorna todos los planes del catalogo. Ejemplo: /api/v1/clients?per_page=3 |
| page | Integer | Opcional | Indica número de página a consultar, por default posiciona en la página 1. Ejemplo: /api/v1/clients?page=2 |
Ejemplo de petición
GET /v1/clients HTTP/1.1
Host: {HOST}
Accept: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
F-Sandbox-Mode: true<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => '{ HOST }/v1/clients',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'Accept: application/json',
'Authorization: Bearer YOUR_ACCESS_TOKEN',
'F-Sandbox-Mode: true'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;var request = require('request');
var options = {
'method': 'GET',
'url': '{ HOST }/v1/clients',
'headers': {
'Accept': 'application/json',
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'F-Sandbox-Mode': 'true'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});import requests
url = "{ HOST }/v1/clients"
headers = {
'Accept': 'application/json',
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'F-Sandbox-Mode': 'true'
}
response = requests.request("GET", url, headers=headers)
print(response.text)require "uri"
require "net/http"
url = URI("{ HOST }/v1/clients")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Accept"] = "application/json"
request["Authorization"] = "Bearer YOUR_ACCESS_TOKEN"
request["F-Sandbox-Mode"] = "true"
response = http.request(request)
puts response.read_bodyRespuesta
{
"response": "success",
"data": {
"clients": [
{
"uuid": "a210621c826a46499ef1000d64aeb402",
"name": " ",
"email": "correo@ejemplo.com",
"status": "active",
"taxInformation": {
"legalName": "INDISTRIA ILUMINADORA ELITE",
"taxId": "IIA040805DZ0",
"taxRegime": null,
"useKey": null,
"zipCode": "62661",
"country": "MEX",
"state": "",
"city": "",
"neighborhood": "",
"address": "",
"additionalEmail": null
},
"subscription": null,
"createdAt": "2026-06-19T23:41:32.000000Z",
"updatedAt": "2026-06-19T23:41:32.000000Z"
},
{
"uuid": "a210621b15284f9db98e939008e775db",
"name": " ",
"email": "marcp+el3@factura.com",
"status": "suspended",
"taxInformation": {
"legalName": "CECILIA ELITE",
"taxId": "MISC491214B85",
"taxRegime": null,
"useKey": null,
"zipCode": "01010",
"country": "MEX",
"state": "Distrito Federal",
"city": "Álvaro Obregón",
"neighborhood": "",
"address": "",
"additionalEmail": null
},
"subscription": null,
"createdAt": "2026-06-19T23:41:31.000000Z",
"updatedAt": "2026-06-19T23:41:31.000000Z"
}
],
"pagination": {
"currentPage": 1,
"lastPage": 1,
"perPage": 15,
"total": 2
}
}
}{
"status": "error",
"message": "Unauthenticated.",
"code": "SERVER_ERROR"
}Mostrar cliente
Este endpoint permite obtener la información detallada de un solo cliente específico de tu catálogo utilizando su identificador único (UUID).
Podemos consultar un cliente haciendo uso de los siguientes parámetros de ruta:
Construcción de la URL
Importante
El método para mostrar un cliente es GET
Host: https://api-partners.factura.com/api
Endpoint: v1/clients/UUID del cliente
Ejemplo: https://api-partners.factura.com/api/v1/clients/a23640b3d6a843fdb2c37df143931f5d
Ejemplo de petición
GET /v1/clients/{uuid} HTTP/1.1
Host: {HOST}
Accept: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
F-Sandbox-Mode: true<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => '{ HOST }/v1/clients/a1390ee8e88e4b089e7bca82b1be5a0c',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'Accept: application/json',
'Authorization: Bearer YOUR_ACCESS_TOKEN',
'F-Sandbox-Mode: true'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;var request = require('request');
var options = {
'method': 'GET',
'url': '{ HOST }/v1/clients/a1390ee8e88e4b089e7bca82b1be5a0c',
'headers': {
'Accept': 'application/json',
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'F-Sandbox-Mode': 'true'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});import requests
url = "{ HOST }/v1/clients/a1390ee8e88e4b089e7bca82b1be5a0c"
headers = {
'Accept': 'application/json',
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'F-Sandbox-Mode': 'true'
}
response = requests.request("GET", url, headers=headers)
print(response.text)require "uri"
require "net/http"
url = URI("{ HOST }/v1/clients/a1390ee8e88e4b089e7bca82b1be5a0c")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Accept"] = "application/json"
request["Authorization"] = "Bearer YOUR_ACCESS_TOKEN"
request["F-Sandbox-Mode"] = "true"
response = http.request(request)
puts response.read_bodyRespuesta
{
"response": "success",
"data": {
"uuid": "a23640b3d6a843fdb2c37df143931f5d",
"name": "Juan Lopez",
"email": "ejemplo@ejemplo.com",
"apiKey": "JDJ5J...",
"secretKey": "JDJ5...",
"token": "ZXlKc...",
"status": "suspended",
"taxInformation": {
"legalName": "INDUSTRIAS XA",
"taxId": "XIA190128J61",
"taxRegime": null,
"useKey": null,
"zipCode": "76343",
"country": "MEX",
"state": null,
"city": null,
"neighborhood": null,
"address": null,
"additionalEmail": null
},
"subscription": null,
"createdAt": "2026-07-08T19:29:34.000000Z",
"updatedAt": "2026-07-08T19:29:34.000000Z"
}
}{
"status": "error",
"message": "El recurso solicitado no fue encontrado.",
"code": "NOT_FOUND"
}Crear cliente
A continuación se explica la función para partners con la cual podrás crear cuentas para tus clientes y asignarles planes para que comiencen a facturar
Tip
Es importante tener configurados los planes en tu interfaz los cuales asignaras a los clientes que generes por API
Podemos crear un nuevo cliente haciendo uso de los siguientes parámetros:
| Parámetro | Tipo | Requerido | Detalles |
|---|---|---|---|
| client | Objeto | Requerido | Nodo contenedor con la información general del cliente que se desea crear. |
| client.name | String | Requerido | Sirve para indicar el nombre del cliente que se registrará en el sistema. |
| client.email | String | Requerido | Correo electrónico principal del cliente. Este correo será utilizado para el acceso y recepción de notificaciones del sistema. |
| tax_information | Objeto | Requerido | Nodo que contiene la información fiscal del cliente para efectos de facturación. |
| tax_information.tax_id | String | Requerido | RFC del cliente que será utilizado para la emisión de CFDI. |
| tax_information.legal_name | String | Requerido | Razón social o nombre fiscal del cliente registrado ante el SAT. |
| tax_information.postal_code | String | Requerido | Código postal correspondiente al domicilio fiscal del cliente. |
| tax_information.invoice_use_key | String | Requerido | Clave de uso de CFDI que se asignará por defecto al cliente para la emisión de facturas. Ejemplo: "G01" |
| tax_information.tax_regime | String | Requerido | Clave del régimen fiscal correspondiente al cliente conforme al catálogo del SAT. |
| tax_information.country | String | Opcional | País correspondiente al domicilio fiscal del cliente. |
| tax_information.state | String | Opcional | Estado o entidad federativa correspondiente al domicilio fiscal del cliente. |
| tax_information.city | String | Opcional | Ciudad o municipio correspondiente al domicilio fiscal del cliente. |
| tax_information.neighborhood | String | Opcional | Colonia correspondiente al domicilio fiscal del cliente. |
| tax_information.address | String | Opcional | Dirección completa del domicilio fiscal del cliente. |
| tax_information.additional_email | String | Opcional | Correo electrónico adicional al que se podrán enviar documentos fiscales o notificaciones relacionadas con la facturación. |
| product | Objeto | Requerido | Nodo que contiene la información del producto o plan que será asignado al cliente. |
| product.uuid | String | Requerido | Es el UUID del plan que se asignará al cliente. |
| product.vigency_uuid | String | Requerido | Es el UUID de la vigencia asociada al producto seleccionado. |
Construcción de la URL
Importante
El método para crear un cliente es POST
Host: https://api-partners.factura.com/api
Endpoint: v1/clients
Ejemplo: https://api-partners.factura.com/api/v1/clients
Ejemplo para dar de alta un nuevo cliente
POST /v1/clients HTTP/1.1
Host: {HOST}
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
F-Sandbox-Mode: true
{
"client": {
"name": "MARTIN LOPEZ",
"email": "ejemplo40@ejemplo.com"
},
"tax_information": {
"tax_id": "FUNK671228PH1",
"legal_name": "MARTIN LOPEZ LOPEZ",
"postal_code": "01234",
"invoice_use_key": "G01",
"tax_regime": "601"
},
"product": {
"uuid": "a2106219d0724860a1521780eea0827a",
"vigency_uuid": "a210621a4715406086913d91ae27c134"
}
}<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => '{ HOST }/v1/clients',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"client": {
"name": "MARTIN LOPEZ",
"email": "ejemplo40@ejemplo.com"
},
"tax_information": {
"tax_id": "FUNK671228PH1",
"legal_name": "MARTIN LOPEZ LOPEZ",
"postal_code": "01234",
"invoice_use_key": "G01",
"tax_regime": "601"
},
"product": {
"uuid": "a2106219d0724860a1521780eea0827a",
"vigency_uuid": "a210621a4715406086913d91ae27c134"
}
}',
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json',
'Authorization: ••••••',
'F-Sandbox-Mode: true'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;var request = require('request');
var options = {
'method': 'POST',
'url': '{ HOST }/v1/clients',
'headers': {
'Content-Type': 'application/json',
'Authorization': '••••••',
'F-Sandbox-Mode': 'true'
},
body: JSON.stringify({
"client": {
"name": "MARTIN LOPEZ",
"email": "ejemplo40@ejemplo.com"
},
"tax_information": {
"tax_id": "FUNK671228PH1",
"legal_name": "MARTIN LOPEZ LOPEZ",
"postal_code": "01234",
"invoice_use_key": "G01",
"tax_regime": "601"
},
"product": {
"uuid": "a2106219d0724860a1521780eea0827a",
"vigency_uuid": "a210621a4715406086913d91ae27c134"
}
})
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});import requests
import json
url = "{ HOST }/v1/clients"
payload = json.dumps({
"client": {
"name": "MARTIN LOPEZ",
"email": "ejemplo40@ejemplo.com"
},
"tax_information": {
"tax_id": "FUNK671228PH1",
"legal_name": "MARTIN LOPEZ LOPEZ",
"postal_code": "01234",
"invoice_use_key": "G01",
"tax_regime": "601"
},
"product": {
"uuid": "a2106219d0724860a1521780eea0827a",
"vigency_uuid": "a210621a4715406086913d91ae27c134"
}
})
headers = {
'Content-Type': 'application/json',
'Authorization': '••••••',
'F-Sandbox-Mode': 'true'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)require "uri"
require "json"
require "net/http"
url = URI("{ HOST }/v1/clients")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = "application/json"
request["F-Sandbox-Mode"] = "true"
request["Authorization"] = "••••••"
request.body = JSON.dump({
"client": {
"name": "MARTIN LOPEZ",
"email": "ejemplo40@ejemplo.com"
},
"tax_information": {
"tax_id": "FUNK671228PH1",
"legal_name": "MARTIN LOPEZ LOPEZ",
"postal_code": "01234",
"invoice_use_key": "G01",
"tax_regime": "601"
},
"product": {
"uuid": "a2106219d0724860a1521780eea0827a",
"vigency_uuid": "a210621a4715406086913d91ae27c134"
}
})
response = https.request(request)
puts response.read_bodyRespuesta
{
"response": "success",
"data": {
"uuid": "a21544903d574f0c889798f8c13965cc",
"name": "MARTIN LOPEZ",
"email": "ejemplo40@ejemplo.com",
"status": null,
"taxInformation": {
"legalName": "MARTIN LOPEZ LOPEZ",
"taxId": "FUNK671228PH1",
"taxRegime": "601",
"useKey": "G01",
"zipCode": "01234",
"country": null,
"state": null,
"city": null,
"neighborhood": null,
"address": null,
"additionalEmail": null
},
"subscription": {
"uuid": "a2154491e9e04adcabf6a051e2dbdaca",
"name": "PLAN ELITE",
"startDate": "2026-06-22T00:00:00.000000Z",
"endDate": "2026-07-22T00:00:00.000000Z",
"folios": 100,
"isUnlimited": false,
"foliosUsed": 0,
"status": "active",
"services": {
"api": true,
"smtp": true,
"customEmail": false,
"extraCompanies": 0,
"extraUsers": 0
}
},
"createdAt": "2026-06-22T09:58:03.000000Z",
"updatedAt": "2026-06-22T09:58:04.000000Z"
}
}{
"status": "error",
"message": "Error de validación de datos.",
"errors": {
"product.uuid": [
"The selected product.uuid is invalid."
]
},
"code": "VALIDATION_FAILED"
}Suspender cliente
A continuación se explica la función para suspender a un cliente. Durante la suspensión podrás indicar el mensaje que recibirá el cliente y definir si los folios disponibles deben conservarse o regresar a tu panel de partner.
Estos son los parámetros para parámetros un cliente:
| Parámetro | Tipo | Requerido | Detalles |
|---|---|---|---|
| uuids | Array | Requerido | UUID de cliente que sera suspendido. |
| uuids[] | String | Requerido | UUID del cliente que será suspendido. |
| message | String | Requerido | Mensaje que se enviara por correo del motivo de la suspensión de la cuenta al cliente. |
| keep_folios | Booleano | Requerido | Indica si los folios disponibles del cliente deberán conservarse después de realizar la suspensión. Valores aceptados: • true → Conserva los folios disponibles. • false → Elimina los folios disponibles al suspender la cuenta. |
Construcción de la URL
Importante
El método para suspender un cliente es POST
Host: https://api-partners.factura.com/api
Endpoint: v1/clients/suspend
Ejemplo: https://api-partners.factura.com/api/v1/clients/suspend
Ejemplo para suspender cliente
POST /v1/clients/suspend HTTP/1.1
Host: {HOST}
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
F-Sandbox-Mode: true
{
"uuids": [
"a20840069eb541f79a70fd7522f27f1d"
],
"message": "Este es una suspensión de prueba por API",
"keep_folios": true
}<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => '{ HOST }/v1/clients/suspend',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"uuids": [
"a20840069eb541f79a70fd7522f27f1d"
],
"message": "Este es una suspensión de prueba por API",
"keep_folios": true
}',
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json',
'Authorization: ••••••',
'F-Sandbox-Mode: true'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;var request = require('request');
var options = {
'method': 'POST',
'url': '{ HOST }/v1/clients/suspend',
'headers': {
'Content-Type': 'application/json',
'Authorization': '••••••',
'F-Sandbox-Mode': 'true'
},
body: JSON.stringify({
"uuids": [
"a20840069eb541f79a70fd7522f27f1d"
],
"message": "Este es una suspensión de prueba por API",
"keep_folios": true
})
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});import requests
import json
url = "{ HOST }/v1/clients/suspend"
payload = json.dumps({
"uuids": [
"a20840069eb541f79a70fd7522f27f1d"
],
"message": "Este es una suspensión de prueba por API",
"keep_folios": True
})
headers = {
'Content-Type': 'application/json',
'Authorization': '••••••',
'F-Sandbox-Mode': 'true'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)require "uri"
require "json"
require "net/http"
url = URI("{ HOST }/v1/clients/suspend")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = "application/json"
request["F-Sandbox-Mode"] = "true"
request["Authorization"] = "••••••"
request.body = JSON.dump({
"uuids": [
"a20840069eb541f79a70fd7522f27f1d"
],
"message": "Este es una suspensión de prueba por API",
"keep_folios": true
})
response = https.request(request)
puts response.read_bodyRespuesta
{
"response": "success",
"data": {
"clients": [
{
"uuid": "a21544903d574f0c889798f8c13965cc",
"name": "CLIENTE MARTIN LOPEZ",
"email": "ejemplo40@ejemplo.com",
"status": "suspended",
"taxInformation": {
"legalName": "MARTIN LOPEZ LOPEZ",
"taxId": "FUNK671228PH1",
"taxRegime": "601",
"useKey": "G01",
"zipCode": "01234",
"country": null,
"state": null,
"city": null,
"neighborhood": null,
"address": null,
"additionalEmail": null
},
"subscription": null,
"createdAt": "2026-06-22T09:58:03.000000Z",
"updatedAt": "2026-06-22T10:28:28.000000Z"
}
]
}
}{
"status": "error",
"message": "El recurso solicitado no fue encontrado.",
"code": "NOT_FOUND"
}Reactivar cliente
A continuación se explica la función para reactivar uno o múltiples clientes previamente suspendidos para que puedan volver a utilizar su cuenta y continuar operando normalmente.
Estos son los parámetros para reactivar clientes:
| Parámetro | Tipo | Requerido | Detalles |
|---|---|---|---|
| uuids | Array | Requerido | UUID de uno o múltiples clientes que serán reactivados. |
| uuids[] | String | Requerido | UUID del cliente que será reactivado. |
Construcción de la URL
Importante
El método para reactivar un cliente es POST
Host: https://api-partners.factura.com/api
Endpoint: v1/clients/reactivate
Ejemplo: https://api-partners.factura.com/api/v1/clients/reactivate
Ejemplo para suspender cliente
POST /v1/clients/reactivate HTTP/1.1
Host: {HOST}
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
F-Sandbox-Mode: true
{
"uuids": [
"a1391c1fc8914e618413e476b52b4615"
]
}<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => '{ HOST }/v1/clients/reactivate',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"uuids": [
"a1391c1fc8914e618413e476b52b4615"
]
}',
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json',
'Authorization: ••••••',
'F-Sandbox-Mode: true'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;var request = require('request');
var options = {
'method': 'POST',
'url': '{ HOST }/v1/clients/reactivate',
'headers': {
'Content-Type': 'application/json',
'Authorization': '••••••',
'F-Sandbox-Mode': 'true'
},
body: JSON.stringify({
"uuids": [
"a1391c1fc8914e618413e476b52b4615"
]
})
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});import requests
import json
url = "{ HOST }/v1/clients/reactivate"
payload = json.dumps({
"uuids": [
"a1391c1fc8914e618413e476b52b4615"
]
})
headers = {
'Content-Type': 'application/json',
'Authorization': '••••••',
'F-Sandbox-Mode': 'true'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)require "uri"
require "json"
require "net/http"
url = URI("{ HOST }/v1/clients/reactivate")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = "application/json"
request["F-Sandbox-Mode"] = "true"
request["Authorization"] = "••••••"
request.body = JSON.dump({
"uuids": [
"a1391c1fc8914e618413e476b52b4615"
]
})
response = https.request(request)
puts response.read_bodyRespuesta
{
"response": "success",
"data": {
"clients": [
{
"uuid": "a21544903d574f0c889798f8c13965cc",
"name": "CLIENTE MARTIN LOPEZ",
"email": "ejemplo40@ejemplo.com",
"status": "active",
"taxInformation": {
"legalName": "MARTIN LOPEZ LOPEZ",
"taxId": "FUNK671228PH1",
"taxRegime": "601",
"useKey": "G01",
"zipCode": "01234",
"country": null,
"state": null,
"city": null,
"neighborhood": null,
"address": null,
"additionalEmail": null
},
"subscription": {
"uuid": "a2154491e9e04adcabf6a051e2dbdaca",
"name": "PLAN ELITE",
"startDate": "2026-06-22T00:00:00.000000Z",
"endDate": "2026-07-22T00:00:00.000000Z",
"folios": 100,
"isUnlimited": false,
"foliosUsed": 0,
"status": "active",
"services": {
"api": true,
"smtp": true,
"customEmail": false,
"extraCompanies": 0,
"extraUsers": 0
}
},
"createdAt": "2026-06-22T09:58:03.000000Z",
"updatedAt": "2026-06-22T10:40:42.000000Z"
}
]
}
}{
"status": "error",
"message": "El recurso solicitado no fue encontrado.",
"code": "NOT_FOUND"
}Reenviar accesos al cliente
A continuación se explica la función para reenviar por correo electrónico los accesos de una cuenta previamente creada. Esta función permite volver a enviar al cliente la información de acceso utilizando el UUID de su cuenta.
Construcción de la URL
Importante
El método para enviar sus accesos al cliente es POST
Host: https://api-partners.factura.com/api
Endpoint: v1/clients/UUID del cliente/resend-credentials
Ejemplo: https://api-partners.factura.com/api/v1/clients/a1f9c3d9fee5434ebf6104e1de572b59/resend-credentials
Ejemplo de petición
POST /v1/clients/{uuid}/resend-credentials HTTP/1.1
Host: {HOST}
Accept: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
F-Sandbox-Mode: true<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => '{ HOST }/v1/clients/a1f9c3d9fee5434ebf6104e1de572b59/resend-credentials',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => array(
'Accept: application/json',
'Authorization: Bearer YOUR_ACCESS_TOKEN',
'F-Sandbox-Mode: true'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;var request = require('request');
var options = {
'method': 'POST',
'url': '{ HOST }/v1/clients/a1f9c3d9fee5434ebf6104e1de572b59/resend-credentials',
'headers': {
'Accept': 'application/json',
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'F-Sandbox-Mode': 'true'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});import requests
url = "{ HOST }/v1/clients/a1f9c3d9fee5434ebf6104e1de572b59/resend-credentials"
headers = {
'Accept': 'application/json',
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'F-Sandbox-Mode': 'true'
}
response = requests.request("POST", url, headers=headers)
print(response.text)require "uri"
require "net/http"
url = URI("{ HOST }/v1/clients/a1f9c3d9fee5434ebf6104e1de572b59/resend-credentials")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Accept"] = "application/json"
request["Authorization"] = "Bearer YOUR_ACCESS_TOKEN"
request["F-Sandbox-Mode"] = "true"
response = http.request(request)
puts response.read_bodyRespuesta
{
"response": "success",
"data": {
"clients": [
{
"uuid": "a21544903d574f0c889798f8c13965cc",
"name": "CLIENTE MARTIN LOPEZ",
"email": "ejemplo40@ejemplo.com",
"status": "active",
"taxInformation": {
"legalName": "MARTIN LOPEZ LOPEZ",
"taxId": "FUNK671228PH1",
"taxRegime": "601",
"useKey": "G01",
"zipCode": "01234",
"country": null,
"state": null,
"city": null,
"neighborhood": null,
"address": null,
"additionalEmail": null
},
"subscription": {
"uuid": "a2154491e9e04adcabf6a051e2dbdaca",
"name": "PLAN ELITE",
"startDate": "2026-06-22T00:00:00.000000Z",
"endDate": "2026-07-22T00:00:00.000000Z",
"folios": 100,
"isUnlimited": false,
"foliosUsed": 0,
"status": "active",
"services": {
"api": true,
"smtp": true,
"customEmail": false,
"extraCompanies": 0,
"extraUsers": 0
}
},
"createdAt": "2026-06-22T09:58:03.000000Z",
"updatedAt": "2026-06-22T10:40:42.000000Z"
}
]
}
}{
"status": "error",
"message": "El recurso solicitado no fue encontrado.",
"code": "NOT_FOUND"
}Actualizar cliente
A continuación se explica la función para actualizar la información de una cuenta de cliente previamente creada. Con esta operación podrás modificar los datos generales y fiscales del cliente; sin embargo, el producto o plan asignado a la cuenta no podrá ser modificado desde este endpoint.
Estos son los parámetros para actualizar un cliente:
| Parámetro | Tipo | Requerido | Detalles |
|---|---|---|---|
| client | Objeto | Opcional | Nodo contenedor con la información general del cliente que se desea actualizar. |
| client.name | String | Opcional | Sirve para indicar el nuevo nombre que tendrá registrado el cliente. |
| client.email | String | Opcional | Correo electrónico principal del cliente. Este correo será utilizado para el acceso y recepción de notificaciones del sistema. |
| tax_information | Objeto | Opcional | Nodo que contiene la información fiscal del cliente que será actualizada. |
| tax_information.tax_id | String | Opcional | RFC del cliente que será utilizado para la emisión de CFDI. |
| tax_information.legal_name | String | Opcional | Razón social o nombre fiscal del cliente registrado ante el SAT. |
| tax_information.postal_code | String | Opcional | Código postal correspondiente al domicilio fiscal del cliente. |
| tax_information.invoice_use_key | String | Opcional | Clave de uso de CFDI que se asignará al cliente para la emisión de facturas. Ejemplo: "G01" |
| tax_information.tax_regime | String | Opcional | Clave del régimen fiscal correspondiente al cliente conforme al catálogo del SAT. |
| tax_information.country | String | Opcional | País correspondiente al domicilio fiscal del cliente. |
| tax_information.state | String | Opcional | Estado o entidad federativa correspondiente al domicilio fiscal del cliente. |
| tax_information.city | String | Opcional | Ciudad o municipio correspondiente al domicilio fiscal del cliente. |
| tax_information.neighborhood | String | Opcional | Colonia correspondiente al domicilio fiscal del cliente. |
| tax_information.address | String | Opcional | Dirección completa correspondiente al domicilio fiscal del cliente. |
| tax_information.additional_email | String | Opcional | Correo electrónico adicional al que se podrán enviar documentos fiscales o notificaciones relacionadas con la facturación. |
Construcción de la URL
Importante
El método para actualizar clientes es PATCH
Host: https://api-partners.factura.com/api
Endpoint: v1/clients/UUID del cliente
Ejemplo: https://api-partners.factura.com/api/v1/clients/a21544903d574f0c889798f8c13965cc
Ejemplo para actualizar cliente
PATCH /v1/clients/{uuid} HTTP/1.1
Host: {HOST}
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
F-Sandbox-Mode: true
{
"client": {
"name": "MARTIN LOPEZ EDIT",
"email": "correo@ejemplo.com"
},
"tax_information": {
"tax_id": "FUNK671228PH8",
"legal_name": "MARTIN EDITADO",
"postal_code": "01235",
"invoice_use_key": "G01",
"tax_regime": "626",
"country": "México",
"state": "Ciudad de México",
"city": "Ciudad de México",
"neighborhood": "Polanco",
"address": "Av. Reforma 123, Col. Polanco",
"additional_email": "facturacion@example.com"
}
}<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => '{ HOST }/v1/clients/a21544903d574f0c889798f8c13965cc',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'PATCH',
CURLOPT_POSTFIELDS =>'{
"client": {
"name": "MARTIN LOPEZ EDIT",
"email": "correo@ejemplo.com"
},
"tax_information": {
"tax_id": "FUNK671228PH8",
"legal_name": "MARTIN EDITADO",
"postal_code": "01235",
"invoice_use_key": "G01",
"tax_regime": "626",
"country": "México",
"state": "Ciudad de México",
"city": "Ciudad de México",
"neighborhood": "Polanco",
"address": "Av. Reforma 123, Col. Polanco",
"additional_email": "facturacion@example.com"
}
}',
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json',
'Authorization: ••••••',
'F-Sandbox-Mode: true'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;var request = require('request');
var options = {
'method': 'PATCH',
'url': '{ HOST }/v1/clients/a21544903d574f0c889798f8c13965cc',
'headers': {
'Content-Type': 'application/json',
'Authorization': '••••••',
'F-Sandbox-Mode': 'true'
},
body: JSON.stringify({
"client": {
"name": "MARTIN LOPEZ EDIT",
"email": "correo@ejemplo.com"
},
"tax_information": {
"tax_id": "FUNK671228PH8",
"legal_name": "MARTIN EDITADO",
"postal_code": "01235",
"invoice_use_key": "G01",
"tax_regime": "626",
"country": "México",
"state": "Ciudad de México",
"city": "Ciudad de México",
"neighborhood": "Polanco",
"address": "Av. Reforma 123, Col. Polanco",
"additional_email": "facturacion@example.com"
}
})
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});import requests
import json
url = "{ HOST }/v1/clients/a21544903d574f0c889798f8c13965cc"
payload = json.dumps({
"client": {
"name": "MARTIN LOPEZ EDIT",
"email": "correo@ejemplo.com"
},
"tax_information": {
"tax_id": "FUNK671228PH8",
"legal_name": "MARTIN EDITADO",
"postal_code": "01235",
"invoice_use_key": "G01",
"tax_regime": "626",
"country": "México",
"state": "Ciudad de México",
"city": "Ciudad de México",
"neighborhood": "Polanco",
"address": "Av. Reforma 123, Col. Polanco",
"additional_email": "facturacion@example.com"
}
})
headers = {
'Content-Type': 'application/json',
'Authorization': '••••••',
'F-Sandbox-Mode': 'true'
}
response = requests.request("PATCH", url, headers=headers, data=payload)
print(response.text)require "uri"
require "json"
require "net/http"
url = URI("{ HOST }/v1/clients/a21544903d574f0c889798f8c13965cc")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = "application/json"
request["F-Sandbox-Mode"] = "true"
request["Authorization"] = "••••••"
request.body = JSON.dump({
"client": {
"name": "MARTIN LOPEZ EDIT",
"email": "correo@ejemplo.com"
},
"tax_information": {
"tax_id": "FUNK671228PH8",
"legal_name": "MARTIN EDITADO",
"postal_code": "01235",
"invoice_use_key": "G01",
"tax_regime": "626",
"country": "México",
"state": "Ciudad de México",
"city": "Ciudad de México",
"neighborhood": "Polanco",
"address": "Av. Reforma 123, Col. Polanco",
"additional_email": "facturacion@example.com"
}
})
response = https.request(request)
puts response.read_bodyRespuesta
{
"response": "success",
"data": {
"uuid": "a21544903d574f0c889798f8c13965cc",
"name": "MARTIN LOPEZ EDIT",
"email": "correo@ejemplo.com",
"status": "active",
"taxInformation": {
"legalName": "MARTIN EDITADO",
"taxId": "FUNK671228PH8",
"taxRegime": "626",
"useKey": "G01",
"zipCode": "01235",
"country": "México",
"state": "Ciudad de México",
"city": "Ciudad de México",
"neighborhood": "Polanco",
"address": "Av. Reforma 123, Col. Polanco",
"additionalEmail": "facturacion@example.com"
},
"subscription": {
"uuid": "a2154491e9e04adcabf6a051e2dbdaca",
"name": "PLAN ELITE",
"startDate": "2026-06-22T00:00:00.000000Z",
"endDate": "2026-07-22T00:00:00.000000Z",
"folios": 100,
"isUnlimited": false,
"foliosUsed": 0,
"status": "active",
"services": {
"api": true,
"smtp": true,
"customEmail": false,
"extraCompanies": 0,
"extraUsers": 0
}
},
"createdAt": "2026-06-22T09:58:03.000000Z",
"updatedAt": "2026-06-22T11:01:48.000000Z"
}
}{
"status": "error",
"message": "El recurso solicitado no fue encontrado.",
"code": "NOT_FOUND"
}