Académique Documents
Professionnel Documents
Culture Documents
2009 PayPal, Inc. All rights reserved. PayPal is a registered trademark of PayPal, Inc. The PayPal logo is a trademark of PayPal, Inc. Other trademarks and brands are the property of their respective owners. The information in this document belongs to PayPal, Inc. It may not be used, reproduced or disclosed without the written approval of PayPal, Inc. Copyright PayPal. All rights reserved. PayPal (Europe) S. r.l. et Cie., S.C.A., Socit en Commandite par Actions. Registered office: 22-24 Boulevard Royal, L-2449, Luxembourg, R.C.S. Luxembourg B 118 349. Consumer advisory: The PayPal payment service is regarded as a stored value facility under Singapore law. As such, it does not require the approval of the Monetary Authority of Singapore. You are advised to read the terms and conditions carefully. Notice of non-liability: PayPal, Inc. is providing the information in this document to you AS-IS with all faults. PayPal, Inc. makes no warranties of any kind (whether express, implied or statutory) with respect to the information contained herein. PayPal, Inc. assumes no liability for damages (whether direct or indirect), caused by errors or omissions, or resulting from the use of this document or the information contained in this document or resulting from the application or use of the product or service described herein. PayPal, Inc. reserves the right to make changes to any information herein without further notice.
Contents
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
This Document . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Intended Audience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Revision History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Chapter 1
Services Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
SOAP Service Endpoints. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 SOAP Implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 SOAP Message Style: doc-literal . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 SOAP Request Envelope . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Request Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 Response Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 Error Responses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 CorrelationID for Reporting Problems to PayPal . . . . . . . . . . . . . . . . . . . . 20 PayPal SOAP API Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 Character Encoding, Data Types and Formats, and Currencies . . . . . . . . . . . . 21
Chapter 2
AddressVerify API . . . . . . . . . . . . . . . . . . . . . . 23
Chapter 3
DoCapture API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
16 June 2009
Contents
DoAuthorization Response . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 DoReauthorization API. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 DoReauthorization Request . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 DoReauthorization Response . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 DoVoid API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 DoVoid Request . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 DoVoid Response . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Chapter 4
DoDirectPayment API . . . . . . . . . . . . . . . . . . . . 41
Chapter 5
DoNonReferencedCredit API . . . . . . . . . . . . . . . . 59
Chapter 6
SetExpressCheckout API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
GetExpressCheckoutDetails API. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 GetExpressCheckoutDetails Request . . . . . . . . . . . . . . . . . . . . . . . . . . 83 GetExpressCheckoutDetails Response . . . . . . . . . . . . . . . . . . . . . . . . . 84 DoExpressCheckoutPayment API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 DoExpressCheckoutPayment Request . . . . . . . . . . . . . . . . . . . . . . . . . 95 DoExpressCheckoutPayment Response . . . . . . . . . . . . . . . . . . . . . . . .103
Chapter 7
Chapter 8
Chapter 9
GetTransactionDetails API
. . . . . . . . . . . . . . . . 115
16 June 2009
Contents
Chapter 10
Chapter 11
Chapter 12
GetRecurringPaymentsProfileDetails API . . . . . . . . . . . . . . . . . . . . . . . . . .148 GetRecurringPaymentsProfileDetails Request . . . . . . . . . . . . . . . . . . . . .149 GetRecurringPaymentsProfileDetails Response . . . . . . . . . . . . . . . . . . . .150 ManageRecurringPaymentsProfileStatus API . . . . . . . . . . . . . . . . . . . . . . . .159 ManageRecurringPaymentsProfileStatus Request . . . . . . . . . . . . . . . . . . .160 ManageRecurringPaymentsProfileStatus Response . . . . . . . . . . . . . . . . . .160 BillOutstandingAmount API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .161 BillOutstandingAmount Request . . . . . . . . . . . . . . . . . . . . . . . . . . . . .162 BillOutstandingAmount Response . . . . . . . . . . . . . . . . . . . . . . . . . . . .162 UpdateRecurringPaymentsProfile API . . . . . . . . . . . . . . . . . . . . . . . . . . . .163 UpdateRecurringPaymentsProfile Request . . . . . . . . . . . . . . . . . . . . . . .164 UpdateRecurringPaymentsProfile Response . . . . . . . . . . . . . . . . . . . . . .173 SetCustomerBillingAgreement API . . . . . . . . . . . . . . . . . . . . . . . . . . . . .173 SetCustomerBillingAgreement Request . . . . . . . . . . . . . . . . . . . . . . . . .174 SetCustomerBillingAgreement Response . . . . . . . . . . . . . . . . . . . . . . . .177 GetBillingAgreementCustomerDetails API . . . . . . . . . . . . . . . . . . . . . . . . . .177 GetBillingAgreementCustomerDetails Request . . . . . . . . . . . . . . . . . . . . .178 GetBillingAgreementCustomerDetails Response . . . . . . . . . . . . . . . . . . . .178 BAUpdate API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .181 BAUpdate Request . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .182 BAUpdateResponseDetails Response . . . . . . . . . . . . . . . . . . . . . . . . .183
16 June 2009
Contents
Chapter 13
Chapter 14
Chapter A
General API Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .218 Validation Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .218 Direct Payment API Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .223 SetExpressCheckout API Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .235 GetExpressCheckoutDetails API Errors . . . . . . . . . . . . . . . . . . . . . . . . . . .245 DoExpressCheckoutPayment API Errors . . . . . . . . . . . . . . . . . . . . . . . . . .247 Authorization and Capture API Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . .253 GetTransactionDetails API Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .257 TransactionSearch API Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .257 RefundTransaction API Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .259 Mass Pay API Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .262 Recurring Payments Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .264 SetCustomerBillingAgreement Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . .271 GetBillingAgreementCustomerDetails Errors . . . . . . . . . . . . . . . . . . . . . . . .273 UpdateBillingAgreement Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .273 DoReferenceTransaction Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .275 AddressVerify API Errors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .281 ManagePendingTransactionStatus API Errors . . . . . . . . . . . . . . . . . . . . . . . .281
Chapter B Chapter C
Country Codes
. . . . . . . . . . . . . . . . . . . . . . 283
16 June 2009
Contents
Chapter D Chapter E
16 June 2009
Contents
16 June 2009
Preface
This Document
This document describes the PayPal SOAP Application Programming Interface (API) and service.
Intended Audience
This document is written for programmers familiar with application programming standards such as the Simple Object Access Protocol (SOAP), the Web Services Description Language (WSDL), and XML Schema Definition (XSD) language.
Revision History
Revision history for SOAP API Developer Reference.
TABLE P.1 Revision History Date 16 June 2009 08 April 2009 26 Nov. 2008 23 Sept. 2008 3 Sept. 2008 June 2008 April 2008 February 2008 Description Updated information for 58.0: added GetPalDetails API and fields for payment review. Updated information for 57.0: Express Checkout Callback API. Updated information for 55.0. Added information about using billing agreements with SetExpressCheckout. Added information about payment review to GetTransactionDetails. Rearranged material, added error codes, and moved some material to the Express Checkout Integration Guide. Added Fraud Management Filters information. Changed recurring payments information. Added that the VERSION parameter must be 50.0 in the API call to use recurring payments
16 June 2009
Revision History TABLE P.1 Revision History Date January 2008 Description