2009

Table Of Contents
Name-Value Pair API Developer Guide 08 April 2009 3
Contents
Preface 9
This Document . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Intended Audience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Revision History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Chapter 1 PayPal NVP API Overview . . . . . . . . . . . . . . . . . . 11
Introducing the PayPal NVP API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Integrating with the PayPal API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Basic Steps. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Create a Web Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Get API Credentials . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Create and Post the Request . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Interpret the Response . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Taking Your Application Live . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Set Up a PayPal Business Account . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Set Up API Credentials . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Modify Your Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Technical Details . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Request-Response Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Request Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Response Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Posting Using HTTPS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
API Servers for API Signature Security . . . . . . . . . . . . . . . . . . . . . . . . . 18
API Servers for API Certificate Security . . . . . . . . . . . . . . . . . . . . . . . . . 18
Chapter 2 Authorization and Capture API Operation Reference . . . .19
DoCapture API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
DoCapture Request . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
DoCapture Response . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
DoAuthorization API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
DoAuthorization Request . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
DoAuthorization Response . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
DoReauthorization API. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24