DoReferenceTransaction API Operation (NVP)

API

Last updated: Aug 15th, 7:43am

Processes a payment from a buyer's account, which is identified by a previous transaction.

DoReferenceTransaction request message

DoReferenceTransaction request fields

FieldDescription
METHOD

(Required) Must be DoReferenceTransaction.

REFERENCEID

(Required) A valid transaction ID from a previous purchase, such as a credit card charge using the DoDirectPayment API, or a valid billing agreement ID. Billing agreements are valid until the agreement is canceled by the buyer; whereas, transaction IDs are valid for 730 days from the transaction date.

PAYMENTACTION

(Required) How you want to obtain payment. It is one of the following values:

  • Authorization. This payment is a basic authorization subject to settlement with PayPal Authorization and Capture.
  • Sale. This is a final sale for which you are requesting payment.
  • Order. This payment is an Order authorization subject to settlement with PayPal Authorization and Capture.
PAYMENTTYPE

(Optional) Specifies type of PayPal payment you require for the billing agreement. It is one of the following values.

  • Any
  • InstantOnly
IPADDRESS

(Optional) IP address of the buyer's browser. Supports IPv4, IPv6, and IPv4-mapped IPv6. IPv6 and IPv4-mapped IPv6 can be zero compressed.

Character length and limitations: 45 single—byte characters, including periods or colons.

  • IPv4 example, 255.255.255.255
  • IPv6 example, FDEC:0:0:0:0:BBFF:0:FFFF or zero-compressed, FDEC::BBFF:0:FFFF
  • IPv4-mapped IPv6 example, 0000:0000:0000:0000:0000:FFFF:255.255.255.255 or zero compressed, : :FFFF:255.255.255.255

RISKSESSIONCORRELATIONID

(Optional) The ID of the risk session for correlation purposes.

MERCHANTSESSIONID

(Optional) Your buyer session identification token.

Character length and limitations: 64 single-byte numeric characters.

RETURNFMFDETAILS

(Optional) Flag to indicate whether you want the results returned by Fraud Management Filters. By default, you do not receive this information. Value is:

  • 0. Do not receive FMF details (default).
  • 1. Receive FMF details.
SOFTDESCRIPTOR(Optional) For pro credit card transactions:

Information that is usually displayed in the account holder's statement, for example, <Your-Not-For-Profit> <State>, <Your-Not-For-Profit> <Branch-Name>, <Your-Website> dues or <Your-Website> list fee.

Character length and limitations: 23 alphanumeric characters, can include the special characters dash (-) and dot (.) only. Asterisks (*) are NOT permitted. If it includes a space character ( ), enclose the "<Soft-Descriptor>" value in double quotes.

For credit card payments made through PayPal:

If you provide a value in this field, the full descriptor displayed on the buyer's statement has the following format:

<PP*|PAYPAL*><Merchant descriptor in Payment Receiving Preferences> <1 space><soft descriptor>

Character length and limitations: The soft descriptor can contain only the following characters:

  • Alphanumeric characters
  • - (dash)
  • * (asterisk)
  • . (period)
  • (space)
If you pass any other characters, such as a comma, PayPal returns an error code.

he soft descriptor can also include a phone number, which can be toggled between the merchant's customer service number and PayPal's customer service number.

The maximum length of the soft descriptor is 22 characters. The PayPal prefix uses either four or eight characters of the data format. The maximum length of the soft descriptor information that you can pass in this field is:

22 - len(<PP * | PAYPAL *>) - len(<Descriptor in Payment Receiving Preferences> + 1)

For example, assume the following conditions:

  • The PayPal prefix toggle is set to PAYPAL * in PayPal's administration tools.
  • The merchant descriptor set in the Payment Receiving Preferences is EBAY.
  • The soft descriptor is passed in as JanesFlowerGifts LLC.
The resulting descriptor string on the credit card is:

PAYPAL *EBAY JanesFlow
SOFTDESCRIPTORCITY(Optional) A unique phone number, email address or URL, which is displayed on the account holder's statement. PayPal recommends passing a toll-free phone number because, typically, this is the easiest way for a buyer to contact the seller in the case of an inquiry.

Character length and limitations: 13 characters including special characters, such as, space, !, ", #, $, %, &, ', (\`, \`), +, -,*, /, :, ;, <\`, \`=\`, \`>, ?, @, comma and period.

