Table of Contents Previous Next Index

Back-Office Administration

Back-Office Administration
This section gives you examples of the following functions:
l
l
l
l
Capturing, Authorizing, Voiding, and Reauthorizing
There are four APIs related to authorization and capture:
l
l
l
l
Making a Single Capture Using DoCapture
To capture only once, set the authorization identification number and the amount on DoCapture.
IMPORTANT:
Capturing only once is default. To be explicit, you can set COMPLETETYPE=Complete.

COMPLETETYPE=Complete closes all outstanding authorizations for the order. You can not make anymore captures.
[requiredSecurityParameters]&METHOD=DoCapture&AUTHORIZATIONID=01987219673867
&AMT=99.12&COMPLETETYPE=Complete
[successResponseFields]&AUTHORIZATIONID=01987219673867
&TRANSACTIONID=7JZ9679864YA2699519&PARENTTRANSACTIONID=01987219673867
Making Multiple Partial Captures Using DoCapture
You can capture a partial amount of an authorization by setting COMPLETETYPE=NotComplete
On the final capture, set COMPLETETYPE=Complete or do not specify COMPLETETYPE.
This example shows three captures:
l
The first two are partial captures. COMPLETETYPE is set to NotComplete
l
First Partial Capture Request
[requiredSecurityParameters]&METHOD=DoCapture&AUTHORIZATIONID=4EL6476506322203
&AMT=112.00&COMPLETETYPE=NotComplete
[successResponseFields]&AUTHORIZATIONID=4EL6476506322203
&TRANSACTIONID=4Y117666R06578920&PARENTTRANSACTIONID=4EL6476506322203
Second Partial Capture Request
[requiredSecurityParameters]&METHOD=DoCapture&AUTHORIZATIONID=4EL6476506322203
&AMT=103.12&COMPLETETYPE=NotComplete
[successResponseFields]&AUTHORIZATIONID=4EL6476506322203
&TRANSACTIONID=7JY48864YA2699519&PARENTTRANSACTIONID=4EL6476506322203
[requiredSecurityParameters]&METHOD=DoCapture&AUTHORIZATIONID=4EL6476506322203
&AMT=103.12&COMPLETETYPE=Complete
[successResponseFields]&AUTHORIZATIONID=4EL6476506322203
&TRANSACTIONID=7JZ89864YA2699519&PARENTTRANSACTIONID=4EL6476506322203
&RECEIPTID=5151-0525-2028-5336&TRANSACTIONTYPE=webaccept
&PAYMENTTYPE=instant&ORDERTIME=2006-08-15T17:31:38Z&AMT=90.80
&CURRENCYCODE=USD&FEEAMT=3.29&TAXAMT=0.00&PAYMENTSTATUS=Completed
&PENDINGREASON=None&REASONCODE=None
Including an Invoice Number and Note on the Capture Using DoCapture
Whether the capture is for the full or a partial amount, you can include a note about the capture and your own invoice or other identification number.
[requiredSecurityParameters]&METHOD=DoCapture&AUTHORIZATIONID=4EL6476506322203
&COMPLETETYPE=Complete&AMT=304.92&INVNUM=H091234&NOTE=UPS+trk#+b86283978
[successResponseFields]&AUTHORIZATIONID=4EL6476506322203
&TRANSACTIONID=7JZ89864YA2694419&PARENTTRANSACTIONID=4EL6476506322203
&RECEIPTID=5151-0525-2028-5336&TRANSACTIONTYPE=webaccept
&PAYMENTTYPE=instant&ORDERTIME=2006-08-15T17:31:38Z&AMT=304.92
&CURRENCYCODE=USD&FEEAMT=3.29&TAXAMT=0.00&PAYMENTSTATUS=Completed
&PENDINGREASON=None&REASONCODE=None
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.
Note:
If you do not have the transaction ID for the refund, you can credit the customer’s account without it using the DoNonReferencedCredit API. You must be approved by PayPal to use the DoNonReferencedCredit API. See your PayPal Account Manager for more information.
Full Refund
IMPORTANT:
[requiredSecurityParameters]&METHOD=RefundTransaction&
[successResponseFields]&REFUNDTRANSACTIONID=4RP55200GJ177180N
&FEEREFUNDAMT=4.01&GROSSREFUNDAMT=127.87&NETREFUNDAMT=123.86
Partial Refunds
To refund a partial amount, set REFUNDTYPE to Partial and set the AMT.
[requiredSecurityParameters]&METHOD=RefundTransaction
&TRANSACTIONID=9CX07910UV614511L&REFUNDTYPE=Partial&AMT=12.95
[successResponseFields]&REFUNDTRANSACTIONID=1H0011898K637700R
&FEEREFUNDAMT=0.38&GROSSREFUNDAMT=12.95&NETREFUNDAMT=12.57
Including a Note with the Refund
Whether the refund is full or partial, you can also include a note about the refund.
[requiredSecurityParameters]&METHOD=RefundTransaction&
[successResponseFields]&REFUNDTRANSACTIONID=1H0011898K637700R
Searching for Transactions Using TransactionSearch
To find all transactions that occurred on a particular date, use TransactionSearch and set the STARTDATE field to the date you desire. The date must be in UTC/GMT format
.
[requiredSecurityParameters]&METHOD=TransactionSearch
&STARTDATE=2006-08-15T17:00:00Z
[successResponseFields]&L_TIMESTAMP0=2006-08-18T05:58:41Z&
L_TIMESTAMP1=2006-08-18T05:56:20Z&L_TIMEZONE1=GMT&L_TYPE1=Payment&
L_TIMESTAMP2=2006-08-18T05:53:22Z&L_TIMEZONE2=GMT&L_TYPE2=Payment
L_TIMESTAMP3=2006-08-18T05:38:04Z&L_TIMEZONE3=GMT
L_TIMESTAMP4=2006-08-17T03:02:44Z&L_TIMEZONE4=GMT&L_TYPE4=Payment&
L_NAME4=Pettibone+Smythe‑Jones&L_TRANSACTIONID4=8G40321568512733L&
TransactionSearch returns a multi-valued array of all transactions that match the search criteria. Each transaction begins with its date: L_TIMESTAMPn, where n starts with 0 and increments by one for each transaction.
Viewing Details of a Single Transaction Using GetTransactionDetails
To view all details about a single transaction, use GetTransactionDetails.
[requiredSecurityParameters]&METHOD=GetTransactionDetails
&TRANSACTIONID=3B288546P5019992D
[successResponseFields]&RECEIVERBUSINESS=Jims+Hardware