SetExpressCheckout API Operation (SOAP)
Last updated: Sept 19th, 3:08am
Initiates an Express Checkout transaction.
SetExpressCheckout Request Message
SetExpressCheckout Request Fields
Field | Description |
---|---|
|
(Optional) A timestamped token that indicates Express Checkout processing for the current payment. This token is typically returned in the Character length and limitations: 20 single-byte characters |
|
(Optional) The expected maximum total amount of the complete order, including shipping cost and tax charges. If the transaction includes one or more one-time purchases, this field is ignored. For recurring payments, you should pass the expected average transaction amount (default 25.00). PayPal uses this value to validate the buyer's funding source. 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 ( |
|
(Required) URL to which the buyer's browser is returned after choosing to pay with PayPal. For digital goods, you must add JavaScript to this page to close the in-context experience. Character length and limitations: 2048 single-byte characters |
|
(Required) URL to which the buyer is returned if the buyer does not approve the use of PayPal to pay you. For digital goods, you must add JavaScript to this page to close the in-context experience. Character length and limitations: 2048 single-byte characters |
|
(Optional) URL to which the callback request from PayPal is sent. It must start with HTTPS for production integration. It can start with HTTPS or HTTP for sandbox testing. Character length and limitations: 1024 single-byte characters This field is available since version 53.0. |
|
(Optional) An override for you to request more or less time to be able to process the callback request and respond. The acceptable range for the override is Character length and limitations: An integer between |
|
Determines whether PayPal displays shipping address fields on the PayPal pages. For digital goods, this field is required, and you must set it to
Character length and limitations: 4 single-byte numeric characters |
|
Flat rate shipping options. This field is required if you are specifying the Callback URL. |
|
(Required) Information about the payment. |
|
(Optional) Determines whether or not the PayPal pages should display the shipping address set by you in this SetExpressCheckout request, not the shipping address on file with PayPal for this buyer. Displaying the PayPal street address on file does not allow the buyer to edit that address. Value is:
Character length and limitations: 1 single-byte numeric character |
|
(Optional) Locale of pages displayed by PayPal during Express Checkout. It is either a two-letter country code or five-character locale code supported by PayPal. Character length and limitations: A two-letter country code or five-character locale code supported by PayPal. |
cpp-logo-image |
(Optional) A URL to your logo image. Use a valid graphics format, such as Character length and limit: 127 single-byte alphanumeric characters |
|
(Optional) Email address of the buyer as entered during checkout. PayPal uses this value to pre-fill the PayPal membership signup portion on the PayPal pages. Character length and limitations: 127 single-byte alphanumeric characters |
|
(Required in the US. By default, turns off guest checkout in the US. Optional in other countries.)
|
|
(Optional) Type of PayPal page to display. Value is:
|
|
(Optional) Type of channel. Value is:
|
|
(Optional) Type declaration for the label to be displayed in MiniCart for UX. Value is:
|
|
(Optional) The URL on the merchant site to redirect to after a successful giropay payment. |
|
(Optional) The URL on the merchant site to redirect to after a successful giropay payment. |
|
(Optional) The URL on the merchant site to transfer to after a bank transfer payment. |
|
(Optional) Billing agreement details. |
|
(Optional) Enhanced data for different industry segments. This field is for eBay use only. |
|
(Optional) List of other payment methods with which the buyer can pay. |
|
(Optional) Details about the buyer's account. |
|
(Optional) A label that overrides the business name in the PayPal account on the PayPal hosted checkout pages. Character length and limitations: 127 single-byte alphanumeric characters |
|
(Optional) Funding source preferences. |
PaymentReason |
Indicates the type of transaction. Value is:
|
AddressType Fields
Field | Description |
---|---|
|
Person's name associated with this shipping address. It is required if using a shipping address. Character length and limitations: 128 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. 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 and may be required for other countries. 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
When implementing parallel payments, you can create up to 10 sets of payment details type parameter fields, each representing one payment you are hosting on your marketplace.
Field | Description |
---|---|
|
(Required) 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 sub-total 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 to 0, purchase-specific fields are ignored. When multiple payments are passed in one transaction, all of the payments must have the same currency code. 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 ( |
|
Sum of cost of all items in this order. For digital goods, this field is required. 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 a 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 (
|
|
(Optional) Indicates whether insurance is available as an option the buyer can choose on the PayPal Review page. Is one of the following values:
|
|
(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 ( |
|
(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) 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 to which the order is shipped. |
|
(Optional) The value 1 indicates that this payment is associated with multiple shipping addresses. Character length and limitations: Four single-byte numeric characters. |
|
(Optional) Details about each individual item included in the order. |
|
(Optional) Enhanced Data section to accept channel-specific data (eBay). |
|
(Optional) Address of the fulfillment center. |
PaymentCategoryType |
(Optional) Category of a payment. Value is: |
|
(Optional) Note to the merchant. Character length and limitations: 255 single-byte characters |
|
(Optional) Note from merchant to buyer that will be displayed in the PayPal checkout window. Character length and limitations: 165 single-byte characters |
|
(Optional) This is the payment solution for Autopay (used by Express Checkout). Value is:
|
(Conditional) Defines how to obtain payment. Required for parallel payments and must be set to
Character length and limitations: Up to 13 single-byte alphabetic characters |
|
|
A unique identifier of the specific payment request, which is required for parallel payments. Character length and limitations: Up to 127 single-byte characters |
|
(Optional) Type of merchant location. Set this field if the items purchased will not be shipped, such as, BOPIS (buy online pick-up in store) transactions. Value is:
|
|
(Optional) Location ID specified by the merchant for BOPIS (buy online pick-up in store) or PUDO (pick-up drop-off) transactions. Character length and limitations: 50 single-byte alphanumeric characters. |
PaymentDetailsItemType Fields
Field | Description |
---|---|
|
Item name. This field is required when you pass a value for Character length and limitations: 127 single-byte characters This field is introduced in version 53.0. |
|
(Optional) Item description. 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 ( This field is introduced in version 53.0. |
|
(Optional) Item number. Character length and limitations: 127 single-byte characters This field is introduced in version 53.0. |
|
Item quantity. This field is required when you pass a value for Character length and limitations: Any positive integer This field is introduced in version 53.0. |
|
(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 ( |
|
(Optional) Item weight corresponds to the weight of the item. You can pass this data to the shipping carrier as is without having to make an additional database query. Character length and limitations: Any positive integer |
|
(Optional) Item length corresponds to the length of the item. You can pass this data to the shipping carrier as is without having to make an additional database query. Character length and limitations: Any positive integer |
|
(Optional) Item width corresponds to the width of the item. You can pass this data to the shipping carrier as is without having to make an additional database query. Character length and limitations: Any positive integer |
|
(Optional) Item height corresponds to the height of the item. You can pass this data to the shipping carrier as is without having to make an additional database query. Character length and limitations: Any positive integer |
|
(Optional) Information relating to an auction sale on eBay. |
|
(Optional) URL for the item. |
|
(Optional) Enhanced data for each item in the cart. For eBay use only. |
|
Indicates whether an item is digital or physical. For digital goods, this field is required and must be set to
This field is available since version 65.1. |
SellerDetailsType Fields
Field | Description |
---|---|
|
Unique identifier for the merchant. For parallel payments, this field is required and must contain the Payer Id or the email address of the merchant. Character length and limitations: 127 single-byte alphanumeric characters |
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 |
|
(Optional) The unique identifier provided by eBay for this order from the buyer. Character length: 255 single-byte characters |
BuyerDetailsType Fields
Field | Description |
---|---|
|
(Optional) The unique identifier provided by eBay for this buyer. The value may or may not be the same as the username. In the case of eBay, it is different. Character length and limitations: 255 single-byte characters |
|
(Optional) The user name of the user at the platform site. |
|
(Optional) Date when the user registered with the marketplace. Character length and limitations: Date and time are in UTC/GMT format. For example, |
|
Details about the buyer's tax information. This field is required for Brazil and is for Brazil use only. This field is introduced in API version 72.0. |
FundingSourceDetailsType Fields
ShippingOptionsType Fields
Field | Description |
---|---|
|
The default shipping option that appears on the PayPal pages. This field is required if you specify the callback URL. Value is:
For more information, see Set up the callback. |
|
Internal name of the shipping option such as Air, Ground, Expedited, and so forth. This field is required if you specify the Callback URL. Character length and limitations: 50 character-string. |
|
Amount of the flat rate shipping option. This field is required if you specify the Callback URL. 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 ( |
BillingAgreementDetailsType Fields
TaxIdDetailsType Type Fields
Field | Description |
---|---|
|
Buyer's tax ID type. This field is required for Brazil and used for Brazil only. For Brazil use only: The tax ID type is This field is introduced in API version 72.0. |
|
Buyer's tax ID. This field is required for Brazil and used for Brazil only. For Brazil use only: The tax ID is 11 single-byte characters for individuals and 14 single-byte characters for businesses. This field is introduced in API version 72.0. |
SetExpressCheckout Response Message
SetExpressCheckout Response Fields
Field | Description |
---|---|
|
A timestamped token that indicates Express Checkout processing for the current payment. PayPal also appends this token as a GET parameter named Character length and limitations: 20 single-byte characters |
Deprecated Fields
The following fields are deprecated. Replacement fields are noted when available.
Deprecated SetExpressCheckout Request Fields
Deprecated field | Replacement field |
|
---|---|---|
Address |
ShipToAddress |
53 |
|
(No replacement.)
(Optional) Enables the buyer to enter a note to the merchant on the PayPal page during checkout. The note is returned in the
Character length and limitations: 1 single-byte numeric character This field is available since version 53.0. |
September 2016 |
BuyerEmailOptInEnable |
(No replacement.)
(Optional) Enables the buyer to provide their email address on the PayPal pages to be notified of promotions or special events. Is one of the following values:
|
In all versions |
cpp-cart-border-color |
(No replacement.)
(Optional) The HTML hex code for your principal identifying color. PayPal blends your color to white in a gradient fill that borders the cart review area of the PayPal checkout user interface. Character length and limitation: 6 single-byte hexadecimal characters that represent an HTML hex code for a color |
September 2016 |
cpp-header-border-color |
(No replacement.)
(Optional) Sets the border color around the header of the payment page. The border is a 2-pixel perimeter around the header space, which is 750 pixels wide by 90 pixels high. By default, the color is black. Character length and limitations: 6-character HTML hexadecimal ASCII color code. |
53 |
cpp-header-back-color |
(No replacement.)
(Optional) Sets the background color for the header of the payment page. By default, the color is white. Character length and limitations: 6-character HTML hexadecimal ASCII color code. |
53 |
|
(No replacement.)
(Optional) URL for the image you want to appear at the top left of the payment page. The image has a maximum size of 750 pixels wide by 90 pixels high. PayPal recommends that you provide an image that is stored on a secure (https) server. If you do not specify an image, the business name displays. Character length and limitations: 127 single-byte alphanumeric characters |
September 2016 |
|
(No replacement.)
(Optional) Sets the background color for the payment page. By default, the color is white. Character length and limitations: 6-character HTML hexadecimal ASCII color code |
September 2016 |
|
|
53 |
|
(No replacement.)
(Optional) Merchant Customer Service number displayed on the PayPal pages. Character length and limitations: 16 single-byte characters |
September 2016 |
GiftMessageEnable |
(No replacement.)
(Optional) Enables the gift message widget on the PayPal pages. Value is:
|
Sept. 8, 2016 |
GiftReceiptEnable |
(No replacement.)
(Optional) Enable gift receipt widget on the PayPal pages. Value is:
|
Sept. 8, 2016 |
GiftWrapEnable |
(No replacement.)
(Optional) Enable gift wrap widget on the PayPal pages. Value is:
|
Sept. 8, 2016 |
GiftWrapName |
(No replacement.)
(Optional) Label for the gift wrap option such as "Box with ribbon". Character length and limitations: 25 single-byte characters |
Sept. 8, 2016 |
GiftWrapAmount |
(No replacement.)
(Optional) Amount to be charged to the buyer for gift wrapping. 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 ( |
Sept. 8, 2016 |
InvoiceID |
InvoiceID |
53 |
OrderDescription |
OrderDescription |
53 |
OrderTotal |
OrderTotal |
53 |
|
(No replacement.)
(Optional) Name of the Custom Payment Page Style for payment pages associated with this button or link. It corresponds to the HTML variable page_style for customizing payment pages. It is the same name as the Page Style Name you chose to add or edit the page style in your PayPal Account profile. Character length and limitations: 30 single-byte alphabetic characters |
September 2016 |
PaymentAction |
PaymentAction |
53 |
|
(No replacement.)
Indicates whether or not you require the buyer's shipping address on file with PayPal be a confirmed address. For digital goods, this field is required, and you must set it to 0. Value is:
Character length and limitations: 1 single-byte numeric character |
September 2016 |
SurveyQuestion |
(No replacement.)
(Optional) Text for the survey question on the PayPal pages. If the survey question is present, at least 2 survey answer options must be present. Character length and limitations: 50 single-byte characters |
Sept. 8, 2016 |
SurveyEnable |
(No replacement.)
(Optional) Enables survey functionality. Value is:
|
Sept. 8, 2016 |
SurveyChoice |
(No replacement.)
(Optional) Possible options for the survey answers on the PayPal pages. Answers are displayed only if a valid survey question is present. Character length and limitations: 15 single-byte characters |
Sept. 8, 2016 |