If it includes the space character ( ), enclose the "<Soft-Descriptor-City>" value in double quotes.

PAYMENTREQUEST_n_PAYMENTREASONIndicates the type of transaction. Value is:
  • None. Transaction is not identified as a particular type.
MSGSUBID

(Optional) A message ID used for idempotence to uniquely identify a message. This ID can later be used to request the latest results for a previous request without generating a new request. Examples of this include requests due to timeouts or errors during the original request.

Character length and limitations: string of up to 38 single-byte characters.

This field is available since version 92.0.

Ship to address fields

FieldDescription
SHIPTONAME

Person's name associated with this shipping address. It is required if using a shipping address.

Character length and limitations: 32 double-byte characters.

SHIPTOSTREET

First street address. It is required if using a shipping address.

Character length and limitations: 100 single-byte characters.

SHIPTOSTREET2

(Optional) Second street address.

Character length and limitations: 100 single-byte characters.

SHIPTOCITY

Name of city. It is required if using a shipping address.

Character length and limitations: 40 single-byte characters.

SHIPTOSTATE

State or province.

Required for transactions only if the address is in one of the following countries: Argentina, Brazil, Canada, China, Indonesia, India, Japan, Mexico, Thailand or USA. See the list of PayPal state codes.

Character length and limitations: 40 single-byte characters.

SHIPTOZIP

U.S. ZIP code or other country-specific postal code. It is required if using a U.S. shipping address.

Character length and limitations: 20 single-byte characters.

SHIPTOCOUNTRY

Country code. It is required if using a shipping address.

Character length and limitations: 2 single-byte characters.

SHIPTOPHONENUM

(Optional) Phone number.

Character length and limitations: 20 single-byte characters.

Payment details fields

FieldDescription
AMT

(Required) The total cost of the transaction to the buyer. If shipping cost and tax charges are known, include them in this value. If not, this value should be the current subtotal of the order. If the transaction includes one or more one-time purchases, this field must be equal to the sum of the purchases. Set this field to 0 if the transaction does not include a one-time purchase such as when you set up a billing agreement for a recurring payment that is not immediately charged. When the field is set to0, purchase-specific fields are ignored.

Character length and limitations: Value is typically a positive number that cannot exceed nine (9) digits in SOAP request/response for USD, CLP, or JPY or the per transaction limit for the currency. It includes no currency symbol. Most currencies require two decimal places. The decimal separator must be a period (.), and the optional thousands separator must be a comma (,). Some currencies do not allow decimals. For details, see the currency codes page.

CURRENCYCODE(Optional) A three-character currency code (default is USD).
ITEMAMT

(Optional) Sum of cost of all items in this order.

Character length and limitations: Value is typically a positive number that cannot exceed nine (9) digits in SOAP request/response for USD, CLP, or JPY or the per transaction limit for the currency. It includes no currency symbol. Most currencies require two decimal places. The decimal separator must be a period (.), and the optional thousands separator must be a comma (,). Some currencies do not allow decimals. For details, see the currency codes page.

SHIPPINGAMT

(Optional) Total shipping costs for this order.

Character length and limitations: Value is typically a positive number that cannot exceed nine (9) digits in SOAP request/response for USD, CLP, or JPY or the per transaction limit for the currency. It includes no currency symbol. Most currencies require two decimal places. The decimal separator must be a period (.), and the optional thousands separator must be a comma (,). Some currencies do not allow decimals. For details, see the currency codes page.

INSURANCEAMT

(Optional) Total shipping insurance costs for this order. The value must be non-negative currency amount or null if insurance options are offered.

Character length and limitations: Value is typically a positive number that cannot exceed nine (9) digits in SOAP request/response for USD, CLP, or JPY or the per transaction limit for the currency. It includes no currency symbol. Most currencies require two decimal places. The decimal separator must be a period (.), and the optional thousands separator must be a comma (,). Some currencies do not allow decimals. For details, see the currency codes page.

SHIPDISCAMT

(Optional) Shipping discount for this order, specified as a negative number.

Character length and limitations: Value is a negative number. It includes no currency symbol. Most currencies require 2 decimal places. The decimal separator must be a period (.), and the optional thousands separator must be a comma (,). Some currencies do not allow decimals. See the currency codes page for details.

HANDLINGAMT

(Optional) Total handling costs for this order.

