Skip to main content
POST
Create a fiscal profile

Authorizations

Authorization
string
header
required

API key: Authorization: Bearer sk_test_... or sk_live_....

Headers

Invoice-Version
string

Pin a dated API release (Stripe-style). Omit to use the current version. An unknown value returns 400 request.invalid_version. Echoed back on every response.

Example:

"2026-07-10"

Invoice-Account
string

Connect: act on behalf of one of your connected accounts (its acct_…/org_… id). Omit to act as your own organization. Not honored on /v1/api_keys.

Example:

"org_2P9connectedacct"

Idempotency-Key
string

Safely retry any POST. The first response is stored for 24h and replayed byte-for-byte for identical retries (the replay adds an idempotent-replayed: true header). Reusing the key with a different body is 409 idempotency.key_reuse; an in-flight duplicate is 409 idempotency.key_processing. This makes retrying a 502/429 safe — no duplicate stamp.

Example:

"a1b2c3d4-e5f6-4789-8abc-1234567890ab"

Body

Issuer legal name (razón social).

tax_regime
string
required

c_RegimenFiscal code, e.g. "601".

zip
string
required

Issuer place-of-issue ZIP (LugarExpedicion), 5 digits.

csd_cer
file
required

The raw CSD certificate (.cer) file — no base64 needed.

csd_key
file
required

The raw CSD private-key (.key) file — no base64 needed.

csd_password
string
required

CSD private-key password ("contraseña de la clave privada").

fiel_cer
file

The raw FIEL certificate (.cer) file — no base64 needed.

fiel_key
file

The raw FIEL private-key (.key) file — no base64 needed.

fiel_password
string

FIEL private-key password (only if uploading a FIEL).

manifest_email
string

Email for the signed carta manifiesto. Provide it with a FIEL to sign the manifiesto automatically at registration (profile comes back active).

brand_color
string

PDF accent color as #RRGGBB, e.g. "#0B5FFF".

The raw issuer logo image (PNG or JPEG) — embedded in the PDF; no data URL needed.

metadata
string

Integrator-owned metadata as a JSON string, e.g. {"order_id":"123"}.

Response

Default Response

object
enum<string>
required

Always "fiscal_profile".

Available options:
fiscal_profile
id
string
required

Fiscal-profile id, e.g. "fp_2P9K3sample".

rfc
string
required

Issuer RFC, derived from the CSD certificate.

Issuer legal name (razón social).

tax_regime
string
required

c_RegimenFiscal code of the issuer, e.g. "601".

zip
string
required

Issuer fiscal-domicile ZIP (LugarExpedicion).

csd
object
required

Public metadata of the stored CSD (never the private key).

status
enum<string>
required

Derived readiness state. "requires_action": the carta manifiesto is not yet signed, so this profile CANNOT stamp CFDIs. "active": the manifiesto is signed and the profile is authorized to stamp for its RFC. Derived from manifest_status at serialization time.

Available options:
requires_action,
active
has_fiel
boolean
required

True when a FIEL (e.firma) is stored (used to sign the carta manifiesto and for descarga masiva).

manifest_status
enum<string>
required

Carta-manifiesto signing state.

Available options:
pending_signature,
signed
manifest_signed_at
string | null
required

When the carta manifiesto was signed (ISO-8601 UTC), or null if unsigned.

next_actions
object[]
required

Actions to make this profile active (identical content to pending_actions). Empty when active.

pending_actions
object[]
required

Outstanding actions before this profile can stamp CFDIs (identical content to next_actions). Empty when active.

metadata
object
required

Integrator-owned key-value map echoed back.

brand_color
string | null
required

PDF accent color (#RRGGBB), or null if unset.

Whether a PDF logo is stored (the raw data URL is not echoed to keep responses small).

livemode
boolean
required

True if this profile was created with a live-mode key.

created_at
string
required

Creation timestamp, ISO-8601 UTC.

updated_at
string
required

Last-update timestamp, ISO-8601 UTC.