Want to implement Multi level commision structure for our sales and the Referral Partners

We want to set up commission structures which can let us give commissions to our referral partners for not only selling the product but getting recurring commissions on the same sale and the commission rate will be different in both the cases.

also, how can we apply multiple commision structure for 1 subscription in this case, if this can be helpful for the implementation.

Please let us know if any one from the Team can guide us to set it up.