Character length and limitations: Value is typically a positive number that cannot exceed nine (9) digits in SOAP request/response for USD, CLP, or JPY or the per transaction limit for the currency. It includes no currency symbol. Most currencies require two decimal places. The decimal separator must be a period (.), and the optional thousands separator must be a comma (,). Some currencies do not allow decimals. For details, see the currency codes page.

TAXAMT

(Optional) Sum of tax for all items in this order.

Character length and limitations: Value is typically a positive number that cannot exceed nine (9) digits in SOAP request/response for USD, CLP, or JPY or the per transaction limit for the currency. It includes no currency symbol. Most currencies require two decimal places. The decimal separator must be a period (.), and the optional thousands separator must be a comma (,). Some currencies do not allow decimals. For details, see the currency codes page.

DESC

(Optional) Description of items the buyer is purchasing.

Character length and limitations: 127 single-byte alphanumeric characters.

CUSTOM

(Optional) A free-form field for your own use.

Character length and limitations: 256 single-byte alphanumeric characters.

INVNUM

(Optional) Your own invoice or tracking number.

INVNUM is equivalent to the SOAP fieldInvoiceID. In reports, INVNUM values are displayed in the InvoiceID column.

Character length and limitations: 256 single-byte alphanumeric characters.

BUTTONSOURCE

(Optional) An identification code for use by third-party applications to identify transactions.

Character length and limitations: 32 single-byte alphanumeric characters.

NOTIFYURL

(Optional) Your URL for receiving Instant Payment Notification (IPN) about this transaction. If you do not specify this value in the request, the notification URL from your Merchant Profile is used, if one exists.

Character length and limitations: 2,048 single-byte alphanumeric characters.

RECURRING

(Optional) Flag to indicate a recurring transaction. It is one of the following values:

  • Any value other than Y. This is not a recurring transaction (default).
  • Y. This is a recurring transaction.
BUCKETCATEGORYTYPE

(Optional) The category of a payment. Value is:

  • 1. International shipping.
  • 2. Local delivery.

Payment details item fields

FieldDescription
L_ITEMCATEGORYn

Indicates whether the item is digital or physical. For digital goods, this field is required and you must set it to Digital to get the best rates. These parameters must be ordered sequentially beginning with 0 (for example L_ITEMCATEGORY0,L_ITEMCATEGORY1). Value is:

  • Digital
  • Physical

This field is introduced in version 69.0.

L_NAMEn

Item name. This field is required when you pass a value forL_PAYMENTREQUEST_n_ITEMCATEGORYm. These parameters must be ordered sequentially beginning with 0 (for example L_NAME0, L_NAME1).

Character length and limitations: 127 single-byte characters.

L_DESCn

(Optional) Item description.

This field is available since version 53.0.

Character length and limitations: 127 single-byte characters.

L_AMTn

Cost of item. This field is required when you pass a value forL_PAYMENTREQUEST_n_ITEMCATEGORYm. These parameters must be ordered sequentially beginning with 0 (for example L_AMT0, L_AMT1).

Character length and limitations: Value is typically a positive number that cannot exceed nine (9) digits in SOAP request/response for USD, CLP, or JPY or the per transaction limit for the currency. It includes no currency symbol. Most currencies require two decimal places. The decimal separator must be a period (.), and the optional thousands separator must be a comma (,). Some currencies do not allow decimals. For details, see the currency codes page.

L_NUMBERn

(Optional) Item number. These parameters must be ordered sequentially beginning with 0 (for example L_NUMBER0,L_NUMBER1).

Character length and limitations: 127 single-byte characters.

L_QTYn

Item quantity. This field is required when you pass a value forL_PAYMENTREQUEST_n_ITEMCATEGORYm. These parameters must be ordered sequentially beginning with 0 (for example L_QTY0, L_QTY1).

Character length and limitations: Any positive integer.

L_TAXAMTn

(Optional) Item sales tax. These parameters must be ordered sequentially beginning with 0 (for example L_TAXAMT0, L_TAXAMT1).

Character length and limitations: Value is typically a positive number that cannot exceed nine (9) digits in SOAP request/response for USD, CLP, or JPY or the per transaction limit for the currency. It includes no currency symbol. Most currencies require two decimal places. The decimal separator must be a period (.), and the optional thousands separator must be a comma (,). Some currencies do not allow decimals. For details, see the currency codes page.

