2007
Table Of Contents
- Name-Value Pair API Reference for Germany
- Preface
- Overview
- Accepting PayPal in Express Checkout
- Basic Checkout with PayPal
- Support giropay and electronic funds transfer
- Controlling the Shipping Address Using SetExpressCheckout
- Changing the Language on the PayPal Login Page Using SetExpressCheckout
- Changing the Logo on the PayPal Pages Using SetExpressCheckout
- Form-Filling Your Payment Review Page Using GetExpressCheckoutDetails
- Making a Sale Using DoExpressCheckoutPayment
- Changing the URL for IPN Using DoExpressCheckoutPayment
- Including Line Item Details Using DoExpressCheckoutPayment
- Including Subtotals Using DoExpressCheckoutPayment
- Updating Order Details Using DoExpressCheckoutPayment
- Updating the Shipping Address Using DoExpressCheckoutPayment
- Back-Office Administration
- NVP API Method and Field Reference
- Error Message Reference
- NVP API Web Samples
- The Java SDK
- The ASP.NET SDK
- Country Codes
- Index
Name-Value Pair API Developer Guide and Reference April 2007 31
3
Back-Office Administration
This section gives you examples of the following functions:
z “Refunding Using RefundTransaction” on page 31
z “Searching for Transactions Using TransactionSearch” on page 32
z “Viewing Details of a Single Transaction Using GetTransactionDetails” on page 33
Refunding Using RefundTransaction
With RefundTransaction, you can refund the full amount or a partial amount of a
transaction. Specify the original transaction ID and the refund type: Full or Partial.
Full Refund
IMPORTANT: If you refund the full amount, do not set the AMT field.
Partial Refunds
To refund a partial amount, set REFUNDTYPE to Partial and set the AMT.
EXAMPLE 3.1 Refunding the Full Amount of a Transaction
Request
[requiredSecurityParameters]
&METHOD=RefundTransaction&TRANSACTIONID=01945456967386
7
&REFUNDTYPE=Full
Response
[successResponseFields]&REFUNDTRANSACTIONID=4RP55200GJ177180N
&FEEREFUNDAMT=4.01&GROSSREFUNDAMT=127.87&NETREFUNDAMT=123.86
EXAMPLE 3.2 Refunding A Partial Amount
Request
[requiredSecurityParameters]
&METHOD=RefundTransaction
&TRANSACTIONID=9CX07910UV614511L&REFUNDTYPE=Partial&AMT=12.95
Response
[successResponseFields]
&REFUNDTRANSACTIONID=1H0011898K637700R
&FEEREFUNDAMT=0.38&GROSSREFUNDAMT=12.95&NETREFUNDAMT=12.57