Naming Conventions for Simple Order API Reply Fields
|
The names of most Simple Order API reply fields include a preface. |
For most Simple Order API reply fields, the field name that you use in your code must include a preface followed by an underscore ( _ ). The following table lists the Simple Order API services and the preface to use for each service. In Table 19 , an asterisk (*) before a field name indicates that you should not preface the field name.
Examples:
nThe Do Capture service returns the receipt ID in payPalDoCaptureReply_paypalReceiptId.
nThe Get Details service returns the shipping country in payPalEcGetDetailsReply_shipToCountry.
|
Some field descriptions come directly from PayPal and are not written by Cybersource. |
In the following table, an asterisk (*) before a field name indicates that you should not preface the field name.
Field |
Description |
Returned By |
Data Type & Length |
addressID |
eBay company that maintains this address. Possible values: neBay nPayPal |
payPalEcGetDetails payPalGetTxnDetails |
String (20) |
addressStatus |
Status of the street address on file with PayPal. Possible values: nNone nConfirmed nUnconfirmed |
payPalEcGetDetails payPalUpdate payPalGetTxnDetails |
String (12) |
amount |
Total transaction amount. |
payPalEcSetService payPalEcDoPayment Service payPalEcOrderSetup Service payPalAuthorization Service payPalDoCapture |
String (15) |
authorizationId |
Authorization identification number that was sent in the request. |
payPalDoCapture payPalAuthReversal |
String (19) |
avsCode |
Indicates the status of the customer’s address. Possible values: n1: None n2: Other n3: Confirmed n4: Unconfirmed |
payPalEcGetDetails |
Numeric (1) |
city |
City in the customer’s billing address. |
payPalEcGetDetails |
String (40) |
correlationID |
Identifier that can be used for working with PayPal to investigate issues. |
All PayPal Express Checkout services |
String (20) |
countryCode |
Code for the country in the customer’s billing address. |
payPalEcGetDetails |
String (2) |
countryName |
Name of the country in the customer’s billing address. |
payPalEcGetDetails |
String (40) |
currency |
Currency code for one of the PayPal transactional currencies. See Currency Codes. Note PayPal can add currencies at any time. For an up-to-date list of currencies supported by PayPal, contact your PayPal representative. |
payPalEcSetService payPalEcDoPayment payPalEcOrderSetup Service payPalAuthorization Service payPalDoCapture payPalDoRef payPalGetTxnDetails |
String (3) |
* decision |
Summarizes the result of the overall request. See the information about handling replies in Getting Started with CyberSource Advanced for the Simple Order API. Possible values: nACCEPT nERROR nREJECT nREVIEW |
All PayPal Express Checkout services |
String (6) |
errorCode |
Identifier that can be used for working with PayPal to investigate issues. |
All PayPal Express Checkout services |
String (10) |
* invalidField_0...N |
Fields in the request that contained invalid data. These reply fields are included as an aid to software developers only. No attempt should be made to use these fields for end user interaction. See the information about missing and invalid fields in Getting Started with CyberSource Advanced for the Simple Order API. |
All PayPal Express Checkout services |
String (100) |
* item_#_productCode |
Type of product. Possible values: ncoupon ndefault nhandling_only nshipping_and_handling Note The shipping_only line items are not returned. Instead, their amount values are added to the shipping_and_handling line item. Note If you use a customized value for the product code, you receive a value of default in this field. |
payPalEcGetDetails payPalGetTxnDetails |
String (255) |
* item_#_productDescription |
The product description is not returned when the product code is handling_only or shipping_and_handling. |
payPalEcGetDetails payPalGetTxnDetails |
String (127) |
* item_#_productName |
The product name is not returned when the product code is handling_only or shipping_and_handling. |
payPalEcGetDetails payPalGetTxnDetails |
String (127) |
* item_#_productSKU |
Identification code for the product. |
payPalEcGetDetails payPalGetTxnDetails |
String (127) |
* item_#_quantity |
The quantity is not returned when the product code is handling_only or shipping_and_handling. |
payPalEcGetDetails payPalGetTxnDetails |
Nonnegative integer (10) |
* item_#_unitPrice |
Per-item price of the product. |
payPalEcGetDetails payPalGetTxnDetails |
String (15) |
* merchantReference |
Order reference or tracking number that you provided in the request. If you included multi-byte characters in this field in the request, the returned value might contain corrupted characters. |
All PayPal Express Checkout services |
String (50) |
* missingField_0...N |
Required fields that were missing from the request. These reply fields are included as an aid to software developers only. No attempt should be made to use these fields for end user interaction. See the information about missing and invalid fields in Getting Started with CyberSource Advanced for the Simple Order API. |
All PayPal Express Checkout services |
String (100) |
orderId |
Transaction identifier created by PayPal. |
payPalEcDoPayment Service |
String (255) |
parentTransactionId |
Identifier for the original transaction to which this transaction is related. Field populated for: nAuthorization of an order nCapture of an authorized transaction nCapture of an order nCapture of an order authorization nReauthorization of a transaction nReversal nVoid of an order Format: NNNN-NNNN-NNNN-NNNN |
payPalDoCapture payPalGetTxnDetails |
String (19) |
payer |
Customer’s email address. |
payPalEcGetDetails payPalUpdate payPalGetTxnDetails |
String (127) |
payerBusiness |
Customer’s business name. |
payPalEcGetDetails payPalUpdate payPalGetTxnDetails |
String (127) |
payerCountry |
Country to ship the product to. Use the two-character ISO Standard Country Codes. |
payPalEcGetDetails payPalUpdate payPalGetTxnDetails |
String (2) |
payerFirstname |
Customer’s first name. |
payPalEcGetDetails payPalUpdate payPalGetTxnDetails |
String (25) |
payerId |
Customer’s unique PayPal account identification number. |
payPalEcGetDetails payPalUpdate payPalGetTxnDetails |
String (13) |
payerLastname |
Customer’s last name. |
payPalEcGetDetails payPalUpdate payPalGetTxnDetails |
String (25) |
payerMiddlename |
Customer’s middle name. |
payPalEcGetDetails payPalUpdate payPalGetTxnDetails |
String (25) |
payerPhone |
Customer’s contact telephone number. Field mask for U.S. numbers: Field mask for international numbers: |
payPalEcGetDetails |
String (20) |
payerSalutation |
Customer’s salutation. |
payPalEcGetDetails payPalUpdate payPalGetTxnDetails |
String (20) |
payerStatus |
Customer’s status. Possible values: nverified nunverified |
payPalEcGetDetails payPalUpdate payPalGetTxnDetails |
String (10) |
payerSuffix |
Customer’s suffix. |
payPalEcGetDetails payPalUpdate payPalGetTxnDetails |
String (12) |
paymentType |
Indicates whether the payment is instant or delayed. Possible values: nnone necheck ninstant |
payPalEcDoPayment payPalEcOrderSetup |
String (7) |
paypalAmount |
Final amount charged. |
payPalEcDoPayment payPalEcOrderSetup Service payPalAuthorization Service payPalDoRef |
String (15) |
paypalBilling |
Indicates if the customer accepted the billing agreement. Possible values: n0: Not accepted n1: Accepted |
payPalEcGetDetails |
String (1) |
paypalBilling |
Custom annotation field. |
payPalUpdate |
String (256) |
paypalBilling |
Description of the goods or services associated with the billing agreement. |
payPalUpdate |
String (127) |
paypalBilling |
Identifier for the billing agreement. |
payPalCreate payPalEcDoPayment payPalUpdate payPalDoRef |
String (256) |
paypalBilling |
Status of the billing agreement. Possible values: nActive: The billing agreement is active. nCanceled: The billing agreement has been cancelled. |
payPalUpdate |
String (8) |
paypalExchangeRate |
Exchange rate if a currency conversion occurred. |
payPalEcDoPayment payPalEcOrderSetup Service payPalDoCapture payPalDoRef payPalGetTxnDetails |
String (17) |
paypalFeeAmount |
PayPal fee charged for the transaction. This value does not exceed the equivalent of 10,000 USD in any currency and does not include a currency symbol. The decimal separator is a period (.) and the optional thousands separator is a comma (,). |
payPalEcDoPayment payPalEcOrderSetup Service payPalDoCapture payPalGetTxnDetails |
String (9) |
paypalFeeRefund |
Amount of PayPal fee refunded if the capture was refunded. This value does not exceed the equivalent of 10,000 USD in any currency and does not include a currency symbol. The decimal separator is a period (.) and the optional thousands separator is a comma (,). |
payPalRefundService |
String (9) |
paypalGrossRefund |
Amount of money refunded to the customer. |
payPalRefundService |
Ask your PayPal representative |
invoiceNumber |
Your invoice or tracking number. |
payPalGetTxnDetails |
String (127) |
paypalNetRefund |
Amount subtracted from PayPal balance of the customer who is getting the refund. |
payPalRefundService |
Ask your PayPal representative |
paypalNote |
Memo or note that the customer entered on the PayPal pages. |
payPalGetTxnDetails |
String (255) |
paypalOrderTime |
Date-time stamp of the payment. Format: YYYY-MM-DDTHH:MM:SSZ Example 2012-08-15T17:23:15Z |
payPalEcDoPayment payPalEcOrderSetup Service payPalDoCapture payPalDoRef payPalGetTxnDetails |
String (20) |
paypalPaymentGross |
Final amount charged including shipping costs and taxes from your PayPal Merchant Profile. This value does not exceed the equivalent of 10,000 USD in any currency and does not include a currency symbol. The decimal separator is a period (.) and the optional thousands separator is a comma (,). |
payPalDoCapture payPalGetTxnDetails |
Ask your PayPal representative |
paypalPaymentStatus |
Status of the transaction. Possible values: nCanceled-Reversal: PayPal canceled the reversal, which happens when you win a dispute and the funds for the reversal are returned to you. nCompleted: PayPal completed the payment and added the funds to your account. nDenied: You denied a payment, which happens only if the payment was pending for the reason indicated in the paypalPendingReason field. nExpired: The authorization expired. nFailed: The payment failed. This event can happen only when the payment is made from your customer’s bank account. nIn-Progress: The transaction has not been completed yet. nNone: No status. nPartially-Refunded: The payment was partially refunded. nPending: The payment is pending for the reason indicated in the paypalPending nProcessed: PayPal accepted the payment. nReasonCode nRefunded: You refunded the payment. nReversed: PayPal reversed the payment for the reason specified in the paypal nVoided: The authorization was voided. |
payPalEcDoPayment payPalEcOrderSetup Service payPalDoCapture payPalDoRef payPalGetTxnDetails |
String (20) |
paypalPaymentType |
Indicates whether the payment is instant or delayed. Possible values: nnone necheck ninstant |
payPalDoCapture payPalDoRef payPalGetTxnDetails |
String (7) |
paypalPendingReason |
Indicates the reason that payment is\ pending. Possible values: naddress: Your customer did not include a confirmed shipping address and your Payment Receiving Preferences are set to manually accept or deny such payments. To change your preferences, go to the Preferences section of your PayPal Profile. nauthorization: The payment has been authorized but not settled. You need to capture the authorized amount. necheck: Payment was made by an eCheck that has not yet cleared. nintl: You have a non-U.S. account and do not have a withdrawal mechanism. You must manually accept or deny this payment in your PayPal Account Overview. nmulti-currency: You do not have a balance in the currency sent, and your Payment Receiving Preferences are not set to automatically convert and accept this payment. You must manually accept or deny this payment in your PayPal Account Overview. nnone: No pending reason. norder: The payment is part of an order that has been authorized but not settled. npaymentreview: The payment is being reviewed by PayPal for possible fraud. nunilateral: The payment was made to an email address that is not registered or confirmed. nverify: Your account is not yet verified. You must verify your account before you can accept this payment. nother: Payment is pending for a reason not listed above. For more information, contact PayPal customer service. |
payPalEcOrderSetup Service payPalDoCapture payPalDoRef payPalGetTxnDetails Note To enable the paypalPendingReason field for payPalDo |
String (14) |
paypalReasonCode |
Indicates the reason for a transaction reversal. Possible values: nbuyer-complaint: Your customer submitted a complaint about the transaction. nchargeback: Your customer initiated a chargeback for this transaction. nguarantee: Your customer triggered a money-back guarantee. nnone: No reason code. nrefund: You gave the customer a refund. nother: A reversal has occurred on this transaction due to a reason not listed above. For more information, contact PayPal customer service. |
payPalEcOrderSetup Service payPalDoRef payPalGetTxnDetails |
String (15) |
paypalReceiptId |
Receipt identification number. Format: NNNN-NNNN-NNNN-NNNN |
payPalDoCapture payPalGetTxnDetails |
String (16) |
paypalSettleAmount |
Amount deposited in your PayPal account after a currency conversion. This value does not exceed the equivalent of 10,000 USD in any currency and does not include a currency symbol. The decimal separator is a period (.) and the optional thousands separator is a comma (,). |
payPalGetTxnDetails |
String (15) |
paypalTaxAmount |
Tax charged on the transaction. This value does not exceed the equivalent of 10,000 USD in any currency and does not include a currency symbol. The decimal separator is a period (.) and the optional thousands separator is a comma (,). |
payPalEcDoPayment payPalEcGetDetails payPalEcOrderSetup Service payPalDoCapture payPalDoRef payPalGetTxnDetails |
String (9) |
paypalToken |
Timestamped token by which you identify to PayPal that you are processing this payment with Express Checkout. You need to save this value to send in future request messages. |
payPalEcSetService payPalEcGetDetails payPalEcDoPayment payPalEcOrderSetup Service |
String (20) |
paypalTransaction |
Type of transaction. Possible values: ncart nexpress-checkout |
payPalEcDoPayment payPalEcOrderSetup Service payPalDoCapture payPalGetTxnDetails |
String (16) |
paypalTransaction Note For PayPalDoRef |
Type of transaction. Possible values: ncart nexpress-checkout |
payPalDoRef |
String (16) |
postalCode |
Postal code in the customer’s billing address. |
payPalEcGetDetails |
String (20) |
protectionEligibility |
Seller protection in force for the transaction. Possible values: nEligible: You are protected by the PayPal Seller Protection Policy for unauthorized payment and item not received. nPartiallyEligible: You are protected by the PayPal Seller Protection Policy for item not received. nIneligible: You are not protected under the PayPal Seller Protection Policy. PayPal offers additional features that are not currently supported by Cybersource. |
payPalAuthorization Service payPalGetTxnDetails |
String (17) |
protectionEligibilityType |
Seller protection in force for the transaction. Possible values: nEligible: You are protected by the PayPal Seller Protection Policy for unauthorized payment and item not received. nItemNotReceivedEligible: You are protected by the PayPal Seller Protection Policy for item not received. nUnauthorizedPaymentEligible: You are protected by the PayPal Seller Protection Policy for unauthorized payment. nIneligible: You are not protected under the PayPal Seller Protection Policy. Note To enable the protectionEligibility |
payPalAuthorization Service payPalGetTxnDetails |
String (32) |
reasonCode |
Numeric value corresponding to the result of the service request. See Reason Codes. |
All PayPal Express Checkout services |
Integer (5) |
* reasonCode |
Numeric value corresponding to the result of the overall request. See Reason Codes. |
All PayPal Express Checkout services |
Integer (5) |
* requestID |
Identifier for the request generated by the client. |
All PayPal Express Checkout services |
String (26) |
* requestToken |
Request token data created by CyberSource for each reply. You need to store the contents of this field so that you can retrieve and send it in follow-on requests. This value is an encoded string that contains no confidential information, such as an account number or card verification number. The string can contain up to 256 characters.
If you request the Authorization and Capture services together, the request token is for the capture reply only. See the information about request tokens in Getting Started with CyberSource Advanced for the Simple Order API. |
All PayPal Express Checkout services |
String (256) |
shipToAddress1 |
First line of the shipping address.
|
payPalEcGetDetails payPalGetTxnDetails |
String (100) |
shipToAddress2 |
Second line of the shipping address.
|
payPalEcGetDetails payPalGetTxnDetails |
String (100) |
shipToCity |
City of the shipping address.
|
payPalEcGetDetails payPalGetTxnDetails |
String (40) |
shipToCountry |
Country of the shipping address. Use the two-character ISO Standard Country Codes.
|
payPalEcGetDetails payPalGetTxnDetails |
String (2) |
shipToName |
Name of the recipient. |
payPalGetTxnDetails |
String (32) |
shipToPhone |
Phone number for the shipping address.
|
payPalGetTxnDetails |
String (20) |
shipToState |
State or province of the shipping address. Use the State, Province, and Territory Codes for the United States and Canada.
|
payPalEcGetDetails payPalGetTxnDetails |
String (40) |
shipToZip |
Postal code for the shipping address. Consists of 5 to 9 digits. |
payPalEcGetDetails payPalGetTxnDetails |
String (20) |
state |
Abbreviation for the state or province in the customer’s billing address. |
payPalEcGetDetails |
String (40) |
street1 |
First line of the street address in the customer’s billing address. |
payPalEcGetDetails |
String (100) |
street2 |
Second line of the street address in the customer’s billing address. |
payPalEcGetDetails |
String (100) |
transactionId |
Unique PayPal identifier for the transaction. |
payPalEcDoPayment payPalEcOrderSetup payPalAuthorization payPalDoCapture payPalRefundService payPalDoRef payPalGetTxnDetails |
String (17) |
Transaction Search Reply Fields
The payPalTransactionSearchService service returns information about transactions, up to a maximum of 100 transactions. The transactions are referred to as transaction_0, transaction_1, transaction_2, and so on.
|
For the transaction search reply fields, the field name that you use in your code must include a preface followed by an underscore ( _ ). The preface to use is payPalTransactionSearchReply. For example, the Transaction Search service returns the first transaction’s currency in payPalTransactionSearch |
Field |
Description |
Returned By |
Data Type & Length |
transaction_#_currency |
Currency code for the transaction. See Currency Codes. |
payPalTransaction |
String (3) |
transaction_#_customer |
Customer’s name as displayed on the PayPal web pages.
|
payPalTransaction |
String
|
transaction_#_grandTotal |
Total transaction amount. |
payPalTransaction |
String (15) |
transaction_#_paypalFee |
Fee that PayPal charged for the transaction. |
payPalTransaction |
Decimal
|
transaction_#_paypalNet |
Net amount of the transaction. |
payPalTransaction |
Decimal
|
transaction_#_paypalPayerOr |
If the payment amount is positive, this field is the email address of the payment recipient (the “payee”). If the payment is negative, this field is the email address of the customer. |
payPalTransaction |
String (127)
|
transaction_#_paypalPayment |
Possible values: nDenied: You denied the payment. You can deny a payment only if the payment was pending. nPending: The payment is pending. To find out why the payment is pending, request the ics_paypal_get_txn_details service and look at the value for the paypal_pending_reason field in the reply message. nProcessing: The payment is being processed. nReversed: The payment was reversed as the result of a chargeback or other type of reversal. The funds were removed from your account balance and returned to the buyer. nSuccess: The payment was completed and the funds were successfully added to your account balance. |
payPalTransaction |
String (20) |
transaction_#_transactionID |
Unique PayPal identifier for the transaction. |
payPalTransaction |
String (17) |
transaction_#_transaction |
Date and time when PayPal processed the transaction. This value is in UTC/GMT. Format: YYYY-MM-DDTHH:MM:SSZ Example 2012-09-12T17:23:15Z |
payPalTransaction |
String (20) |
transaction_#_transaction |
Time zone for the transaction_#_paypal_transaction_time value. This value is always GMT. |
payPalTransaction |
String (3) |
transaction_#_transaction |
Possible values: nCurrency Conversion (credit) nCurrency Conversion (debit) nPayment nRecurring Payment nTemporary Hold nTransfer nDonation |
payPalTransaction |
String (16) |