Table of Contents Previous Next Index

GetTransactionDetails API

GetTransactionDetails API
 
The GetTransactionDetails API retrieves information about a single transaction.
Diagram of GetTransactionDetails Types
The following diagram represents the composition of the GetTransactionDetailsRequestType and GetTransactionDetailsResponseType elements.
Figure 6.1
 
GetTransactionDetailsRequest
Get details about a transaction.
Note:
The details for some kinds of transactions cannot be retrieved with GetTransactionDetails. You cannot obtain details of bank transfer withdrawals, for example.
GetTransactionDetailsResponse
Response to GetTransactionDetailsRequest.
Note:
All fields defined in the formal structure of GetTransactionDetailsResponse are not necessarily returned. Data are returned in a response only if PayPal has recorded data that corresponds to the field.
For error codes and messages and their meanings, see Appendix A, “Error Codes and Messages for All PayPal APIs.”
Included Element
Data Type and Possible Values
Payment
Transaction
Details
ebl:ReceiverInfoType
Email address or account ID of the payment recipient (the seller). Equivalent to Receiver if payment is sent to primary account.
If you are the recipient of the payment and the payment is sent to your non-primary email address, the value of Receiver is still your primary email address.
Unique account ID of the payment recipient (the seller). This value is the same as the value of the recipient's referral ID.
ebl:PayPalUser
StatusCodeType
(included in PayerInfo)
Payment sender’s country of residence using standard two-character ISO 3166 country codes.
(included in PayerInfo)
ebl:Address
Status
CodeType
StateOr
Province
Payer’s “ship to” country as standard two-character ISO 3166 country code.
Parent
TransactionID
Original transaction to which this transaction is related. This field is populated for the following transaction types:
l
Capture of an order. The value of ParentTransactionID is the original OrderID.
l
Authorization of an order. The value of ParentTransactionID is the original OrderID.
l
Void of an order. The value of ParentTransactionID is the original OrderID.
cart: Transaction created by customer via the PayPal Shopping Cart feature.
send-money: Transaction created by customer from the Send Money tab on the PayPal website.
web-accept: Transaction created by customer via Buy Now, Donation, or Auction Smart Logos.
subscr-*: Transaction created by customer via Subscription. eot means “end of subscription term.”
merch-pmt: preapproved payment.
virtual-terminal: Transaction created via merchant virtual terminal.
ebl:Payment
TransactionCode
Type
Amount deposited into the account’s primary balance after a currency conversion from automatic conversion through your Payment Receiving Preferences or manual conversion through manually accepting a payment. This amount is calculated after fees and taxes have been assessed.
l
None: No status
l
Canceled-Reversal: This means a reversal has been canceled. For example, you won a dispute with the customer, and the funds for the transaction that was reversed have been returned to you.
l
Completed: 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 because of possible reasons described for the PendingReason element.
l
Expired: the authorization period for this payment has been reached.
l
Failed: The payment has failed. This happens only if the payment was made from your customer’s bank account.
l
Pending: The payment is pending. See the PendingReason field for more information.
l
Refunded: You refunded the payment.
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. The reason for the reversal is specified in the ReasonCode element.
l
Processed: A payment has been accepted.
l
Voided: An authorization for this transaction has been voided.
ebl:Payment
Status
CodeType
Canceled-Reversal
Partially-
Refunded
Note:
PendingReason is returned in the response only if PaymentStatus is Pending.
l
none: No pending reason
l
address: The payment is pending because your customer did not include a confirmed shipping address and your Payment Receiving Preferences is set such that you want to manually accept or deny each of these payments. To change your preference, go to the Preferences section of your Profile.
l
echeck: The payment is pending because it was made by an eCheck that has not yet cleared.
l
intl: The payment is pending because you hold a non-U.S. account and do not have a withdrawal mechanism. You must manually accept or deny this payment from your Account Overview.
l
multi-currency: You do not have a balance in the currency sent, and you do not have your Payment Receiving Preferences set to automatically convert and accept this payment. You must manually accept or deny this payment.
l
verify: The payment is pending because you are not yet verified. You must verify your account before you can accept this payment.
l
other: The payment is pending for a reason other than those listed above. For more information, contact PayPal Customer Service.
ebl:Pending
Status
CodeType
The reason for a reversal if TransactionType is reversal:
l
none: No reason code
l
chargeback: A reversal has occurred on this transaction due to a chargeback by your customer.
l
guarantee: A reversal has occurred on this transaction due to your customer triggering a money-back guarantee.
l
buyer-complaint: A reversal has occurred on this transaction due to a complaint about the transaction from your customer.
l
refund: A reversal has occurred on this transaction because you have given the customer a refund.
l
other: A reversal has occurred on this transaction due to a reason not listed above.
Memo entered by your customer in PayPal Website Payments note field.
Item name set by you or entered by the customer. If this was a shopping cart transaction, PayPal appends the number of the item to the HTML item_name variable. For example, item_name1, item_name2, and so forth.
Item number set by you. If this was a shopping cart transaction, PayPal appends the number of the item to the HTML item_number variable. For example, item_number1, item_number2, and so forth.
Username generated by PayPal and given to subscriber to access the subscription.
Character length and limitations: 64 alphanumeric single-byte characters
Password generated by PayPal and given to subscriber to access the subscription. For security, the value of the password is hashed.
Character length and limitations: 128 alphanumeric single-byte characters
1 = Yes
Subscription
TermsType
ebl:Auction
InfoType