Creating Opportunities (10.6) via API or stored procedure

Hi,

Has anyone developed a method for creating opportunities either through the API or through a stored procedure based on another action in iMIS? For example, I need an opportunity automatically created when someone registers for an event.

Thanks,

Troy