google / paco

The Paco behavioral science mobile research platform
http://www.pacoapp.com/
Apache License 2.0
327 stars 93 forks source link

Server endpoint for querying incentive payout information #1129

Open BobEvans opened 9 years ago

BobEvans commented 9 years ago

takes experimentId, validates admin status of requestor. Returns list of per participant payout (participant, payment [(amt, currency)|giftcard?]

BobEvans commented 9 years ago

From previous issue:

Have a new server endpoint that allows querying, by experimentId for payout information.

This should return a list of participant ids to pay and the amount to pay each participant.

One thing to consider is that the payment query service should do OAuth on the part of an admin of the study. So, in the payment fulfillment tool that queries Paco, the admin of an experiment can OAuth that service to Paco on their behalf and then the service can call this endpoint to populate a payment fulfillment.