issue in Payout using node SDK

RONAKA
New Community Member

Hello,

     I am trying to complete payout from merchant Account to user Account using Node SDK(@paypal/payouts-sdk). I created Requested for payout =>{

let requestBody = {
    sender_batch_header: {
      recipient_type: "EMAIL",
      email_message: "SDK payouts test txn",
      note: "Enjoy your Payout!!",
      sender_batch_id: sender_batch_id
      email_subject: "This is a test transaction from SDK",
    },
    items: [
      {
        note: "Your 1$ Payout! RONAK TEST",
        amount: {
          currency: "USD",
          value: "1.00",
        },
        receiver: "email",
        sender_item_id: "2",
      },
    ],
  };
  let request = new paypal.payouts.PayoutsPostRequest();
  request.requestBody(requestBody);
 
}.
 
using this I got every time payout is in processing
 
after this i tried to ={
  request = new paypal.payouts.PayoutsGetRequest(batchId);
  request.page(1);
  request.pageSize(10);
  request.totalRequired(true);
  let response = await client.execute(request);
  console.log(`Response: ${JSON.stringify(response)}`);}
 
this code for send Money to the user account.
usinf this code i got error like ==>{"name":"INVALID_RESOURCE_ID","message":"The requested resource ID was not found","debug_id":"503839dc1ce12","information_link":"https://developer.paypal.com/docs/api/payments.payouts-batch/#errors","details":[],"links":[]}
 
can you provide support for how to Send Money to the user from my Merchant Account? we need to send Money One by One  or Bulk also
 

 
 

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.