python - Paypal Single Payout - Sender Insufficient funds error -
i'm trying paypal payout in live environment real bank account. code works in development environment.
the problem paypal returning following error:
insufficient_funds: sender has insufficient funds
i'm using rest api
calling
https://api.paypal.com/v1/payments/payouts?sync_mode=true [post]
i'm using python sdk , sending post
message values:
{ "sender_batch_header": { "email_subject": "paypal payout" }, "items": [{ "recipient_type": "email", "amount": {"value": "1", "currency": "usd"}, "receiver": "test@gmail.com", "note": "123 payout", "sender_item_id": 123456 }] })
i've contacted paypal phone , ask error, , said need manually put funds in paypal account. first question is: can api? (i can't find out how)
they said, problems because i'am doing mass payment
(with 1 payout item)... , told me can avoid problem using "regular payment
" process. second question resource of api should use? or information "regular payment
" not able found on webpage.
context: have money in bank account, , want paypal automatically extract there every single payout.
the reason getting particular error message because there not enough funds in paypal account cover mass payment. mass pay api work, must have same amount of funds in paypal balance sending recipients.
here information on mass pay paypal developer site:
merchants use mass pay api send money instantly 250 recipients @ once. send payments multiple recipients, merchants need recipient's paypal account email address, payment amount, , currency code. merchants can manually upload file listing payments or create them programmatically using mass pay api.
mass pay information paypal developer
mass payments getting started guide
for instance, if sending $2,000.00 several recipients via mass pay api, need have $2,000.00 in paypal account send recipients.
you cannot add money paypal account via api call.
here how add funds paypal account manually: adding funds paypal account
you can setup balance manager keep amount of money in paypal balance. allow paypal automatically take funds bank account maintain balance in paypal account: setting balance manager
Comments
Post a Comment