DoReferenceTransaction API Operation (SOAP)
Last updated: Aug 15th, 7:19am
Processes a payment from a buyer's account, which is identified by a previous transaction.
DoReferenceTransaction Request Message
DoReferenceTransaction Request Fields
AddressType (Shipping) Fields
Field | Description |
---|---|
|
Person's name associated with this shipping address. It is required if using a shipping address. Character length and limitations: 32 double-byte characters |
|
First street address. It is required if using a shipping address. Character length and limitations: 100 single-byte characters |
|
(Optional) Second street address. Character length and limitations: 100 single-byte characters |
|
Name of city. It is required if using a shipping address. Character length and limitations: 40 single-byte characters |
|
State or province. It is 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 |
|
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 |
|
Country code. It is required if using a shipping address. Character length and limitations: 2 single-byte characters |
|
(Optional) Phone number. Character length and limitations: 20 single-byte characters |
PaymentDetailsType Fields
Field | Description |
---|---|
|
(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 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 ( |
|
(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 ( |
|
(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 ( |
|
(Optional) Total shipping insurance costs for this order. The value must be non-negative currency amount or 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 ( |
|
(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](/docs/nvp-soap-api/currency-codes/) for details. |
|
(Optional) Total handling costs for this order. |
|
(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 ( |
|
(Optional) Description of items the buyer is purchasing. Character length and limitations: 127 single-byte alphanumeric characters |
|
(Optional) A free-form field for your own use. Character length and limitations: 256 single-byte alphanumeric characters |
|
(Optional) Your own invoice or tracking number. Character length and limitations: 256 single-byte alphanumeric characters |
|
(Optional) An identification code for use by third-party applications to identify transactions. Character length and limitations: 32 single-byte alphanumeric characters |
| (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 |
|
(Optional) Address the order is shipped to. |
|
(Optional) Details about each individual item included in the order. |
|
(Optional) Flag to indicate a recurring transaction. Value is:
This field is introduced in version 80.0 of the API. |
PaymentCategoryType |
(Optional) Category of a payment. Value is: |
PaymentDetailsItemType Fields
Field | Description |
---|---|
|
Indicates whether the item is digital or physical. For digital goods, this field is required and you must set it to
This field is introduced in version 69.0. |
|
Item name. This field is required when you pass a value for Character length and limitations: 127 single-byte characters |
|
(Optional) Item description. This field is available since version 53.0. Character length and limitations: 127 single-byte characters |
|
Cost of item. This field is required when you pass a value for 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 ( |
|
(Optional) Item number. Character length and limitations: 127 single-byte characters |
|
Item quantity. This field is required when you pass a value for Character length and limitations: Any positive integer |
|
(Optional) Item sales tax. 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 ( |
PAYMENTINITIATOR |
|
PAYMENTCATEGORY |
|
CARDONFILE |
|
PREVIOUSTRANSACTIONREFERENCE | PayPal transaction ID previously used to charge the buyer. Shows payment processors that you have established a contract with the buyer. |
PREVIOUSNETWORKTRANSACTIONREFERENCE |
|
EbayItemPaymentDetailsItemType Fields
Field | Description |
---|---|
|
(Optional) Auction item number. Character length: 765 single-byte characters |
|
(Optional) Auction transaction identification number. Character length: 255 single-byte characters |
|
(Optional) Auction order identification number. Character length: 64 single-byte characters |
ReferenceCreditCardDetailsType Fields
PayerNameType Fields
Field | Description |
---|---|
|
(Optional) Buyer's salutation. Character length and limitations: 20 single-byte characters |
|
(Optional) Buyer's first name. Character length and limitations: 64 double-byte characters |
|
(Optional) Buyer's middle name. Character length and limitations: 64 double-byte characters |
|
(Optional) Buyer's last name. Character length and limitations: 64 double-byte characters |
|
(Optional) Buyer's suffix. Character length and limitations: 12 single-byte characters |
DoReferenceTransaction Response Message
DoReferenceTransaction Response Fields for Express Checkout
Field | Description |
---|---|
|
Information about the payment such as the transaction ID, whether the payment is instant or delayed, and the settlement amount. |
|
Returned only for Direct Credit Card transactions. Address Verification System response code. Character limit: 1 single-byte alphanumeric character |
|
Returned only for Direct Credit Card transactions. Result of the CVV2 check by PayPal. |
|
Identification number of the billing agreement. When the buyer approves the billing agreement, it becomes valid and remains valid until it is canceled by the buyer. Character length and limitations: 19 single-byte alphanumeric characters |
|
Fraud filter details. |
|
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 in order to avoid chargebacks. For details on the meanings of these codes, see AVS, CVV2, and payment advice response codes. |
PaymentInfoType Fields
Field | Description |
---|---|
|
Unique transaction ID of the payment. Character length and limitations: 17 characters. Orders transactions have 19 characters. |
|
Parent or related transaction identification number. This value in this field is for the following transaction types:
Character length and limitations: 17 characters. Orders transactions have 19 characters. |
|
Receipt identification number Character length and limitations: 16 digits in xxxx-xxxx-xxxx-xxxx format |
|
The type of transaction. Value is:
Character length and limitations: 15 single-byte characters |
|
Indicates 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:
Character length and limitations: 7 single-byte characters |
|
Date and time stamp of the payment. Character length and limitations: Date and time are in UTC/GMT format. For example, |
|
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 ( |
|
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 ( |
|
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 ( |
|
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 ( |
|
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 |
|
Status of the payment. Value is:
|
|
The reason the payment is pending. Value is:
|
|
The reason for a reversal if the transaction type is reversal. Value is:
|
|
Prior to version 64.4, the kind of seller protection in force for the transaction. Value is:
|
|
It is one or more of the following values:
This field is available since version 64.4. |
|
StoreId as entered in the transaction |
|
TerminalId as entered in the transaction |
| Type of the payment instrument. |
InstrumentDetailsType Fields
Field | Description |
---|---|
|
Returns the category of the instrument only when it is promotional. Value is: |
|
Reserved for future use. |
FMFDetailsType Fields
Field | Description |
---|---|
|
List of filters that recommend acceptance of the payment. |
|
List of filters that recommend denial of the payment. |
|
List of filters that caused the payment to become pending. |
|
List of filters that caused the payment to become flagged. |
RiskFilterListType Fields
Field | Description |
---|---|
|
Filter ID. Value is:
|
|
Filter name. |
|
Filter description. |
Deprecated Fields
The following fields are deprecated. Replacement fields are noted when available.