Table of Contents Previous Next Index

MassPay API

MassPay API
 
The MassPay API is the programmatic counterpart to the Mass Payment feature available through the PayPal website. You can include up to 250 payments per MassPayRequest. You must have a PayPal balance in each currency in which you want to make a payment and have sufficient funds to cover the entire Mass Payment amount and fee. You cannot mix currencies in the same MassPayRequest; a separate request is required for each currency.
The posting of payment transactions to individual recipient accounts is not handled by the MassPay API but by a separate PayPal process.
Instant Payment Notification
The MassPay API triggers the sending of an Instant Payment Notification to the recipient of the funds. You must check the IPN to get the necessary information you need about the transaction.
Diagram of MassPay Types
The following diagram represents the composition of the MassPayRequestType, MassPayRequestItemType, and MassPayResponseType elements.
Figure 7.1
MassPayRequest
Process payments en masse to up to 250 different recipients.
The subject line of the email that PayPal sends when the transaction is completed. The subject line is the same for all recipients.
Indicates how you identify the recipients of payments in all MassPayItems: either by EmailAddress (ReceiverEmail in MassPayItem) or by UserID (ReceiverID in MassPayItem).
Note:
A single MassPayRequest can include up to 250 MassPayItems
Important:
You must specify either ReceiverEmail or ReceiverID, but you must not mix ReceiverEmail and ReceiverID in the group of MassPayItems. Use only one or the other, but not both, in a single request.
Important:
You must specify either ReceiverEmail or ReceiverID, but you must not mix ReceiverEmail and ReceiverID in the group of MassPayItems. Use only one or the other, but not both, in a single request.
Note:
You must set the currencyID attribute to one of the three-character currency codes for any of the supported PayPal currencies. See “PayPal-Supported Transactional Currencies”.
Important:
You cannot mix currencies in a single MassPayRequest. A single request must include items that are of the same currency.
MassPayResponse
Response to MassPayRequest.
The elements returned are the same as for AbstractResponseType. See “AbstractResponseType”.
For error codes and messages and their meanings, see Appendix A, “Error Codes and Messages for All PayPal APIs.”