Skip to main content
POST
/
issuers
Create Issuer
curl --request POST \
  --url http://localhost:8000/issuers \
  --header 'Content-Type: application/json' \
  --data '
{
  "direccion_matriz": "Av. Principal 123 y Secundaria, Quito, Ecuador",
  "legal_representative": "Jane Doe",
  "nombre_comercial": "Ejemplo Corp",
  "razon_social": "EMPRESA EJEMPLO S.A.",
  "ruc": "1234567890001",
  "sri_environment": "TEST",
  "tipo_contribuyente": "General"
}
'
{
  "created_at": "2024-01-01T00:00:00Z",
  "direccion_matriz": "Av. Principal 123 y Secundaria, Quito, Ecuador",
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "is_active": true,
  "legal_representative": "Jane Doe",
  "nombre_comercial": "Ejemplo Corp",
  "razon_social": "EMPRESA EJEMPLO S.A.",
  "ruc": "1234567890001",
  "sri_environment": "TEST",
  "tenant_id": "660e8400-e29b-41d4-a716-446655440000",
  "tipo_contribuyente": "General",
  "updated_at": "2024-01-01T00:00:00Z"
}

Headers

authorization
string | null
x-api-key
string | null
x-tenant-id
string | null

Cookies

factio_access_token
string | null

Body

application/json

Schema for creating a new Issuer.

ruc
string
required

RUC (Registro Único de Contribuyentes) - 13 digits

Required string length: 13
Pattern: ^\d{13}$
razon_social
string
required

Legal business name (razón social)

Required string length: 1 - 300
direccion_matriz
string
required

Main office address

Minimum string length: 1
tipo_contribuyente
string
required

Taxpayer type (e.g., 'RISE', 'RIMPE', 'General')

Required string length: 1 - 50
sri_environment
enum<string>
required

SRI environment: TEST or PRODUCTION

Available options:
TEST,
PRODUCTION
nombre_comercial
string | null

Trade name (nombre comercial)

Maximum string length: 300

Legal representative name

Maximum string length: 255

Response

Successful Response

Schema for Issuer response.

id
string<uuid>
required
tenant_id
string<uuid>
required
ruc
string
required
razon_social
string
required
nombre_comercial
string | null
required
direccion_matriz
string
required
tipo_contribuyente
string
required
sri_environment
enum<string>
required

SRI environment types.

Available options:
TEST,
PRODUCTION
is_active
boolean
required
created_at
string<date-time>
required
updated_at
string<date-time>
required