Skip to main content
PATCH
/
issuers
/
{issuer_id}
Update Issuer
curl --request PATCH \
  --url http://localhost:8000/issuers/{issuer_id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "direccion_matriz": "Nueva Dirección 456",
  "is_active": false,
  "legal_representative": "New Representative",
  "nombre_comercial": "Nuevo Nombre Comercial",
  "sri_environment": "PRODUCTION"
}
'
{
  "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

Path Parameters

issuer_id
string<uuid>
required

Cookies

factio_access_token
string | null

Body

application/json

Schema for updating an Issuer (partial update).

nombre_comercial
string | null

Trade name (nombre comercial)

Maximum string length: 300

Legal representative name

Maximum string length: 255
direccion_matriz
string | null

Main office address

Minimum string length: 1
tipo_contribuyente
string | null

Taxpayer type

Required string length: 1 - 50
is_active
boolean | null

Whether the issuer is active

sri_environment
enum<string> | null

SRI environment: TEST or PRODUCTION

Available options:
TEST,
PRODUCTION

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