![]() |
VOOZH | about |
The CData Cmdlets Module for PayPal is a standard PowerShell module offering straightforward integration with PayPal. Below, you will find examples of using our PayPal Cmdlets with native PowerShell cmdlets.
The provider surfaces tables from two PayPal APIs. The APIs use different authentication methods.
See the "Getting Started" chapter of the help documentation for a guide to obtaining the necessary API credentials.
To select the API you want to work with, you can set the Schema property to REST or SOAP. By default the SOAP schema will be used.
For testing purposes you can set UseSandbox to true and use sandbox credentials.
$conn = Connect-PayPal -Schema "$Schema" -Username "$Username" -Password "$Password" -Signature "$Signature" -InitiateOAuth "$InitiateOAuth"
Follow the steps below to retrieve data from the Transactions table and pipe the result into to a CSV file:
Select-PayPal -Connection $conn -Table Transactions | Select -Property * -ExcludeProperty Connection,Table,Columns | Export-Csv -Path c:\myTransactionsData.csv -NoTypeInformation
You will notice that we piped the results from Select-PayPal into a Select-Object cmdlet and excluded some properties before piping them into an Export-Csv cmdlet. We do this because the CData Cmdlets append Connection, Table, and Columns information onto each "row" in the result set, and we do not necessarily want that information in our CSV file.
The Connection, Table, and Columns are appended to the results in order to facilitate piping results from one of the CData Cmdlets directly into another one.Download a free trial of the PayPal Cmdlets to get started:
Download NowLearn more:
👁 PayPal IconAn easy-to-use set of PowerShell Cmdlets offering real-time access to PayPal data. The Cmdlets allow users to easily query live data - just like working with SQL server.