PAYMENTINITIATOR
  • CUSTOMER (default) - Customer initiates the payment. Also referred to as a Customer Initiated Transaction (CIT).
  • MERCHANT - Merchant initiates the transaction and the merchant has established consent to charge the buyer. Also referred to as a Merchant Initiated Transaction (MIT).
PAYMENTCATEGORY
  • UNSCHEDULED - Payments that the merchant initiates and are not on a specified schedule. For example, this includes preauthorized transactions where the merchant can charge the buyer once a balance falls within a specified range. These transactions are also referred to as top-up.
  • RECURRING - Merchant initiates a payment as part of a series of recurring payments. The payment amounts can be variable and are on a fixed time interval.
  • ONE_TIME - Single, one-time payment.
CARDONFILE
  • FIRST - Save card information or payment token to use in subsequent transactions. Collect consent from the buyer that you intend to save their payment information.
  • SUBSEQUENT - Card information or payment token was previously saved and is used in the transaction.
PREVIOUSTRANSACTIONREFERENCEPayPal transaction ID previously used to charge the buyer. Shows payment processors that you have established a contract with the buyer.
PREVIOUSNETWORKTRANSACTIONREFERENCE
  • PREVIOUSNETWORKTRANSACTIONID - Transaction ID from a non-PayPal payment processor that you have previously used to process the payment.
  • Network - TransactionID from a non-PayPal payment processor that you have previously used to process the payment.

Ebay item payment details item fields

FieldDescription
L_EBAYITEMNUMBERn

(Optional) Auction item number. These parameters must be ordered sequentially beginning with 0 (for exampleL_EBAYITEMNUMBER0, L_EBAYITEMNUMBER1).

Character length: 765 single-byte characters.

L_EBAYITEMAUCTIONTXNIDn

(Optional) Auction transaction identification number. These parameters must be ordered sequentially beginning with 0 (for exampleL_EBAYITEMAUCTIONTXNID0,L_EBAYITEMAUCTIONTXNID1).

Character length: 255 single-byte characters.

L_EBAYITEMORDERIDn

(Optional) Auction order identification number. These parameters must be ordered sequentially beginning with 0 (for exampleL_EBAYITEMORDERID0, L_EBAYITEMORDERID1).

Character length: 64 single-byte characters.

Reference credit card details fields

FieldDescription
CREDITCARDTYPE

(Optional) Type of credit card. Is one of the following values:

  • Visa
  • Mastercard
  • Discover
  • Amex
  • JCB
  • Maestro. See note.

For UK, only Maestro, Mastercard,Discover, and Visa are allowable. For Canada, only Mastercard and Visa are allowable. Interac debit cards are not supported.

Character length and limitations: Up to 10 single-byte alphabetic characters.

ACCT

(Optional) Credit card number.

Character length and limitations: Numeric characters only with no spaces or punctuation. The string must conform with modulo and length required by each credit card type.

EXPDATE

Credit card expiration date. This field is required if you are using recurring payments with direct payments.

Character length and limitations: Six single-byte alphanumeric characters, including leading zero, in the format MMYYYY.

CVV2

(Optional) Card Verification Value, version 2. To comply with credit card processing regulations, you must not store this value after a transaction has been completed.

Character length and limitations: For Visa, Mastercard, and Discover, the value is exactly three digits. For American Express, the value is exactly four digits.

STARTDATE

(Optional) Month and year that Maestro card was issued.

Character length and limitations: Must be six digits, including leading zero, in the format MMYYYY.

ISSUENUMBER

(Optional) Issue number of Maestro card.

Character length and limitations: 2 numeric digits maximum.

Payer information fields

FieldDescription
EMAIL

(Optional) Email address of buyer.

Character length and limitations: 127 single-byte characters.

FIRSTNAME

(Conditional) Buyer's first name is required except when the reference transaction is run against a billing agreement. In the case of a billing agreement, the first name field should not be used.

Character length and limitations: 64 double-byte characters.

LASTNAME

(Conditional) Buyer's last name is required except when the reference transaction is run against a billing agreement. In the case of a billing agreement, the last name field should not be used.

Character length and limitations: 64 double-byte characters.

Address fields

Billing address information.

FieldDescription
STREET

(Optional) First street address.

Character length and limitations: 100 single-byte characters.

STREET2

(Optional) Second street address.

Character length and limitations: 100 single-byte characters.

CITY

(Optional) Name of city.

