Skip to main content
PATCH
Actualizar empresa

Authorizations

x-api
string
header
required

API key emitida por Ipsofactura, enviada en el header x-api.

Path Parameters

id
string<uuid>
required

Id de la empresa

Body

application/json

Campos editables de una empresa. Todos opcionales: lo que no se envía no cambia.

codigo_postal
string
Pattern: ^[0-9]{5}$
Example:

"06000"

color_primario
string

Color de acento del PDF en formato #RRGGBB. Sin él, el PDF usa el color por defecto. null restaura el color por defecto.

Pattern: ^#[0-9A-Fa-f]{6}$
Example:

"#0F766E"

curp
string
Example:

"HEGG560427MVZRSL05"

logo_url
string

URL pública HTTPS del logo que se imprime en el encabezado del PDF. PNG o JPEG de hasta 500 KB. Se descarga al generar el PDF y se guarda en caché unos minutos; si no responde o no es una imagen válida, el PDF sale sin logo. null borra el logo configurado.

Maximum string length: 2048
Example:

"https://cdn.ejemplo.com/logo.png"

nombre_empresa
string
Example:

"Escuela Kemper Urgate"

nombre_fiscal
string
Example:

"ESCUELA KEMPER URGATE"

regimen_fiscal
enum<string>

Clave del catálogo SAT c_RegimenFiscal

Available options:
601,
603,
605,
606,
607,
608,
609,
610,
611,
612,
614,
615,
616,
620,
621,
622,
623,
624,
625,
626,
628,
629,
630
Example:

626

rfc
string

No editable. Enviarlo responde 422 EMPRESA_RFC_IMMUTABLE.

Example:

"EKU9003173C9"

Response

Empresa actualizada

certificados
object[]

Sólo presente con include_certificados=true. Lista vacía si el emisor no tiene CSD activo.

codigo_postal
string
Example:

"06000"

color_primario
string

Color de acento del PDF (#RRGGBB). null si la empresa usa el color por defecto.

Example:

"#0F766E"

curp
string

CURP del emisor. Siempre null para personas morales.

Example:

null

es_activo
boolean
Example:

true

fecha_actualizacion
string
Example:

"2026-08-28T12:00:00Z"

fecha_creacion
string
Example:

"2026-08-28T12:00:00Z"

id
string<uuid>
Example:

"a1b2c3d4-1234-4abc-8def-1234567890ab"

logo_url
string

URL del logo configurado para el PDF. null si la empresa no tiene logo.

Example:

"https://cdn.ejemplo.com/logo.png"

nombre_empresa
string
Example:

"Escuela Kemper Urgate"

nombre_fiscal
string
Example:

"ESCUELA KEMPER URGATE"

regimen_fiscal
enum<string>
Available options:
601,
603,
605,
606,
607,
608,
609,
610,
611,
612,
614,
615,
616,
620,
621,
622,
623,
624,
625,
626,
628,
629,
630
Example:

601

rfc
string
Example:

"EKU9003173C9"

tipo_persona
enum<string>
Available options:
fisica,
moral
Example:

"moral"