SAP has been doing something similar for years now. They call it indirect use. If a system integrates with SAP and accesses data you have to pay licensing fees. Even if you host the SAP system yourself.