Update Issuer
Update or deactivate an Issuer.
Allows updating non-fiscal fields and deactivating the issuer. Validates that the issuer belongs to the active tenant. Requires tenant_admin role or higher.
All database operations use async/await for non-blocking I/O.
Args: issuer_id: UUID of the issuer to update payload: Partial update data db: Async database session tenant_id: Active tenant ID from authentication context
Returns: IssuerResponse: Updated issuer data
Raises: HTTPException 404: If issuer not found or doesn’t belong to tenant HTTPException 422: If validation fails
Path Parameters
Cookies
Body
Schema for updating an Issuer (partial update).
Trade name (nombre comercial)
300Legal representative name
255Main office address
1Taxpayer type
1 - 50Whether the issuer is active
SRI environment: TEST or PRODUCTION
TEST, PRODUCTION Response
Successful Response
Schema for Issuer response.
SRI environment types.
TEST, PRODUCTION