Character length and limitations: 40 single-byte characters.

STATE

(Optional) State or province.

Character length and limitations: 40 single-byte characters.

COUNTRYCODE

(Optional) Country code.

Character limit: 2 single-byte characters.

ZIP

(Optional) U.S. ZIP code or other country-specific postal code.

Character length and limitations: 20 single-byte characters.

DoReferenceTransaction response message

DoReferenceTransaction response fields for Express Checkout

This field is available since version 84.0.

FieldDescription
AVSCODE

Returned only for Direct Credit Card transactions. Address Verification System response code.

Character limit: One single-byte alphanumeric character.

CVV2MATCHReturned only for Direct Credit Card transactions. Result of the CVV2 check by PayPal.
BILLINGAGREEMENTID Identification number of the billing agreement. When the buyer approves the billing agreement, it remains valid until canceled by the buyer.



Character length and limitations: 19 single-byte alphanumeric characters
L_FMFfilterIDn

Filter ID, including the filter type (PENDING,REPORT, or DENY), the filter ID, and the entry number, n, starting from 0. FilterID is one of the following values:

  • 1. AVS No Match.
  • 2. AVS Partial Match.
  • 3. AVS Unavailable/Unsupported.
  • 4. Card Security Code (CSC) Mismatch.
  • 5. Maximum Transaction Amount.
  • 6. Unconfirmed Address.
  • 7. Country Monitor.
  • 8. Large Order Number.
  • 9. Billing/Shipping Address Mismatch.
  • 10. Risky ZIP Code.
  • 11. Suspected Freight Forwarder Check.
  • 12. Total Purchase Price Minimum.
  • 13. IP Address Velocity.
  • 14. Risky Email Address Domain Check.
  • 15. Risky Bank Identification Number (BIN) Check.
  • 16. Risky IP Address Range.
  • 17. PayPal Fraud Model.
L_FMFfilterNAMEnFilter name, including the filter type (PENDING, REPORT, or DENY), the filter NAME, and the entry number, n, starting from 0.
PAYMENTADVICECODE

A processor response code typically returned on declined Website Payments Pro recurring transactions. Its purpose is to provide merchants with information and specific instructions on how to handle the decline. It is the merchant's responsibility to follow the instructions provided to avoid chargebacks. For details on the meanings of these codes, see AVS, CVV2, and payment advice response codes.

MSGSUBID

(Optional) A message ID used for idempotence to uniquely identify a message. This ID can later be used to request the latest results for a previous request without generating a new request. Examples of this include requests due to timeouts or errors during the original request.

Character length and limitations: string of up to 38 single-byte characters.

This field is available since version 92.0.

FieldDescription
TRANSACTIONID

Unique transaction ID of the payment.

Character length and limitations: 17 characters. Orders transactions have 19 characters.

PARENTTRANSACTIONID

Parent or related transaction identification number. This value in this field is for the following transaction types:

  • Reversal. Capture of an authorized transaction.
  • Reversal. Reauthorization of a transaction.
  • Capture of an order. The value of ParentTransactionID is the original OrderID.
  • Authorization of an order. The value of ParentTransactionID is the original OrderID.
  • Capture of an order authorization.
  • Void of an order. The value of ParentTransactionIDis the original OrderID.
Character length and limitations: 17 characters. Orders transactions have 19 characters.
RECEIPTID

Receipt identification number.

Character length and limitations: 16 digits in xxxx-xxxx-xxxx-xxxx format.

TRANSACTIONTYPEThe type of transaction. Value is:
  • cart
  • express-checkout

Character length and limitations: 15 single-byte characters.

PAYMENTTYPEIndicates whether the payment is instant or delayed. It only applies to Express Checkout reference transactions and is not applicable to direct credit card reference transactions. Value is:
  • none
  • echeck
  • instant

Character length and limitations: Seven single-byte characters.

ORDERTIME

Date and time stamp of the payment.

Character length and limitations: Date and time are in UTC/GMT format. For example, 2013-08-24T05:38:48Z.

AMT

The final amount charged, including any shipping and taxes from your Merchant Profile.

Character length and limitations: Value is typically a positive number that cannot exceed nine (9) digits in SOAP request/response for USD, CLP, or JPY or the per transaction limit for the currency. It includes no currency symbol. Most currencies require two decimal places. The decimal separator must be a period (.), and the optional thousands separator must be a comma (,). Some currencies do not allow decimals. For details, see the currency codes page.

