Difference between API and visual Piwik

Hello,
I am using the piwik to track goals with a revenue. The problem is that when I look in the UI Piwik I see some data and when I export the same data using the API and sum up all of it I get a difference between reached goals and revenue.
Can someone help me witht this?
Thanks!