How to get the transaction history from paypal? - paypal

I dont know how to get transaction history in paypal.I have go through the rest api for the paypal.
And found following api to fetch transaction history.
https://api.paypal.com/v1/payments/sale/id
I dont know what could be sales id here.And do i just need to enter the url in browser.

Is there any particular reason you HAVE to use the REST API? I personally prefer the classic API's at this point because their REST API just doesn't have all the same features yet.
For your case, the classic API includes TransactionSearch and GetTransactionDetails which can help you pull history and details about specific transactions.

Related

I want to know about TransactionSearch API ( which is deprecated ) for 2017 on PayPal

I know before 2017, the PayPal provides the Api which I can get all the transaction history via Rest API .
that is TransactionSearch using NVP.
but PayPal says it has been deprecated.
so I want to know ,how can I get transaction history via PayPal API.
Looking forward your help.
Although PayPal deprecated the classic API, you can also use all of the classic APIs(containing TransactionSearch API), PayPal just will not renew or develop new feature. But all of current functions can be used.
And if you want to use transaction search function under REST API, please refer following URL.
https://developer.paypal.com/docs/integration/direct/payments/paypal-payments/?mark=list%20payment#search-payment-details
Please refer "List payments with transaction details" section.
API document: https://developer.paypal.com/docs/api/payments/#payment_list

How can i find a transaction in paypal which is not made via rest api?

I am not able to find payment or sale object in paypal with the txn_id returned in IPN message. I want to process refund via rest api call for such transactions.
In general, you can perform a refund via REST API call only if your transaction was made via REST. Anyway, it depend of the flow that the transaction followed...
If you want provide further details, I will be more than happy to provide more information about.
Thank you in advance.

Paypal payouts tracking

I use paypal REST api (sanbdbox). I need to make automatic payouts, track it, get the list of all payments (including created payout via REST api). I managed creating single batch payout and get status for it. But I can't get list of all payments (income and outcome) and match my payouts.
When you create a payout store the sender_batch_id you use, and when you get a response store the payout_batch_id / payout_item_id then update poll the status using
/v1/payments/payouts/payout_batch_id
or
/v1/payments/payouts-item/payout_item_id
Preferably instead use the webhooks API to get a notification when the status changes, then update the status accordingly.
Either of these approaches requires you to somehow keep track of your own payouts. I do not see a way to list previously submitted payouts in the REST API. There are of course many ways you could organize and track your requests.

Get payment history on Paypal API

I need to find a way of getting a Paypal account holders payment history using the Paypal api. If we have a user's consent (i.e. we've already used the Permissions API to redirect them to Paypal, and they've consented to give us permissions to get details of payments to their account), what's the next step?
I've seen a similar question here which talked about using GetTransactionDetails call, but that seems only to get details for a single transaction. Another answer mentioned the Payment.List method, but didn't give an example of how it's used.
Can anyone point me in the right direction?
I would recommend using the TransactionSearch API. This will let you get a list of transactions (up to 100 at a time). You can then use the GetTransactionDetails API to get more information on individual transactions.
https://developer.paypal.com/webapps/developer/docs/classic/api/merchant/TransactionSearch_API_Operation_NVP/

API to get payment history of a customer

I need to show the payment history and balance amount of a customer from paypal account.
It is possible to do by paypal API or we need to maintained the history. If any one knows let me know.
The transaction Search API appears to fit the bill (though you have probably found this by now)...
https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_soap_r_TransactionSearch
The user can either enter his own API credentials, or give you third-party permissions to call the GetBalance API call on his/her behalf: https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_nvp_r_GetBalance