Create Issuer
Create a new Issuer.
Creates a new fiscal issuer associated with the active tenant. Requires tenant_admin role or higher.
All database operations use async/await for non-blocking I/O.
Args: payload: Issuer creation data db: Async database session tenant_id: Active tenant ID from authentication context
Returns: IssuerResponse: Created issuer data
Raises: HTTPException 422: If validation fails
Cookies
Body
Schema for creating a new Issuer.
RUC (Registro Único de Contribuyentes) - 13 digits
13^\d{13}$Legal business name (razón social)
1 - 300Main office address
1Taxpayer type (e.g., 'RISE', 'RIMPE', 'General')
1 - 50SRI environment: TEST or PRODUCTION
TEST, PRODUCTION Trade name (nombre comercial)
300Legal representative name
255Response
Successful Response
Schema for Issuer response.
SRI environment types.
TEST, PRODUCTION