Skip to main content
You can use the PayPal Payouts SDK for Java or Python to work with the Payouts REST API. The SDK helps keep your integration up to date with API changes and is intended for server-side use only. With the SDK, you can:
  • Handle OAuth 2.0 authentication automatically.
  • Call the Payouts API with less code.
  • Manage API responses and handle errors.
If you want a more customized integration or use a language not supported by the SDK, use the Payouts API directly. For more information, see Use Payouts API.

Install SDK

Install the Payouts SDK in your preferred language.

Set up your environment and credentials

  1. Create a new file in your preferred language in the directory where you installed the SDK.
  2. Copy the following code sample for your language to initialize the SDK and configure your environment.
  3. Update the code with your PayPal client ID and secret.
  4. Set the environment to SandboxEnvironment for testing or LiveEnvironment for production.
For more information on finding your REST API credentials for both sandbox and live environments, see Sandbox accounts.

Create payout batch

Use the following code samples to create a payout batch.

Track status

Use the payout batch ID to retrieve the payout batch details.

SDK reference