CURRENCYCODEA 3-character currency code.
FEEAMT

PayPal fee amount charged for the transaction.

Character length and limitations: Value is typically a positive number that cannot exceed nine (9) digits in SOAP request/response for USD, CLP, or JPY or the per transaction limit for the currency. It includes no currency symbol. Most currencies require two decimal places. The decimal separator must be a period (.), and the optional thousands separator must be a comma (,). Some currencies do not allow decimals. For details, see the currency codes page.

SETTLEAMT

Amount deposited in your PayPal account after a currency conversion.

Character length and limitations: Value is typically a positive number that cannot exceed nine (9) digits in SOAP request/response for USD, CLP, or JPY or the per transaction limit for the currency. It includes no currency symbol. Most currencies require two decimal places. The decimal separator must be a period (.), and the optional thousands separator must be a comma (,). Some currencies do not allow decimals. For details, see the currency codes page.

TAXAMT

Tax charged on the transaction.

Character length and limitations: Value is typically a positive number that cannot exceed nine (9) digits in SOAP request/response for USD, CLP, or JPY or the per transaction limit for the currency. It includes no currency symbol. Most currencies require two decimal places. The decimal separator must be a period (.), and the optional thousands separator must be a comma (,). Some currencies do not allow decimals. For details, see the currency codes page.

EXCHANGERATE

Exchange rate if a currency conversion occurred. Relevant only if your are billing in their non-primary currency. If the buyer chooses to pay with a currency other than the non-primary currency, the conversion occurs in the buyer's account.

Character length and limitations: Decimal value that does not exceed 17 characters, including decimal point.

PAYMENTSTATUSStatus of the payment. Value is:
  • None. No status.
  • Canceled-Reversal. A reversal has been canceled, for example, when you win a dispute and the funds for the reversal have been returned to you.
  • Completed. The payment has been completed, and the funds have been added successfully to your account balance.
  • Denied. You denied the payment. This happens only if the payment was previously pending because of possible reasons described for the PendingReason element.
  • Expired. The authorization period for this payment has been reached.
  • Failed. The payment has failed. This happens only if the payment was made from your buyer's bank account.
  • In-Progress. The transaction has not terminated, for example, an authorization may be awaiting completion.
  • Partially-Refunded. The payment has been partially refunded.
  • Pending. The payment is pending. See the PendingReason field for more information.
  • Refunded. You refunded the payment.
  • 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.
  • Processed. A payment has been accepted.
  • Voided. An authorization for this transaction has been voided.
PENDINGREASONThe reason the payment is pending. Value is:
  • none. No pending reason.
  • address. The payment is pending because your buyer 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.
  • authorization. The payment is pending because it has been authorized but not settled. You must capture the funds first.
  • echeck. The payment is pending because it was made by an eCheck that has not yet cleared.
  • 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.
  • 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.
  • order. The payment is pending because it is part of an order that has been authorized but not settled.
  • paymentreview. The payment is pending while it is being reviewed by PayPal for risk.
  • regulatoryreview. The payment is pending while we make sure it meets regulatory requirements. You will be contacted again in from 24 to 72 hours with the outcome of the review.
  • unilateral. The payment is pending because it was made to an email address that is not yet registered or confirmed.
  • verify. The payment is pending because you are not yet verified. You must verify your account before you can accept this payment.
  • other. The payment is pending for a reason other than those listed above. For more information, contact PayPal Customer Service.
REASONCODE

The reason for a reversal if the transaction type is reversal. Value is:

  • none. No reason code.
  • chargeback. A reversal has occurred on this transaction due to a chargeback by your buyer.
  • guarantee. A reversal has occurred on this transaction due to your buyer triggering a money-back guarantee.
  • buyer-complaint. A reversal has occurred on this transaction due to a complaint about the transaction from your buyer.
  • refund. A reversal has occurred on this transaction because you have given the buyer a refund.
  • other. A reversal has occurred on this transaction due to a reason not listed above.
PROTECTIONELIGIBILITY

Prior to version 64.4, the kind of seller protection in force for the transaction. Value is:

  • Eligible. Merchant is protected by PayPal's Seller Protection Policy for Unauthorized Payments and Item Not Received.
  • PartiallyEligible. Merchant is protected by PayPal's Seller Protection Policy for Item Not Received.
  • Ineligible. Merchant is not protected under the Seller Protection Policy.
