Create a new instance of Payout object
This is how our body should look like:
You can prevent duplicate batches from being processed. If you specify a sender_batch_id
that was used in the last 30 days, the batch will not be processed. For items, you can specify a sender_item_id
. If the value for the sender_item_id
is a duplicate of a payout item that was processed in the last 30 days, the item will not be processed.
Please note that if you are using single payout with sync mode, you can only pass one Item in the request
For Sample Purposes Only.
Create Single Synchronous Payout Sample
This sample code demonstrate how you can create a synchronous payout sample, as documented here at: https://developer.paypal.com/docs/integration/direct/create-single-payout/ API used: /v1/payments/payouts?sync_mode=true