Jump to content


Best Way To Mass Pay Via Api.

  • Please log in to reply
2 replies to this topic

#1 VVol80



  • Members
  • Pip
  • 4 posts

Posted 20 May 2015 - 01:10 AM

We have an application that automatically pays a given amount to select individuals as specified by a PayPal business owner's profile settings (the profile being within our application). As the PayPal business owner is directed to provide their API username / password to our app (or secret / ID if needed), there is no need for follow-up confirmation of payment; we want the payments to execute automatically at set intervals once configured. The PayPal business owner is directed to specify the email address associated with the PayPal account of each recipient. We have been reading the PayPal API documentation for days trying to determine the best way to approach this, and these are our questions:


  1. If we use the MassPay API, and one or more of the recipient PayPal email addresses are incorrect, will the entire MassPay API call fail? We would need to be notified on API call if it were to fail so that our application is able to handle this (and not assume a recipient has been paid). Also, are all failures for any reason instant on API call (so our app knows the mass pay attempt failed and why)? 


  2. Is there a way to verify individual recipient PayPal email addresses prior to avoid the aforementioned scenario? The only API method for recipient email address verification we found requires we provide a full physical address and other metadata to confirm the user; understandable, but impractical for our purposes. Is there any other way to do this? 


  3. Ideally, instead of using the Mass Pay API and sending to all recipients at once, we'd like to be able to execute an API pay call to each recipient individually so we can get confirmation that each payment went through and, if any failed, why. Is this possible? The only API calls we see for individual payments seem to involve some sort of URL hook and further confirmation required by sender. Our app runs automatically and this is not feasible; is it possible that a PayPal business owner can provide the proper API credentials to our app and specify the PayPal email addresses for each recipient, and payments can then be sent automatically as specified to the recipients from that point forward without further manual confirmation?  


  All help is greatly appreciated; thank you for your time. Please let us know if any further detail is needed. 

#2 paypaldev



  • Administrators
  • 29 posts

Posted 20 May 2015 - 01:51 PM

The API call will not fail when some recipient addresses are not valid. All MassPayments will be sent out, even if the email address does not have a PayPal account. PayPal will notify that email of a pending payment. As long as the email is formatted correctly, then the payment will work. Youc an use teh PayPal IPN to get the status of the MassPay call. If teh payment is not claimed within 30 days, then the payment will be returned to yrou account.

Paymetrics.com - Sales Alanytics and Metrics for PayPal.

#3 VVol80



  • Members
  • Pip
  • 4 posts

Posted 21 May 2015 - 01:48 AM

Thank you paypaldev, very helpful. We're working with the IPN simulator now to test this behavior. Quick follow-up question: Will the IPN agent issue a "this specific address did not claim his payment within 30 days" message so our application knows that the amount refunded to the user's account involves that specific recipient? Also, if PayPal receives an "invalid email" bounce message to once of the recipients issued in a mass payment, will it provide us with an IPN message for that as well?


Thank you very much for your assistance.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users