PROTECTIONELIGIBILITYTYPE

Since version 64.4, the type of seller protection in force for the transaction.

It is one or more of the following values:

  • ItemNotReceivedEligible – Merchant is protected by PayPal's Seller Protection Policy for Item Not Received.
  • UnauthorizedPaymentEligible – Merchant is protected by PayPal's Seller Protection Policy for Unauthorized Payment.
  • Ineligible – Merchant is not protected under the Seller Protection Policy.
This field is available since version 64.4.

STOREID

xs:string. StoreId as entered in the transaction.

TERMINALIDxs:string. TerminalId as entered in the transaction.
INSTRUMENTCATEGORY

Returns the category of the instrument only when it is promotional.Value is:

  • 1. Represents PayPal Credit.
INSTRUMENTID

Reserved for future use. Returns an instrument ID (issued by the external party) corresponding to the funding source used in the payment.

Payment information fields

FieldDescription
TRANSACTIONID

Unique transaction ID of the payment.

Character length and limitations: 17 characters. Orders transactions have 19 characters.

PARENTTRANSACTIONID

Parent or related transaction identification number. This value in this field is for the following transaction types:

  • Reversal. Capture of an authorized transaction.
  • Reversal. Reauthorization of a transaction.
  • Capture of an order. The value of ParentTransactionID is the original OrderID.
  • Authorization of an order. The value of ParentTransactionID is the original OrderID.
  • Capture of an order authorization.
  • Void of an order. The value of ParentTransactionIDis the original OrderID.
Character length and limitations: 17 characters. Orders transactions have 19 characters.
RECEIPTID

Receipt identification number.

Character length and limitations: 16 digits in xxxx-xxxx-xxxx-xxxx format.

TRANSACTIONTYPEThe type of transaction. Value is:
  • cart
  • express-checkout

Character length and limitations: 15 single-byte characters.

PAYMENTTYPEIndicates whether the payment is instant or delayed. It only applies to Express Checkout reference transactions and is not applicable to direct credit card reference transactions. Value is:
  • none
  • echeck
  • instant

Character length and limitations: Seven single-byte characters.

ORDERTIME

Date and time stamp of the payment.

Character length and limitations: Date and time are in UTC/GMT format. For example, 2013-08-24T05:38:48Z.

AMT

The final amount charged, including any shipping and taxes from your Merchant Profile.

Character length and limitations: Value is typically a positive number that cannot exceed nine (9) digits in SOAP request/response for USD, CLP, or JPY or the per transaction limit for the currency. It includes no currency symbol. Most currencies require two decimal places. The decimal separator must be a period (.), and the optional thousands separator must be a comma (,). Some currencies do not allow decimals. For details, see the currency codes page.

CURRENCYCODEA 3-character currency code.
FEEAMT

PayPal fee amount charged for the transaction.

Character length and limitations: Value is typically a positive number that cannot exceed nine (9) digits in SOAP request/response for USD, CLP, or JPY or the per transaction limit for the currency. It includes no currency symbol. Most currencies require two decimal places. The decimal separator must be a period (.), and the optional thousands separator must be a comma (,). Some currencies do not allow decimals. For details, see the currency codes page.

SETTLEAMT

Amount deposited in your PayPal account after a currency conversion.

Character length and limitations: Value is typically a positive number that cannot exceed nine (9) digits in SOAP request/response for USD, CLP, or JPY or the per transaction limit for the currency. It includes no currency symbol. Most currencies require two decimal places. The decimal separator must be a period (.), and the optional thousands separator must be a comma (,). Some currencies do not allow decimals. For details, see the currency codes page.

TAXAMT

Tax charged on the transaction.

Character length and limitations: Value is typically a positive number that cannot exceed nine (9) digits in SOAP request/response for USD, CLP, or JPY or the per transaction limit for the currency. It includes no currency symbol. Most currencies require two decimal places. The decimal separator must be a period (.), and the optional thousands separator must be a comma (,). Some currencies do not allow decimals. For details, see the currency codes page.

EXCHANGERATE

Exchange rate if a currency conversion occurred. Relevant only if your are billing in their non-primary currency. If the buyer chooses to pay with a currency other than the non-primary currency, the conversion occurs in the buyer's account.

Character length and limitations: Decimal value that does not exceed 17 characters, including decimal point.

