Table of Contents Previous Next Index

TransactionSearch API

TransactionSearch API
 
With TransactionSearchRequest you must always set the StartDate field. Some other behavior:
l
Setting TransactionIDoverrides all other fields (even the required StartDate field).
l
TransactionSearchResponse returns up to 100 matches. Partial matches are displayed. For example, setting the TransactionSearchRequest FirstName to “Jess” returns results such as “Jessica” and “Jesse”.
The most important returned element is TransactionID, which you can pass to GetTransactionDetailsRequest in order to retrieve all available information about a specific transaction.
Diagram of TransactionSearch Types
The following diagram represents the composition of the TransactionSearchRequestType and PaymentTransactionSearchResultsType elements.
Figure 9.1
TransactionSearchRequest
Request to search transaction history.
Search by the receiver’s email address. If the merchant account has only one email, this is the primary email. Can also be a non-primary email.
Search by invoice identification key, as set by you for the original transaction. This field searches the records for items sold by the merchant, not the items purchased.
Search by credit card number, as set by you for the original transaction. This field searches the records for items sold by the merchant, not the items purchased.
Character length and limitations: Must be at least 11 and no more than 25 single-byte numeric characters maximum. Special punctuation, such as dashes or spaces, is ignored.
Note:
Some kinds of possible classes of transactions are not searchable with this field. You cannot search for bank transfer withdrawals, for example.
l
All: all transaction classifications
l
Sent: only payments sent
l
Received: only payments received
l
MoneyRequest: only money requests
l
FundsAdded: only funds added to balance
l
FundsWithdrawn: only funds withdrawn from balance
l
Referral: only transactions involving referrals
l
Fee: only transactions involving fees
l
Subscription: only transactions involving subscriptions
l
Dividend: only transactions involving dividends
l
CurrencyConversions: only transactions involving currency conversions
l
BalanceTransfer: only transactions involving balance transfers
l
Shipping: only transactions involving UPS shipping fees
l
BalanceAffecting: only transactions that affect the account balance
l
ECheck: only transactions involving eCheck
Note:
You must set the currencyID attribute to one of the three-character currency codes for any of the supported PayPal currencies.
l
Pending: The payment is pending. The specific reason the payment is pending is returned by the GetTransactionDetails API PendingReason field.
l
Processing: The payment is being processed.
l
Success: The payment has been completed and the funds have been added successfully to your account balance.
l
Denied: You denied the payment. This happens only if the payment was previously pending.
l
Reversed: A payment was reversed due to a chargeback or other type of reversal. The funds have been removed from your account balance and returned to the buyer.
TransactionSearchResponse
Response to TransactionSearchRequest.
For error codes and messages and their meanings, see Appendix A, “Error Codes and Messages for All PayPal APIs.”
The email address of either the payer or the payment recipient (the “payee”). If the payment amount is positive, this field is the recipient of the funds. If the payment is negative, this field is the paying customer.