Get started with MassPay
Note: The MassPay API is Deprecated as of September 1, 2017. For new integrations, see the Payouts Overview.
Get up and running with this service:
The MassPay API operation lets you send multiple payouts with a single call. With MassPay, you can easily take care of commissions, rebates, and rewards and even make all the general payouts that come with running a business.
MassPay lets you use a single call to initiate up to 250 payouts. Creating a set of payouts with MassPay is straightforward: you identify each individual recipient and the amount of each payout.
Key MassPay concepts
To make a set of payouts with MassPay, supply the e-mail addresses of your payees, the amount of each payout, and the currency of the transactions. PayPal processes your MassPay call by taking the amount of each payout from your PayPal account and placing the funds into the PayPal account of each respective recipient. PayPal then sends an e-mail to each recipient, notifying them that they've received a payment.
When setting up a MassPay call, you can specify a customized subject line for the e-mail that PayPal distributes. You can also add a note for PayPal to include in the body of e-mail. Included in the e-mail is a link that provides an easy way for payees to log into their PayPal accounts. Once logged in, payees can manage the payments they've received.
If a payee does not have an existing PayPal account, the PayPal e-mail describes how they can create a PayPal account so they can claim their payment. PayPal holds MassPay transactions for 30 days. If a payment remains unclaimed after 30 days, the amount is returned to the payer's PayPal account.
The response from a MassPay call signals only success or failure for the call, it does not indicate the status of each individual transaction. To help account for your payouts, sign up for the daily Transaction Details report, which collects the status of your individual transactions. You can also manually track your transactions by logging into your PayPal account to view the details and status of each of your MassPay payouts.
Note: You must white-list your premier or business PayPal account for the
MassPayAPI before you can make
MassPaycalls in the live environment. However, you can test
MassPayin the sandbox without prior authorization. After testing your application, contact your account manager or contact PayPal to enable MassPay for your application in the live environment.
Make a MassPay call
To make a
Specify the endpoint for the environment you're addressing, the operation you're calling, and the version of the API you want to use. The version number should reflect the latest version number unless you have reason to use an earlier version.
The following endpoint uses the sandbox NVP environment for testing purposes:
https://api-3t.sandbox.paypal.com/nvp METHOD=MassPay VERSION=90
Supply the API credentials for the account that is making the call:
USER AccountUsername PWD AccountPassword SIGNATURE AccountSignature
Specify how payees are identified with the
PhoneNumber, or the payee's PayPal
Note: The sandbox environment does not support
Specify a three-character currency code to identify the currency in which to make the payouts:
Note: You must use the same currency for all payouts being made in a single
MassPaycall. Make separate
MassPaycalls if you use different currencies to make payouts.
Specify the details for each payout being made by the call. Payout details include a parameter that identifies to whom the payout is being made and the payout amount.
L_EMAIL0email@example.com L_AMT0=15.95 L_EMAIL1firstname.lastname@example.org L_AMT1=21.50
The previous snippet shows the parameters for two different payouts. Use a zero-based set of parameter names for payouts.
The following example uses a cURL command to run a MassPay call. The first payout starts with 0. For example,
L_AMT0. To see this call in action, substitute your own sandbox credentials in the command.
curl https://api-3t.sandbox.paypal.com/nvp \ -s \ --insecure \ -d USER AccountUsername # Caller user name \ -d PWD AccountPassword # Caller password \ -d SIGNATURE AccountSignature # Caller signature \ -d METHOD=MassPay \ -d VERSION=90 \ -d RECEIVERTYPE=EmailAddress \ -d CURRENCYCODE=USD \ -d L_EMAIL0email@example.com # The first payout starts with "0" \ -d L_AMT0=35.95 \ -d L_EMAIL1firstname.lastname@example.org \ -d L_AMT1=21.00 \ -d L_EMAIL2email@example.com \ -d L_AMT2=45.50
To learn more about