PAYMENTSTATUSStatus of the payment. Value is:
  • None. No status.
  • Canceled-Reversal. A reversal has been canceled, for example, when you win a dispute and the funds for the reversal have been returned to you.
  • Completed. The payment has been completed, and the funds have been added successfully to your account balance.
  • Denied. You denied the payment. This happens only if the payment was previously pending because of possible reasons described for the PendingReason element.
  • Expired. The authorization period for this payment has been reached.
  • Failed. The payment has failed. This happens only if the payment was made from your buyer's bank account.
  • In-Progress. The transaction has not terminated, for example, an authorization may be awaiting completion.
  • Partially-Refunded. The payment has been partially refunded.
  • Pending. The payment is pending. See the PendingReason field for more information.
  • Refunded. You refunded the payment.
  • 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.
  • Processed. A payment has been accepted.
  • Voided. An authorization for this transaction has been voided.
PENDINGREASONThe reason the payment is pending. Value is:
  • none. No pending reason.
  • address. The payment is pending because your buyer 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.
  • authorization. The payment is pending because it has been authorized but not settled. You must capture the funds first.
  • echeck. The payment is pending because it was made by an eCheck that has not yet cleared.
  • 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.
  • 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.
  • order. The payment is pending because it is part of an order that has been authorized but not settled.
  • paymentreview. The payment is pending while it is being reviewed by PayPal for risk.
  • regulatoryreview. The payment is pending while we make sure it meets regulatory requirements. You will be contacted again in from 24 to 72 hours with the outcome of the review.
  • unilateral. The payment is pending because it was made to an email address that is not yet registered or confirmed.
  • verify. The payment is pending because you are not yet verified. You must verify your account before you can accept this payment.
  • other. The payment is pending for a reason other than those listed above. For more information, contact PayPal Customer Service.
REASONCODE

The reason for a reversal if the transaction type is reversal. Value is:

  • none. No reason code.
  • chargeback. A reversal has occurred on this transaction due to a chargeback by your buyer.
  • guarantee. A reversal has occurred on this transaction due to your buyer triggering a money-back guarantee.
  • buyer-complaint. A reversal has occurred on this transaction due to a complaint about the transaction from your buyer.
  • refund. A reversal has occurred on this transaction because you have given the buyer a refund.
  • other. A reversal has occurred on this transaction due to a reason not listed above.
PROTECTIONELIGIBILITY

Prior to version 64.4, the kind of seller protection in force for the transaction. Value is:

  • Eligible. Merchant is protected by PayPal's Seller Protection Policy for Unauthorized Payments and Item Not Received.
  • PartiallyEligible. Merchant is protected by PayPal's Seller Protection Policy for Item Not Received.
  • Ineligible. Merchant is not protected under the Seller Protection Policy.
PROTECTIONELIGIBILITYTYPE

Since version 64.4, the type of seller protection in force for the transaction.

It is one or more of the following values:

  • ItemNotReceivedEligible – Merchant is protected by PayPal's Seller Protection Policy for Item Not Received.
  • UnauthorizedPaymentEligible – Merchant is protected by PayPal's Seller Protection Policy for Unauthorized Payment.
  • Ineligible – Merchant is not protected under the Seller Protection Policy.
This field is available since version 64.4.

STOREID

xs:string. StoreId as entered in the transaction.

TERMINALIDxs:string. TerminalId as entered in the transaction.
INSTRUMENTCATEGORY

Returns the category of the instrument only when it is promotional.Value is:

  • 1. Represents PayPal Credit.
INSTRUMENTID

Reserved for future use. Returns an instrument ID (issued by the external party) corresponding to the funding source used in the payment.

Deprecated fields

The following fields are deprecated. Replacement fields are noted when available.

Deprecated fieldReplacement fieldSince version/date
REQCONFIRMSHIPPINGNo replacement.

Whether you require that the buyer's shipping address on file with PayPal be a confirmed address. You must have permission from PayPal to not require a confirmed address. Value is:

  • 0. You do not require that the buyer's shipping address be a confirmed address.
  • 1. You require that the buyer's shipping address be a confirmed address.

Character length and limitations: One single-byte numeric character.

September 2016

Additional information

If you accept cookies, we’ll use them to improve and customize your experience and enable our partners to show you personalized PayPal ads when you visit other sites. Manage cookies and learn more