PayPal\Api\PayoutSenderBatchHeader::setSenderBatchId PHP Method

setSenderBatchId() public method

A sender-specified ID number. Tracks the batch payout in an accounting system.
Note: PayPal prevents duplicate batches from being processed. If you specify a sender_batch_id that was used in the last 30 days, the API rejects the request and returns an error message that indicates the duplicate sender_batch_id and includes a HATEOAS link to the original batch payout with the same sender_batch_id. If you receive a HTTP 5nn status code, you can safely retry the request with the same sender_batch_id. In any case, the API completes a payment only once for a specific sender_batch_id that is used within 30 days.
public setSenderBatchId ( string $sender_batch_id )
$sender_batch_id string
    public function setSenderBatchId($sender_batch_id)
    {
        $this->sender_batch_id = $sender_batch_id;
        return $this;
    }