Piwik as tracker for affiliate program. Possible?

I have a small affilate program. I buy traffic from different partners.
I need:

  1. Total statistic for me where i can see quality of traffic of each parter.
  2. Statistic for each partner where he can see how many traffic conts. Each partner should have his personal login and password to statistic access.
    All partners send trafic for the same domains but with different partner_id.

How can i do it with Piwik? Is it possible?

Thank you!