How to import userpoints?
You want to use userpoints_userpointsapi(), not the service wrapper.

The system is designed to only ever allow new transactions in order to change the total amount of points a user has. So yes, if you want to set it to a fixed value, you need to calculate the difference from the actual amount of points a user has and grant him the difference.