Skip to Content

PayPal Connection Details

Introduction

Connector Version

This documentation is based on version 25.0.9368 of the connector.

Get Started

PayPal Version Support

The connector uses the PayPal SOAP API to surface views of transactions and the REST API to surface all other views.

Establish a Connection

Connect to PayPal

The provider surfaces tables from two PayPal APIs. Each API uses a different authentication method.

  • The SOAP API requires Signature API credentials. To authenticate to the SOAP API, you must set the AuthScheme to Basic, and set the Username, Password, and Signature properties. These API credentials are generated when you enable the SOAP API.
  • The REST API uses the OAuth authentication standard. To authenticate to the REST API, you must set the AuthScheme to OAuth, and set the OAuthClientId, and OAuthClientSecret properties.

To specify your preferred API, set the Schema property to either REST or SOAP. If no Schema is set, PayPal uses the SOAP schema.

For testing purposes, set UseSandbox to true and use Sandbox credentials.

SOAP API

DEPRECATED: The SOAP API is DEPRECATED. Use the REST API instead for better access to resources.

You can use the SOAP API to retrieve all transactions for the current account. The SOAP API uses the Signature API-credentials type, which has three credential values:

  • API Username
  • API Password
  • API Signature

To generate the API credentials:

  1. Log in to your PayPal business account and select Profile > My Selling Tools.
  2. In the Selling Online section, click Update for the API Access item.
  3. To generate the API signature, click Request API Credentials on the API Access page.
  4. Select Request API Signature and click Agree and Submit to generate the API signature.

After setting the following connection properties, you are ready to connect:

REST API

After setting the following connection properties, you are ready to connect:

When you connect, the connector completes the OAuth process.

  1. Exchanges the OAuthClientId and OAuthClientSecret for the OAuthAccessToken.
  2. Uses the access token to request data.

PayPal currently supports only client credentials flow of OAuth authentication for use with the REST API. To enable this authentication, you must set AuthScheme to OAuth, and you must create a custom OAuth application.

The following subsections describe how to authenticate to PayPal from two common authentication flows. For information about how to create a custom OAuth application, see Creating a Custom OAuth Application. For a complete list of connection string properties available in PayPal, see Connection.

Desktop Applications

To authenticate with the credentials for a custom OAuth application, you must get and refresh the OAuth access token. After you do that, you are ready to connect.

Get and refresh the OAuth access token:

When you initiate connection using client credentials OAuth flow by providing your clientId and clientSecret, the connector obtains an access token from PayPal and uses it to request data.

When you are finished, configure the driver to automatically refresh the access token on the headless machine.

Create a Custom OAuth Application

Create a Custom OAuth Application

A custom OAuth application is required to authenticate on Desktop applications, Web applications, or Headless machines while using the REST API.

To register an OAuth application and obtain the OAuth client credentials, the Client Id, and Client Secret:

  1. Log in to your PayPal developer account.
  2. Navigate to My Apps & Credentials (under Dashboard).
  3. Scroll to the REST API apps section.
  4. Click Create App.
  5. Specify a name for your application.
  6. From the drop down list, select the sandbox account from which data will be retrieved.

PayPal generates a set of sandbox and live OAuth keys for the application. The sandbox credentials display after the application has been created. To see the live credentials, select the Live option.

The sandbox credentials are used to get data only for the sandbox account you selected while creating the application. The Live credentials are used to get data only for the developer account that was used to create this application.

Important Notes

Configuration Files and Their Paths

  • All references to adding configuration files and their paths refer to files and locations on the Jitterbit agent where the connector is installed. These paths are to be adjusted as appropriate depending on the agent and the operating system. If multiple agents are used in an agent group, identical files will be required on each agent.

Advanced Features

This section details a selection of advanced features of the PayPal connector.

User Defined Views

The connector supports the use of user defined views, virtual tables whose contents are decided by a pre-configured user defined query. These views are useful when you cannot directly control queries being issued to the drivers. For an overview of creating and configuring custom views, see User Defined Views.

SSL Configuration

Use SSL Configuration to adjust how connector handles TLS/SSL certificate negotiations. You can choose from various certificate formats. For further information, see the SSLServerCert property under "Connection String Options".

Proxy

To configure the connector using private agent proxy settings, select the Use Proxy Settings checkbox on the connection configuration screen.

Query Processing

The connector offloads as much of the SELECT statement processing as possible to PayPal and then processes the rest of the query in memory (client-side).

For further information, see Query Processing.

Log

For an overview of configuration settings that can be used to refine logging, see Logging. Only two connection properties are required for basic logging, but there are numerous features that support more refined logging, which enables you to use the LogModules connection property to specify subsets of information to be logged.

User Defined Views

The PayPal connector supports the use of user defined views: user-defined virtual tables whose contents are decided by a preconfigured query. User defined views are useful in situations where you cannot directly control the query being issued to the driver; for example, when using the driver from Jitterbit.

Use a user defined view to define predicates that are always applied. If you specify additional predicates in the query to the view, they are combined with the query already defined as part of the view.

There are two ways to create user defined views:

  • Create a JSON-formatted configuration file defining the views you want.
  • DDL statements.

Define Views Using a Configuration File

User defined views are defined in a JSON-formatted configuration file called UserDefinedViews.json. The connector automatically detects the views specified in this file.

You can also have multiple view definitions and control them using the UserDefinedViews connection property. When you use this property, only the specified views are seen by the connector.

This user defined view configuration file is formatted so that each root element defines the name of a view, and includes a child element, called query, which contains the custom SQL query for the view.

For example:

{
    "MyView": {
        "query": "SELECT * FROM Payments WHERE MyColumn = 'value'"
    },
    "MyView2": {
        "query": "SELECT * FROM MyTable WHERE Id IN (1,2,3)"
    }
}

Use the UserDefinedViews connection property to specify the location of your JSON configuration file. For example:

"UserDefinedViews", "C:\Users\yourusername\Desktop\tmp\UserDefinedViews.json"

Define Views Using DDL Statements

The connector is also capable of creating and altering the schema via DDL Statements such as CREATE LOCAL VIEW, ALTER LOCAL VIEW, and DROP LOCAL VIEW.

Create a View

To create a new view using DDL statements, provide the view name and query as follows:

CREATE LOCAL VIEW [MyViewName] AS SELECT * FROM Customers LIMIT 20;

If no JSON file exists, the above code creates one. The view is then created in the JSON configuration file and is now discoverable. The JSON file location is specified by the UserDefinedViews connection property.

Alter a View

To alter an existing view, provide the name of an existing view alongside the new query you would like to use instead:

ALTER LOCAL VIEW [MyViewName] AS SELECT * FROM Customers WHERE TimeModified > '3/1/2020';

The view is then updated in the JSON configuration file.

Drop a View

To drop an existing view, provide the name of an existing schema alongside the new query you would like to use instead.

DROP LOCAL VIEW [MyViewName]

This removes the view from the JSON configuration file. It can no longer be queried.

Schema for User Defined Views

In order to avoid a view's name clashing with an actual entity in the data model, user defined views are exposed in the UserViews schema by default. To change the name of the schema used for UserViews, reset the UserViewsSchemaName property.

Work with User Defined Views

For example, a SQL statement with a user defined view called UserViews.RCustomers only lists customers in Raleigh:

SELECT * FROM Customers WHERE City = 'Raleigh';

An example of a query to the driver:

SELECT * FROM UserViews.RCustomers WHERE Status = 'Active';

Resulting in the effective query to the source:

SELECT * FROM Customers WHERE City = 'Raleigh' AND Status = 'Active';

That is a very simple example of a query to a user defined view that is effectively a combination of the view query and the view definition. It is possible to compose these queries in much more complex patterns. All SQL operations are allowed in both queries and are combined when appropriate.

SSL Configuration

Customize the SSL Configuration

By default, the connector attempts to negotiate TLS with the server. The server certificate is validated against the default system trusted certificate store. You can override how the certificate gets validated using the SSLServerCert connection property.

To specify another certificate, see the SSLServerCert connection property.

Data Model

The PayPal connector models two PayPal APIs as relational databases, the REST API and the SOAP API. Set the Schema property and use the information in each section to select the proper API based on your project needs.

Using the REST API

The REST API is the newer API and is becoming more popular with PayPal users. However, the REST API lists only the transactions and actions made via the REST API and excludes the UI and the SOAP API.

See REST Data Model for the available entities in the REST API.

Using the SOAP API

The SOAP (Classic) API has full information on transactions, which includes transactions created from the UI, the REST API, and the SOAP API.

See SOAP Data Model for the available entities in the SOAP API.

REST Data Model

The PayPal connector models the PayPal REST APIs as database views and stored procedures. These are defined in schema files, which are simple, text-based configuration files that make schemas easy to customize.

This section provides the API limitations and requirements for the REST data model.

Views

Views are tables that cannot be modified. Typically, read-only data are shown as views.

Stored Procedures

Stored Procedures are function-like interfaces to PayPal. They can be used to access other functionality in PayPal not surfaced in the Views.

PayPal REST API Limitations

There are some limitations in the PayPal REST API. For example, it provides no way to list all orders/payments, so to query the related views like OrderItems, OrderDetails, Payments you must know the respective ID and specify it.

Views

Views are similar to tables in the way that data is represented; however, views are read-only.

Queries can be executed against a view as if it were a normal table.

PayPal Connector Views
Name Description
AuthorizationDetails Query details about Authorizations.
Balances List all non crypto balances.
CaptureDetails Query details about a captured Payment.
CreditCardDetails Query details about the funding instrument of the payer, such as a Credit Card or a token that represents a Credit Card.
CryptoBalances List all crypto balances.
DisputeDetails PayPal merchants, partners, and external developers can use the PayPal Disputes API to manage disputes.
Disputes PayPal merchants, partners, and external developers can use the PayPal Disputes API to manage disputes.
DisputeTransactions PayPal merchants, partners, and external developers can use the PayPal Disputes API to manage disputes.
Invoices Query Invoices in PayPal.
Notifications Query the list of event types that are subscribed to a Webhook.
OrderDetails Query details about an Order.
OrderItems Get the items in an Order.
PartnerReferrals Shows details by ID for referral data that was shared by the partner or API caller.
Payments Query details about authorized Payments.
PaymentTokens Lists merchant-created templates with associated details.
PaymentTransactions Query Transaction details including the amount and item details.
PayoutDetails Retrieve details about Payouts.
PayoutItems Retrieve payout items from a Payout.
Plans List the Billing Plans.
ProductDetails Retrieve the list of product details.
Products Retrieves the list of products, which are goods and services.
RefundDetails Query details about a specific Refund.
SaleDetails Query details about a Sale Transaction.
Subscriptions Get billing and subscription details.
SubscriptionTransactions Lists transactions for a subscription.
Templates Lists merchant-created templates with associated details.
TransactionReports Lists transaction reports.
TransactionReportsCartInfoItemDetails List Cart Info of Transaction Reports.
TransactionReportsIncentiveDetails List Incentive Details of Transaction Reports.
UserInfo Shows OpenID Connect user profile information for standard claims.
Users Lists users.
Webhooks Query the list of Webhooks.
AuthorizationDetails

Query details about Authorizations.

Table Specific Information

Select

The only filter supported by the PayPal API is Id, which is required. The connector processes other filters client side within the connector.

For example, the following queries are processed server side and retrieve details for a specific Authorization.

SELECT * FROM AuthorizationDetails WHERE Id = '70K15739YA1955155'

SELECT * FROM AuthorizationDetails WHERE ID IN ('70K15739YA1955155', '70K15739YA1955156')
Columns
Name Type References Description
Id [KEY] String The PayPal-generated ID for the authorized payment.
Status String The status for the authorized payment. The allowed values are CREATED, CAPTURED, DENIED, PARTIALLY_CAPTURED, VOIDED, PENDING.
StatusDetails String The details of the authorized order pending status. The allowed values are PENDING_REVIEW, DECLINED_BY_RISK_FRAUD_FILTERS.
AmountTotal Decimal The amount for this authorized payment.
AmountCurrency String The currency of the amount.
InvoiceId String The API caller-provided external invoice number for this order. Appears in both the payer's transaction history and the emails that the payer receives.
CustomId String The API caller-provided external ID. Used to reconcile API caller-initiated transactions with PayPal transactions. Appears in transaction and settlement reports.
SellerProtectionStatus String The level of protection offered as defined by PayPal Seller Protection for Merchants. The allowed values are ELIGIBLE, PARTIALLY_ELIGIBLE, NOT_ELIGIBLE.
ExpirationTime Datetime The amount being charged for the handling fee. Only supported when the payment method is set to paypal.
CreateTime Datetime The time of authorization.
UpdateTime Datetime The time that the resource was last updated.
Balances

List all non crypto balances.

Table Specific Information

Select

This view returns a list of disputes for the authenticated user.

The following filters are supported by the PayPal API:

  • Currency
  • AsOfTime

The filters only support the = operator.

The connector processes other filters client side within the connector.

For example, the following queries are processed server side.

  • The following query retrieves details for a specific currency:

    SELECT * FROM Balances WHERE Currency = 'USD'
    
  • The following query returns details for Balance records created before the specified date time:

    SELECT * FROM Balances WHERE AsOfTime = '2022-01-09 20:59:59.0'
    
Columns
Name Type References Description
Currency [KEY] String Currency Code of the balances listed.
AccountId String The PayPal payer ID, which is a masked version of the PayPal account number intended for use with third parties.
AvailableBalanceCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
AvailableBalanceValue String The value, which might be an integer or a decimal.
Primary Boolean Optional field representing if the currency is primary currency or not.
TotalBalanceCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
TotalBalanceValue Decimal The value, which might be:An integer or A decimal.
WithheldBalanceCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
WithheldBalanceValue String The value, which might be:An integer or A decimal.
AsOfTime Datetime The requested date and time or the last date and time when the balances can be served.
LastRefreshTime Datetime The date and time when the balances was last refreshed.
CaptureDetails

Query details about a captured Payment.

Table Specific Information

Select

The only filter supported by the PayPal API is Id, which is required. The connector processes other filters client side within the connector.

For example, the following queries are processed server side and retrieve details for a specific Capture.

SELECT * FROM CaptureDetails WHERE Id = '9G02572041588110H'

SELECT * FROM CaptureDetails WHERE ID IN ('9G02572041588110H', '9G02572041588111H')
Columns
Name Type References Description
Id [KEY] String The PayPal-generated ID for the captured payment.
Status String The status of the captured payment. The allowed values are COMPLETED, DECLINED, PARTIALLY_CAPTURED, PENDING, REFUNDED, FAILED.
StatusDetails String The details of the captured payment status. The allowed values are BUYER_COMPLAINT, CHARGEBACK, ECHECK, INTERNATIONAL_WITHDRAWAL, OTHER, PENDING_REVIEW, RECEIVING_PREFERENCE_MANDATES_MANUAL_ACTION, REFUNDED, TRANSACTION_APPROVED_AWAITING_FUNDING, UNILATERAL, VERIFICATION_REQUIRED, DECLINED_BY_RISK_FRAUD_FILTERS.
AmountValue Decimal The amount for this captured payment.
AmountCurrency String The currency of the amount for this captured payment.
InvoiceId String The API caller-provided external invoice number for this order. Appears in both the payer's transaction history and the emails that the payer receives.
CustomId String The API caller-provided external ID. Used to reconcile API caller-initiated transactions with PayPal transactions. Appears in transaction and settlement reports.
SellerProtectionStatus String The level of protection offered as defined by PayPal Seller Protection for Merchants. The allowed values are ELIGIBLE, PARTIALLY_ELIGIBLE, NOT_ELIGIBLE.
FinalCapture Boolean Indicates whether you can make additional captures against the authorized payment.
DisbursementMode String The funds that are held on behalf of the merchant. The allowed values are INSTANT, DELAYED.
SellerGrossAmount Decimal The amount for this captured payment.
SellerPaypalFee Decimal The applicable fee for this captured payment.
SellerNetAmount Decimal The net amount that the payee receives for this captured payment in their PayPal account.
SellerReceivableAmount Decimal The net amount that is credited to the payee's PayPal account. Returned only when the currency of the captured payment is different from the currency of the PayPal account where the payee wants to credit the funds.
SellerExchangeRate Decimal The exchange rate that determines the amount that is credited to the payee's PayPal account. Returned when the currency of the captured payment is different from the currency of the PayPal account where the payee wants to credit the funds.
CreateTime Datetime The time of authorization.
UpdateTime Datetime The time that the resource was last updated.
CreditCardDetails

Query details about the funding instrument of the payer, such as a Credit Card or a token that represents a Credit Card.

Table Specific Information

Select

This view returns a list of Credit Cards or details for a specific one.

The following filters are supported by the PayPal API:

  • Id
  • CreateTime
  • MerchantId
  • ExternalCardId
  • ExternalCustomerId

The CreateTime filter supports the >, >=, <, <=, and = operators, while the other filters only support the = operator.

The connector processes other filters client side within the connector.

For example, the following queries are processed server side.

  • The following query retrieves details for a specific Credit Card. The last seven characters of the credit card ID are masked and therefore ignored by the API during validation when filtering by ID.

    SELECT * FROM CreditCardDetails WHERE ID  = 'CARD-19H02474E2775740PKZYWVVI'
    
  • The following query returns details for Credit Card records created after the specified date:

    SELECT * FROM CreditCardDetails WHERE CreateTime > '2016-01-01'
    
Columns
Name Type References Description
Id [KEY] String The ID of the credit card.
Number String The redacted credit card number.
Type String The credit card type. Valid types are: visa, mastercard, discover, amex.
ExpireMonth Integer The expiration month with no leading zero. Acceptable values are 1 through 12.
ExpireYear Integer The 4-digit expiration year.
FirstName String The first name of the cardholder.
LastName String The last name of the cardholder.
AddressLine1 String The billing address associated with card. Line 1 of the address (e.g., number, street, etc.).
AddressLine2 String The optional line 2 of the Address (e.g., suite, apt number, etc.).
City String The city name.
CountryCode String The 2-letter country code.
PostalCode String The ZIP code or equivalent is usually required for countries that have them.
Phone String The phone number in E.123 format.
ExternalCustomerId String The unique identifier of the customer to whom this bank account belongs. Generated and provided by the facilitator.
MerchantId String The user-provided, optional field that functions as a unique identifier for the merchant holding the card. Note that this has no relation to PayPal merchant Id.
ExternalCardId String The unique identifier of the bank account resource. Generated and provided by the facilitator so it can be used to restrict the usage of the bank account to the specific merchant.
CreateTime Datetime The resource creation time in ISO8601 date-time format (e.g., 1994-11-05T13:15:30Z).
UpdateTime Datetime The resource update time in ISO8601 date-time format (e.g., 1994-11-05T13:15:30Z).
State String The state of the credit card funding instrument: expired or ok.
ValidUntil Datetime The funding instrument expiration date.
CryptoBalances

List all crypto balances.

Table Specific Information

Select

This view returns a list of disputes for the authenticated user.

The following filters are supported by the PayPal API:

  • AsOfTime

The filters only support the = operator.

The connector processes other filters client side within the connector.

For example, the following queries are processed server side.

  • The following query returns details for Balance records created before the specified date time:

    SELECT * FROM CryptoBalances WHERE AsOfTime = '2022-01-09 20:59:59.0'
    
Columns
Name Type References Description
AssetSymbol [KEY] String The Cryptocurrency ticker symbol / code as assigned by liquidity providers.
AccountId String The PayPal payer ID, which is a masked version of the PayPal account number intended for use with third parties.
Quantity Decimal Quantity of a cryptocurrency asset.
AsOfTime Datetime The requested date and time or the last date and time when the balances can be served.
LastRefreshTime Datetime The date and time when the balances were last refreshed.
DisputeDetails

PayPal merchants, partners, and external developers can use the PayPal Disputes API to manage disputes.

Table Specific Information

Select

This view returns a list of disputes with detailed information for the authenticated user.

The following filters are supported by the PayPal API:

  • DisputeId

The connector processes other filters client side within the connector.

For example, the following queries are processed server side.

  • The following query retrieves details for a specific Dispute:

    SELECT * FROM DisputeDetails WHERE DisputeId = 'PP-D-12345'
    
Columns
Name Type References Description
DisputeId [KEY] String The ID of the dispute.
CreatedTime Datetime The date and time when the dispute was created.
UpdatedTime Datetime The date and time when the dispute was updated.
Status String The status of the dispute. The allowed values are OPEN, WAITING_FOR_BUYER_RESPONSE, WAITING_FOR_SELLER_RESPONSE, UNDER_REVIEW, RESOLVED, OTHER.
Reason String The reason for the item-level dispute. The allowed values are MERCHANDISE_OR_SERVICE_NOT_RECEIVED, MERCHANDISE_OR_SERVICE_NOT_AS_DESCRIBED, UNAUTHORISED, CREDIT_NOT_PROCESSED, DUPLICATE_TRANSACTION, INCORRECT_AMOUNT, PAYMENT_BY_OTHER_MEANS, CANCELED_RECURRING_BILLING, PROBLEM_WITH_REMITTANCE, OTHER.
DisputeState String The state of the dispute. The allowed values are OPEN_INQUIRIES, REQUIRED_ACTION, REQUIRED_OTHER_PARTY_ACTION, UNDER_PAYPAL_REVIEW, APPEALABLE, RESOLVED.
DisputeCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
DisputeAmountValue Decimal The value of the amount.
ExternalReasonCode String The code that identifies the reason for the credit card chargeback.
DisputeOutcomeCode String The outcome of a resolved dispute.
DisputeOutcomeAmountRefundedCode String The three-character ISO-4217 currency code that identifies the currency.
DisputeOutcomeAmountRefundedValue Decimal The value of the amount.
DisputeLifecycleStage String The stage in the dispute lifecycle.
DisputeChannel String The channel where the customer created the dispute.
OfferType String The merchant-proposed offer type for the dispute.
BuyerRequestedAmountCode String The three-character ISO-4217 currency code that identifies the currency.
BuyerRequestedAmountValue Decimal The value of the amount.
BuyerResponseDueDate Datetime The date and time by when the customer must respond to the dispute.
SellerOfferedAmountCode String The three-character ISO-4217 currency code that identifies the currency.
SellerOfferedAmountValue Decimal The value of the amount.
SellerResponseDueDate Datetime The date and time by when the seller must respond to the dispute.
Email String The email address that is provided by the merchant where the customer can share the evidences.
Note String The merchant provided notes that are visible to both the customer and PayPal.
TimePosted Datetime The date and time when the contact details were posted.
DisputeAssetSymbol String The cryptocurrency symbol or code ticker options. Assigned by liquidity providers and exchanges.
DisputeAssetQuantity String The quantity of a cryptocurrency asset.
DisputeAssetQuantityInSubunits String The quantity of a cryptocurrency asset in the currency's sub units.
DisputeOutcomeAssetRefundedSymbol String The cryptocurrency symbol or code ticker options. Assigned by liquidity providers and exchanges.
DisputeOutcomeAssetRefundedQuantity Decimal The quantity of a cryptocurrency asset.
RefundAmountCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
RefundAmountValue Decimal The maximum refundable amount.
Disputes

PayPal merchants, partners, and external developers can use the PayPal Disputes API to manage disputes.

Table Specific Information

Select

This view returns a list of disputes for the authenticated user.

The following filters are supported by the PayPal API:

  • DisputeId
  • DisputeState
  • CreateTime

The CreateTime filter supports the >, >=, <, <=, and = operators, while the other filters only support the = operator.

The connector processes other filters client side within the connector.

For example, the following queries are processed server side.

  • The following query retrieves details for a specific dispute:

    SELECT * FROM Disputes WHERE DisputeId = 'PP-D-12345'
    
  • The following query returns details for Dispute records created after the specified date:

    SELECT * FROM Disputes WHERE CreateTime > '2016-01-01'
    
Columns
Name Type References Description
DisputeId [KEY] String The ID of the dispute.
CreatedTime Datetime The date and time when the dispute was created.
UpdatedTime Datetime The date and time when the dispute was updated.
Status String The status of the dispute. The allowed values are OPEN, WAITING_FOR_BUYER_RESPONSE, WAITING_FOR_SELLER_RESPONSE, UNDER_REVIEW, RESOLVED, OTHER.
Reason String The reason for the item-level dispute. The allowed values are MERCHANDISE_OR_SERVICE_NOT_RECEIVED, MERCHANDISE_OR_SERVICE_NOT_AS_DESCRIBED, UNAUTHORISED, CREDIT_NOT_PROCESSED, DUPLICATE_TRANSACTION, INCORRECT_AMOUNT, PAYMENT_BY_OTHER_MEANS, CANCELED_RECURRING_BILLING, PROBLEM_WITH_REMITTANCE, OTHER.
DisputeState String The state of the dispute. The allowed values are OPEN_INQUIRIES, REQUIRED_ACTION, REQUIRED_OTHER_PARTY_ACTION, UNDER_PAYPAL_REVIEW, APPEALABLE, RESOLVED.
DisputeCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
DisputeAmountValue Decimal The value of the amount.
DisputeLifecycleStage String The stage in the dispute lifecycle.
DisputeChannel String The channel where the customer created the dispute.
BuyerResponseDueDate Datetime The date and time by when the customer must respond to the dispute.
SellerResponseDueDate Datetime The date and time by when the seller must respond to the dispute.
DisputeTransactions

PayPal merchants, partners, and external developers can use the PayPal Disputes API to manage disputes.

Table Specific Information

Select

This view returns a list of transactions with details for a specific dispute.

The following filters are supported by the PayPal API:

  • DisputeId

The connector processes other filters client side within the connector.

For example, the following queries are processed server side.

  • The following query retrieves transaction details for a specific dispute:

    SELECT * FROM DisputeTransactions WHERE DisputeId = 'PP-D-12345'
    
Columns
Name Type References Description
DisputeId [KEY] String The ID of the dispute.
CreatedTime Datetime The date and time when the transaction was created.
TransactionStatus String The transaction status.
GrossAmountCode String The three-character ISO-4217 currency code that identifies the currency.
GrossAmountValue Decimal The value of the amount.
BuyerName String The customer's name.
BuyerTransactionId String The customer's transaction ID.
SellerEmail String The email address for the merchant's PayPal account.
SellerMerchantId String The PayPal account ID for the merchant.
SellerTransactionId String The ID, as seen by the merchant, for this transaction.
SellerName String The name of the merchant.
SellerProtectionEligible Boolean Indicator if the seller is eligible for protection.
Custom String A free-text field that is entered by the merchant during checkout.
InvoiceNumber String The ID of the invoice for the payment.
ReferenceId String The ID, as seen by the partner, for this transaction.
Invoices

Query Invoices in PayPal.

Table Specific Information

Select

Server-side processing is only supported for the '=' operator.

The following filters are supported by the PayPal API:

  • Id supports the = operator.
  • Status supports the = operator.
  • Reference supports the = operator.
  • Currency supports the = operator.
  • Memo supports the = operator.
  • InvoiceDate supports the '=,<,>,<=,>=' operators.
  • InvoiceNumber supports the = operator.
  • DueDate supports the '=,<,>,<=,>=' operators.
  • DueAmount supports the '=,<,>,<=,>=' operators.
  • CreatedTime supports the '=,<,>,<=,>=' operators.
  • InvoiceAmount supports the '=,<,>,<=,>=' operators.
  • InvoiceCurrency supports the = operator.
  • DueAmountCurrencyCode supports the = operator.
  • Archived supports the = operator.
SELECT * FROM Invoices WHERE ID = 'INV2-LV8Z-5XH2-L4Z6-7LQ4'

When filtering with InvoiceAmount and DueAmount, InvoiceCurrency and DueAmountCurrencyCode are required respectively.

SELECT * FROM Invoices WHERE InvoiceAmount = 100 AND InvoiceCurrency = 'USD'
SELECT * FROM Invoices WHERE InvoiceAmount > 100 AND InvoiceAmount < 150 AND InvoiceCurrency = 'USD'
SELECT * FROM Invoices WHERE InvoiceAmount >= 100 AND InvoiceAmount < 150 AND InvoiceCurrency = 'USD'
SELECT * FROM Invoices WHERE InvoiceAmount > 100 AND InvoiceAmount <= 150 AND InvoiceCurrency = 'USD'
SELECT * FROM Invoices WHERE InvoiceAmount >= 100 AND InvoiceAmount <= 150 AND InvoiceCurrency = 'USD'

The connector processes other filters client side within the connector.

Columns
Name Type References Description
Id [KEY] String The ID of the invoice.
ParentId String The parent ID to an invoice that defines the group invoice to which the invoice is related.
Status String The status of the invoice. The allowed values are DRAFT, SENT, SCHEDULED, PAID, MARKED_AS_PAID, CANCELLED, REFUNDED, PARTIALLY_PAID, PARTIALLY_REFUNDED, MARKED_AS_REFUNDED, UNPAID, PAYMENT_PENDING.
Reference String The reference data. Includes a post office (PO) number.
Currency String The three-character ISO-4217 currency code that identifies the currency.
Note String A note to the invoice recipient. Also appears on the invoice notification email.
TermsAndConditions String The general terms of the invoice. Can include return or cancellation policy and other terms and conditions.
Memo String A private bookkeeping memo for the user.
InvoiceDate Date The invoice date as specified by the sender, in Internet date and time format.
InvoiceNumber String A private bookkeeping memo for the user.
TermType String The payment term. Payment can be due upon receipt, a specified date, or in a set number of days.
DueDate Date The date when the invoice payment is due, in Internet date and time format.
DueAmount Decimal The due amount, which is the balance amount outstanding after payments.
Gratuity Decimal The amount paid by the payer as gratuity to the invoicer.
PaidAmount Decimal The aggregated payment amounts against this invoice.
RefundAmount Decimal The aggregated refund amounts.
CreatedTime Datetime The date and time when the resource was created, in Internet date and time format.
CreatedBy String The email address of the account that created the resource.
LastUpdatedTime Datetime The date and time when the resource was last edited, in Internet date and time format.
LastUpdatedBy String The email address of the account that last edited the resource.
CancelTime Datetime The date and time when the resource was canceled, in Internet date and time format.
CancelledBy String The actor who canceled the resource.
FirstSentTime Datetime The date and time when the resource was first sent, in Internet date and time format.
LastSentTime Datetime The date and time when the resource was last sent, in Internet date and time format.
LastSentBy String The email address of the account that last sent the resource.
CreatedByFlow String The flow variation that created this invoice.
RecipientViewUrl String The URL for the invoice payer view hosted on paypal.com.
InvoicerViewUrl String The URL for the invoice merchant view hosted on paypal.com.
InvoicerBusinessName String The business name of the party.
InvoicerPrefixName String The prefix, or title, to the party's name.
InvoicerFirstName String When the party is a person, the party's given, or first, name.
InvoicerMiddleName String When the party is a person, the party's middle name. Use also to store multiple middle names including the patronymic, or father's, middle name.
InvoicerLastName String When the party is a person, the party's surname or family name. Also known as the last name. Required when the party is a person.
InvoicerSuffixName String The suffix for the party's name.
InvoicerFullName String When the party is a person, the party's full name.
InvoicerAddressLine1 String The first line of the address. For example, number or street.
InvoicerAddressLine2 String The second line of the address. For example, suite or apartment number.
InvoicerAddressLine3 String The third line of the address, if needed.
InvoicerAddressPostalCode String The postal code, which is the zip code or equivalent. Typically required for countries with a postal code or an equivalent.
InvoicerAddressCountryCode String The two-character ISO 3166-1 code that identifies the country or region.
InvoicerAddressStreetNumber String The street number.
InvoicerAddressStreetName String The street name. Just Drury in Drury Lane.
InvoicerAddressStreetType String The street type. For example, avenue, boulevard, road, or expressway.
InvoicerAddressDeliveryService String The delivery service. Post office box, bag number, or post office name.
InvoicerAddressBuildingName String A named locations that represents the premise. Usually a building name or number or collection of buildings with a common name or number.
InvoicerAddressSubBuilding String The first-order entity below a named building or location that represents the sub-premise. Usually a single building within a collection of buildings with a common name.
InvoicerEmail String The invoicer email address, which must be listed in the user's PayPal profile.
InvoicerWebsite String The invoicer's website.
InvoicerTaxId String The invoicer's tax ID.
InvoicerAdditionalNotes String Any additional information. Includes business hours.
InvoicerLogoUrl String The full URL to an external logo image. The logo image must not be larger than 250 pixels wide by 90 pixels high.
TaxCalculatedAfterDiscount Boolean Indicates whether the tax is calculated before or after a discount.
TaxInclusive Boolean Indicates whether the unit price includes tax.
AllowTip Boolean Indicates whether the invoice enables the customer to enter a tip amount during payment.
TemplateId String The template ID. The template determines the layout of the invoice. Includes which fields to show and hide.
AllowPartialPayment Boolean Indicates whether the invoice allows a partial payment. If false, the invoice must be paid in full. If true, the invoice allows partial payments.
MinimumAmountDue String The minimum amount allowed for a partial payment. Valid only when allow_partial_payment is true.
InvoiceAmount Decimal The invoice amount summary of item total, discount, tax total and shipping.
InvoiceCurrency String The invoice amount summary of item total, discount, tax total and shipping.
ItemTotal Decimal The subtotal for all items. Must equal the sum of (quantity * price) for all items.
InvoiceDiscountPercentage String The discount as a percentage value. Value is from 0 to 100. Supports up to five decimal places.
InvoiceDiscountValue Decimal The invoice level discount amount. Value is from 0 to 1000000. Supports up to two decimal places.
ItemDiscountValue Decimal The discount as an amount at item level.
TaxTotal Decimal The aggregated amount of the item and shipping taxes.
ShippingAmount Decimal The shipping fee for all items. Includes tax on shipping.
ShippingTaxAmount Decimal The calculated tax amount. The tax amount is added to the item total.
ShippingTaxPercentage String The tax rate. Value is from 0 to 100. Supports up to five decimal places.
ShippingTaxName String The name of the tax applied on the invoice items.
DueAmountCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
GratuityCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
PaidAmountCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
RefundAmountCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
MinimumAmountDueCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
ItemTotalCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
InvoiceDiscountCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
ItemDiscountCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
ShippingAmountCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
ShippingTaxAmountCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
Archived Boolean
Notifications

Query the list of event types that are subscribed to a Webhook.

Table Specific Information

Select

The only filter supported by the PayPal API is WebhookId, which only supports the = operator. This is a required parameter.The connector processes other filters client side within the connector.

For example, the following query is processed server side and retrieves the Notifications list for the specified Webhook.

SELECT * FROM Notifications WHERE WebhookId = '8BU398853V564980H'
Columns
Name Type References Description
Name String The unique event type name.
Description String The human-readable description of the event type.
WebhookId String Webhook Id.
OrderDetails

Query details about an Order.

Table Specific Information

Select

Note

PayPal REST API does not give us a way to list all OrderId-s, so you must specify it. If you need such use case, it's recommended to use the Transactions and TransactionDetails views in SOAP schema.

The only filter supported by the PayPal API is Id, which is required. The connector processes other filters client side within the connector.

For example, the following queries are processed server side and retrieve details for a specific Order.

SELECT * FROM OrderDetails WHERE Id = 'O-1HE90236LH9332431'

SELECT * FROM OrderDetails WHERE ID IN ('O-1HE90236LH9332431', 'O-7D635956955612146')
Columns
Name Type References Description
Id [KEY] String The ID of the order.
Status String The order status. The possible values are: CREATED, SAVED, APPROVED, VOIDED, COMPLETED.
Intent String The intent to either capture payment immediately or authorize a payment for an order after order creation. The possible values are: CAPTURE, AUTHORIZE.
CreatedTime Datetime The date and time when the transaction occurred.
UpdatedTime Datetime The date and time when the transaction was last updated.
PayerId String The ID of the customer who approves and pays for the order. The customer is also known as the payer.
PayerGivenName String The name of the customer who approves and pays for the order. The customer is also known as the payer.
PayerSurname String The last name of the customer who approves and pays for the order. The customer is also known as the payer.
PayerEmail String The email of the customer who approves and pays for the order. The customer is also known as the payer.
PayerPhoneType String The phone type.
PayerPhoneNumber String The phone number, in its canonical international E.164 numbering plan format.
PayerBirthDate String The birth date of the payer in YYYY-MM-DD format.
PayerTaxId String The customer's tax ID. Supported for the PayPal payment method only.
PayerTaxType String The customer's tax ID type. Supported for the PayPal payment method only. The allowed values are BR_CPF, BR_CNPJ.
PayerAddressLine1 String The first line of the address. For example, number or street.
PayerAddressLine2 String The second line of the address. For example, suite or apartment number.
PayerAddressPostalCode String The postal code, which is the zip code or equivalent. Typically required for countries with a postal code or an equivalent.
PayerAddressCountryCode String The two-character ISO 3166-1 code that identifies the country or region.
PayerAddressAdminArea1 String The highest level sub-division in a country, which is usually a province, state, or ISO-3166-2 subdivision.
PayerAddressAdminArea2 String A city, town, or village.
PaymentSource String The payment source used to fund the payment.
PurchaseUnits String An array of purchase units.
OrderItems

Get the items in an Order.

Table Specific Information

Select

Note

PayPal REST API does not give us a way to list all OrderId-s, so you must specify it. If you need such use case, it's recommended to use the Transactions and TransactionItems views in SOAP schema.

The only filter supported by the PayPal API is OrderId, which is required. The connector processes other filters client side within the connector.

For example, the following queries are processed server side and retrieve details for a specific Order.

SELECT * FROM OrderItems WHERE OrderId = 'O-1HE90236LH9332431'

SELECT * FROM OrderItems WHERE OrderId IN ('O-1HE90236LH9332431', 'O-7D635956955612146')
Columns
Name Type References Description
OrderId String The ID of the Order this Item belongs to.
Id String The PayPal-generated ID for the purchase unit. This ID appears in both the payer's transaction history and the emails that the payer receives.
ReferenceId String The API caller-provided external ID for the purchase unit. Required for multiple purchase units when you must update the order through PATCH.
Amount String The total order amount with an optional breakdown that provides details, such as the total item amount, total tax amount, shipping, handling, insurance, and discounts, if any.
Description String The purchase description.
CustomId String The API caller-provided external ID. Used to reconcile API caller-initiated transactions with PayPal transactions. Appears in transaction and settlement reports.
InvoiceId String The API caller-provided external invoice ID for this order.
SoftDescriptor String The payment descriptor on account transactions on the customer's credit card statement.
ShipperFullName String When the party is a person, the party's full name.
ShippingAddressLine1 String The first line of the address. For example, number or street.
ShippingAddressLine2 String The second line of the address. For example, suite or apartment number.
ShippingAddressPostalCode String The postal code, which is the zip code or equivalent. Typically required for countries with a postal code or an equivalent.
ShippingAddressCountryCode String The two-character ISO 3166-1 code that identifies the country or region.
PayeeEmail String The email address of merchant.
PayeeMerchantId String The encrypted PayPal account ID of the merchant.
DisbursementMode String The funds that are held on behalf of the merchant.
Items String An array of items that the customer purchases from the merchant.
MostRecentErrors String The error reason code and description that are the reason for the most recent order decline.
PaymentInstruction String Any additional payment instructions to be consider during payment processing.
SupplementaryData String Supplementary data about this payment.
Payments String The comprehensive history of payments for the purchase unit.
PartnerReferrals

Shows details by ID for referral data that was shared by the partner or API caller.

Table Specific Information

Select

Note

PartnerReferrals API does not give us a way to list all PartnerReferralId-s, so you must specify it.

The only filter supported by the PayPal API is Id, which is required. The connector processes other filters client side within the connector.

For example, the following queries are processed server side and retrieve details for a specific Partner Referral.

SELECT * FROM PartnerReferrals where id= 'ZjcyODU4ZWYtYTA1OC00ODIwLTk2M2EtOTZkZWQ4NmQwYzI3RU12cE5xa0xMRmk1NWxFSVJIT1JlTFdSbElCbFU1Q3lhdGhESzVQcU9iRT0='
Columns
Name Type References Description
Id [KEY] String The ID to access the customer's data shared by the partner with PayPal.
SubmitterPayerId String The payer ID of the partner who shared the referral data.
SubmitterClientId String The client ID of the partner who shared the referral data.
IndividualOwners String List of owners in the account.
BusinessNames String Name of the business.
BusinessEmails String Email addresses of the business.
BusinessWebsite String Website of the business.
BusinessAddresses String List of addresses associated with the business entity.
BusinessPhones String List of phone number associated with the business.
BusinessDocuments String Business Party related Document data collected from the customer.
BusinessType String Type of business entity like corporation, sole prop, governmental.
BusinessSubtype String The sub classification of the business type.
BusinessIndustryCategory String The customer's business category code.
BusinessIndustryMccCode String The customer's business seller category code.
BusinessIndustrySubcategory String The customer's business subcategory code.
BusinessIncorporationCountryCode String The incorporation country code.
BusinessIncorporationDate Date Date of business incorporation.
BusinessOfficeBearers String List of Directors present as part of the business entity.
BusinessPurposeCode String The account's purpose code.
BusinessDescription String The business goals description. For example, a mission statement.
IndividualBeneficialOwners String List of Individual beneficial owners part of the entity.
BusinessBeneficialOwners String List of Business beneficial owners part of the entity.
AnnualSalesVolumeRangeMinAmountCurrencyCode String The minimum inclusive amount currency code of the range for the total annual sales volume of the business.
AnnualSalesVolumeRangeMinAmountValue Decimal The minimum inclusive amount value of the range for the total annual sales volume of the business.
AnnualSalesVolumeRangeMaxAmountCurrencyCode String The maximum inclusive amount currency code of the range for the total annual sales volume of the business.
AnnualSalesVolumeRangeMaxAmountValue Decimal The maximum inclusive amount value of the range for the total annual sales volume of the business.
AvgMonthlyVolumeRangeMinAmountCurrencyCode String The minimum inclusive amount currency code of the range for the average monthly volume of the business.
AvgMonthlyVolumeRangeMinAmountValue Decimal The minimum inclusive amount value of the range for the average monthly volume of the business.
AvgMonthlyVolumeRangeMaxAmountCurrencyCode String The maximum inclusive amount currency code of the range for the average monthly volume of the business.
AvgMonthlyVolumeRangeMaxAmountValue Decimal The maximum inclusive amount value of the range for the average monthly volume of the business.
TrackingId String The partner's unique identifier for this customer in their system which can be used to track user in PayPal.
Operations String An array of operations to perform for the customer while they share their data.
Products String An array of PayPal products to which the partner wants to onboard the customer.
Capabilities String An array of capabilities which the partner wants to enable for the selected products.
OutsideProcessDependencies String An array of dependent processes.
LegalConsents String An array of all consents that the partner has received from this seller.
Email String Email address of the customer used to create the account.
PreferredLanguageCode String The preferred locale code to use in the onboarding flow for the customer.
PartnerConfigReturnUrl String The URL to which to redirect the customer upon completion of the onboarding process.
PartnerConfigReturnUrlDescription String The description of the return URL.
PartnerConfigShowAddCreditCard Boolean Indicates whether to show an add credit card page.
FinancialInstrumentBanks String An array of banks attached to this managed account.
PayoutAttributesMarketplace Boolean If true, specifies that the merchant or platform is offering goods or services on behalf of 3rd party sellers.
PayoutAttributesKycRequired Boolean If true, specifies that the Kyc is required for the merchant.
PayoutAttributesCountryTransferMethodCurrency String Requested country, transfer method and currency.
LegalCountryCode String Legal Country Code.
Payments

Query details about authorized Payments.

Table Specific Information

Select

The only supported filters are ID and OrderId. Filters only supports the = operator The connector processes other filters client side within the connector.

For example, the following query is processed server side and retrieves Payments that were created after the specified date.

SELECT * FROM Payments WHERE ID > 'P-41250-2' AND OrderId =  'O-123550-05'
Columns
Name Type References Description
Id [KEY] String The PayPal-generated ID for the authorized payment.
Intent String The payment intent.
PayerPaymentMethod String The payment method.
PayerStatus String The status of payer's PayPal account.
PayerEmail String The payer's email address.
PayerSalutation String The payer's salutation.
PayerFirstName String The payer's first name.
PayerMiddleName String The payer's middle name.
PayerLastName String The payer's last name.
PayerSuffix String The payer's suffix.
PayerId String The PayPal-assigned encrypted payer ID.
PayerBirthDate Date The birth date of the payer, in Internet date format.
PayerTaxId String The payer's tax ID. Supported for the PayPal payment method only.
PayerTaxType String The payer's tax ID type. Supported for the PayPal payment method only.
PayerBillingAddressLine1 String The first line of the address. For example, number, street, and so on.
PayerBillingAddressLine2 String The second line of the address. For example, suite or apartment number.
PayerBillingAddressCity String The city name.
PayerBillingAddressCountryCode String The two-character ISO 3166-1 code that identifies the country or region.
PayerBillingAddressPostalCode String The postal code, which is the zip code or equivalent.
PayerBillingAddressState String The code for a US state or the equivalent for other countries.
PayerBillingAddressPhone String The phone number, in E.123 format.
PayerBillingAddressNormalizationStatus String The address normalization status. Returned only for payers from Brazil.
PayerBillingAddressType String The type of address. For example, HOME_OR_WORK, GIFT, and so on.
PayerShippingAddressLine1 String The first line of the address. For example, number, street, and so on.
PayerShippingAddressLine2 String The second line of the address. For example, suite or apartment number.
PayerShippingAddressCity String The city name.
PayerShippingAddressCountryCode String The two-character ISO 3166-1 code that identifies the country or region.
PayerShippingAddressPostalCode String The postal code, which is the zip code or equivalent.
PayerShippingAddressState String The code for a US state or the equivalent for other countries.
PayerShippingAddressPhone String The phone number, in E.123 format.
PayerShippingAddressNormalizationStatus String The address normalization status. Returned only for payers from Brazil.
PayerShippingAddressType String The type of address. For example, HOME_OR_WORK, GIFT, and so on.
State String The state of the payment, authorization, or order transaction.
ExperienceProfileId String The PayPal-generated ID for the merchant's payment experience profile. For information, see create web experience profile.
NoteToPayer String A free-form field that clients can use to send a note to the payer.
FailureReason String The reason code for a payment failure.
ReturnUrl String The URL where the payer is redirected after he or she approves the payment. Required for PayPal account payments.
CancelUrl String The URL where the payer is redirected after he or she cancels the payment. Required for PayPal account payments.
BrandName String A label that overrides the business name in the merchant's PayPal account on the PayPal checkout pages.
Locale String The locale of pages that the PayPal payment experience displays.
LandingPage String The type of landing page to show on the PayPal site for customer checkout.
ShippingPreference String The shipping preference.
UserAction String The user action. Presents the customer with either the Continue or Pay Now checkout flow.
CreatedTime Datetime The date and time when the transaction occurred.
UpdatedTime Datetime The date and time when the payment was updated, in Internet date and time format.
PaymentTokens

Lists merchant-created templates with associated details.

Table Specific Information

Select

The only filters supported by the PayPal API are ID and CustomerId. One of these filters is required to access this view. Server-side processing is only supported for the '=' operator.

Select * from PaymentTokens where CustomerId = 'BygeLlrpZF'
Select * from PaymentTokens where ID = 'PMUH786954'

The connector processes other filters client side within the connector.

Columns
Name Type References Description
Id [KEY] String The PayPal-generated ID for the vault token.
CustomerId String The unique ID for a customer in merchant's or partner's system of records.
MerchantCustomerId String Merchants and partners may already have a data-store where their customer information is persisted. Use merchant_customer_id to associate the PayPal-generated customer.id to your representation of a customer.
PaymentSourceCardName String The card holder's name as it appears on the card.
PaymentSourceCardLastDigits String The last digits of the payment card.
PaymentSourceCardVerificationNetworkTransactionId String Transaction Identifier as given by the network to indicate a previously executed CIT authorization.
PaymentSourceCardVerificationDate Datetime The date that the transaction was authorized by the scheme.
PaymentSourceCardVerificationNetwork String Name of the card network through which the transaction was routed.
PaymentSourceCardVerificationTime String The date and time when the instrument was verified.
PaymentSourceCardVerificationAmountValue Decimal The amount used for card verification.
PaymentSourceCardVerificationAmountCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
PaymentSourceCardVerificationProcessorResponseAvsCode String The address verification code for Visa, Discover, Mastercard, or American Express transactions.
PaymentSourceCardVerificationProcessorResponseCvvCode String The card verification value code for for Visa, Discover, Mastercard, or American Express.
PaymentSourceCardNetworkTransactionReferenceId String Transaction reference ID returned by the scheme.
PaymentSourceCardNetworkTransactionReferenceDate Datetime The date that the transaction was authorized by the scheme.
PaymentSourceCardNetworkTransactionReferenceNetwork String Name of the card network through which the transaction was routed.
PaymentSourceCardNetworkTransactionReferenceTime Datetime The date and time when the instrument was verified.
PaymentSourceCardBrand String The card brand or network. Typically used in the response.
PaymentSourceCardExpiry String The card expiration year and month.
PaymentSourceCardAddressLine1 String The first line of the address. For example, number or street.
PaymentSourceCardAddressLine2 String The second line of the address. For example, suite or apartment number.
PaymentSourceCardAddressAdminArea1 String The highest level sub-division in a country, which is usually a province, state, or ISO-3166-2 subdivision.
PaymentSourceCardAddressAdminArea2 String A city, town, or village.
PaymentSourceCardAddressPostalCode String The postal code, which is the zip code or equivalent. Typically required for countries with a postal code or an equivalent.
PaymentSourceCardAddressCountryCode String The two-character ISO 3166-1 code that identifies the country or region.
PaymentSourceCardAddressId String The resource ID of the address.
PaymentSourceCardAddressCompany String The name of the company or business associated to the address.
PaymentSourceCardAddressPhone String The phone number that can go on the mailing label with the address to track the shipping.
PaymentSourceCardAddressGivenName String When the party is a person, the party's given, or first, name.
PaymentSourceCardAddressNameSurname String When the party is a person, the party's surname or family name.
PaymentSourceCardAddressPhoneNumber String The national number.
PaymentSourceCardAddressPhoneNumberCountryCode String The country calling code (CC), in its canonical international
PaymentSourceCardVerificationStatus String Card verification status
PaymentSourceCardType String The payment card type.
PaymentSourcePaypalEmailAddress String The email address of the payer.
PaymentSourcePaypalPayerId String The PayPal-assigned ID for the payer.
PaymentSourcePaypalGivenName String When the party is a person, the party's given, or first, name.
PaymentSourcePaypalNameSurname String When the party is a person, the party's surname or family name.
PaymentSourcePaypalPhoneNumber String The national number.
PaymentSourcePaypalPhoneType String The phone type.
PaymentSourcePaypalAddressLine1 String The first line of the address. For example, number or street.
PaymentSourcePaypalAddressLine2 String The second line of the address. For example, suite or apartment number.
PaymentSourcePaypalAddressAdminArea1 String The highest level sub-division in a country, which is usually a province, state, or ISO-3166-2 subdivision.
PaymentSourcePaypalAddressPostalCode String The postal code, which is the zip code or equivalent. Typically required for countries with a postal code or an equivalent.
PaymentSourcePaypalAddressCountryCode String The two-character ISO 3166-1 code that identifies the country or region.
PaymentSourcePaypalAccountId String The account identifier for a PayPal account.
PaymentSourceVenmoEmailAddress String The email address of the payer.
PaymentSourceVenmoPayerId String The PayPal-assigned ID for the payer.
PaymentSourceVenmoGivenName String When the party is a person, the party's given, or first, name.
PaymentSourceVenmoNameSurname String When the party is a person, the party's surname or family name.
PaymentSourceVenmoPhoneNumber String The national number.
PaymentSourceVenmoPhoneType String The phone type.
PaymentSourceVenmoAddressLine1 String The first line of the address. For example, number or street.
PaymentSourceVenmoAddressLine2 String The second line of the address. For example, suite or apartment number.
PaymentSourceVenmoAddressAdminArea1 String The highest level sub-division in a country, which is usually a province, state, or ISO-3166-2 subdivision.
PaymentSourceVenmoAddressAdminArea2 String A city, town, or village.
PaymentSourceVenmoAddressPostalCode String The postal code, which is the zip code or equivalent. Typically required for countries with a postal code or an equivalent.
PaymentSourceVenmoAddressCountryCode String The two-character ISO 3166-1 code that identifies the country or region.
PaymentSourceVenmoUserName String The Venmo username, as chosen by the user.
PaymentSourceApplePayName String The card holder's name as it appears on the card.
PaymentSourceApplePayLastDigits String The last digits of the payment card.
PaymentSourceApplePayType String The payment card type.
PaymentSourceApplePayBrand String The card brand or network.
PaymentSourceApplePayAddressLine1 String The first line of the address. For example, number or street.
PaymentSourceApplePayAddressLine2 String The second line of the address. For example, suite or apartment number.
PaymentSourceApplePayAddressAdminArea1 String The highest level sub-division in a country, which is usually a province, state, or ISO-3166-2 subdivision.
PaymentSourceApplePayAddressAdminArea2 String A city, town, or village.
PaymentSourceApplePayAddressPostalCode String The postal code, which is the zip code or equivalent. Typically required for countries with a postal code or an equivalent.
PaymentSourceApplePayAddressCountryCode String The two-character ISO 3166-1 code that identifies the country or region.
PaymentTransactions

Query Transaction details including the amount and item details.

Table Specific Information

Select

The only filter supported by the PayPal API is PaymentId, which is required. The connector processes other filters client side within the connector.

By default, this view will only provide the data for payments that are completed, to get the transaction of the payments that are just created, the user will have to provide the PaymentId in WHERE clause.

The user can get the non completed PaymentId after excuting the CreatePayment SP.

For example, the following queries are processed server side and retrieve a list of Transactions for the specified Payment.

SELECT * FROM PaymentTransactions WHERE PaymentId = 'PAY-6SL93120VR4146201KZYWPVY'

SELECT * FROM PaymentTransactions WHERE PaymentId IN ('PAY-6SL93120VR4146201KZYWPVY', 'PAY-6SL93120VR0000201KZYWPVY')
Columns
Name Type References Description
PaymentId String Payments.Id The ID of the payment.
Amount Decimal The amount to collect.
Currency String The currency of the amount to collect.
PayeeEmail String The email address associated with the payee's PayPal account.
PayeeMerchantId String The PayPal account ID for the payee.
Description String The purchase description.
NoteToPayee String The note to the recipient of the funds in this transaction.
Custom String The free-form field for the client's use.
InvoiceNumber String The invoice number to track this payment.
SoftDescriptor String The soft descriptor to use to charge this funding source. If greater than the maximum allowed length, the API truncates the string.
NotifyUrl String The URL to send payment notifications.
AllowedPaymentMethod String The payment method for this transaction. This field does not apply to the credit card payment method.
RecipientName String The name of the recipient.
ShippingPhoneNumber String The shipping phone number, in its canonical international format as defined by the E.164 numbering plan.
ShippingAddressLine1 String The first line of the address. For example, number, street, and so on.
ShippingAddressLine2 String The second line of the address. For example, suite or apartment number.
ShippingAddressCity String The city name.
ShippingAddressCountryCode String The two-character ISO 3166-1 code that identifies the country or region.
ShippingAddressPostalCode String The postal code, which is the zip code or equivalent.
ShippingAddressState String The code for a US state or the equivalent for other countries.
ShippingAddressPhone String The phone number, in E.123 format.
ShippingAddressNormalizationStatus String The address normalization status. Returned only for payers from Brazil.
ShippingAddressType String The type of address. For example, HOME_OR_WORK, GIFT, and so on.
ShippingMethod String The shipping method used for this payment, such as USPS Parcel.
PayoutDetails

Retrieve details about Payouts.

Table Specific Information

Select

The only filter supported by the PayPal API is PayoutBatchId, which is required. The connector processes other filters client side within the connector.

For example, the following query is processed server side and retrieves details for a specific Payout.

SELECT * FROM PayoutDetails WHERE PayoutBatchId = 'HSY55UPD25KF2'
Columns
Name Type References Description
PayoutBatchId [KEY] String The ID of the payout for which to show details.
BatchStatus String The PayPal-generated payout status. If the payout passes preliminary checks, the status is PENDING.
TimeCreated Datetime The date and time when processing for the payout began
TimeCompleted Datetime The date and time when processing for the payout completed.
SenderBatchId String The sender-specified ID number. Tracks the payout in an accounting system.
SenderEmailSubject String The subject line for the email that PayPal sends when payment for a payout item completes. The subject line is the same for all recipients.
Amount Decimal The total amount, requested for the payouts.
Currency String The currency of the total amount
FeeAmount Decimal The amount of the total estimate for the applicable payouts fees. Initially, the fee is 0. The fee is populated after the payout moves to the PROCESSING state.
FeeCurrency String The currency for the applicable payouts fees.
TimeClosed Datetime The date and time when the payout was closed, in Internet date and time format.
SenderEmailMessage String The email message that PayPal sends when the payout item completes. The message is the same for all recipients.
SenderEmailRecipientType String The ID type that identifies the payment receiver. The allowed values are EMAIL, PHONE, PAYPAL_ID.
FundingSource String The ID to differentiate a PayPal balance-funded transaction from a PayPal treasury-funded transaction.
PayoutItems

Retrieve payout items from a Payout.

Table Specific Information

Select

The filters supported by the PayPal API are PayoutBatchId and PayoutItemId. Atleast one filter is required to access the view. The connector processes other filters client side within the connector.

For example, the following queries are processed server side.

SELECT * FROM PayoutItems WHERE PayoutBatchId = 'HSY55UPD25KF2'
SELECT * FROM PayoutItems WHERE PayoutItemId ='8AELMXH8UB2P8'
Columns
Name Type References Description
PayoutBatchId [KEY] String The ID of the payout for which to show payout items details.
PayoutItemId [KEY] String The ID for the payout item
TransactionId String The PayPal-generated ID for the transaction.
TransactionStatus String The transaction status.
FeeAmount Decimal The amount for the applicable payout fee. Initially, the fee is 0. The fee is populated after the item moves to the PENDING state
FeeCurrency String The currency for the applicable payout fee
RecipientType String The recipient type.Value is: EMAIL, PHONE, PAYPAL_ID.
AmountValue Decimal The amount of payout item.
AmountCurrency String The currency of payout item.
Note String A sender-specified note for notifications.
Receiver String The receiver of the payment. Corresponds to the recipient_type value in the request.
SenderItemId String A sender-specified ID number. Tracks the payout in an accounting system.
TimeProcessed Datetime The date and time when this item was last processed.
ErrorsMessage String The message that describes the error, if any.
ErrorsName String The human-readable, unique name of the error, if any.
ErrorsDebugId String The PayPal internal ID. Used for correlation purposes.
ErrorsInformationLink String The information link, or URI, that shows detailed information about this error for the developer.
ActivityId String The unique PayPal-generated common ID that links the sender- and receiver-side transactions. Used for tracking.
SenderBatchId String A sender-specified ID. Tracks the payout in an accounting system.
RecipientNamePrefix String The prefix, or title, to the party's name.
RecipientGivenName String When the party is a person, the party's given, or first, name.
RecipientSurname String When the party is a person, the party's surname or family name. Also known as the last name.
RecipientMiddleName String When the party is a person, the party's middle name.
RecipientFullName String When the party is a person, the party's full name.
RecipientWallet String The recipient wallet. The allowed values are PAYPAL, VENMO.
Purpose String The purpose of the transaction. The allowed values are AWARDS, PRIZES, DONATIONS, GOODS, SERVICES, REBATES, CASHBACK, DISCOUNTS, NON_GOODS_OR_SERVICES.
Plans

List the Billing Plans.

Table Specific Information

Select

This view returns a list of subscription plans for the authenticated user.

The following filters are supported by the PayPal API:

  • Id
  • ProductId
SELECT * FROM Plans WHERE Id = '1234'
SELECT * FROM Plans WHERE ProductId = '1234'

The connector processes other filters client side within the connector.

Columns
Name Type References Description
Id [KEY] String The unique PayPal-generated ID for the plan.
CreateTime Datetime The date and time when the plan was created
Description String The detailed description of the plan.
BillingCyclesVersion Integer The active pricing scheme for this billing cycle.
BillingCyclesPricingModel String The active pricing scheme for this billing cycle.
BillingCyclesFrequency String The frequency details for this billing cycle.
BillingCyclesTenureType String The tenure type of the billing cycle. The allowed values are REGULAR, TRIAL.
BillingCyclesSequence Integer The order in which this cycle is to run among other billing cycles.
BillingCyclesTotalCycles Integer The number of times this billing cycle gets executed.
Links String contains the link of plan object
Name String The plan name.
ProductId String The ID for the product.
QuantitySupported Boolean Indicates whether you can subscribe to this plan by providing a quantity for the goods or service..
Status String The plan status. The allowed values are CREATED, INACTIVE, ACTIVE.
TaxesInclusive Boolean Indicates whether the tax was already included in the billing amount.
TaxesPercentage String The tax percentage on the billing amount.
UpdateTime Datetime The date and time when the plan was last updated.
ProductDetails

Retrieve the list of product details.

Table Specific Information

Select

This view returns a list of product details for the authenticated user.

The only filter supported by the PayPal API is ProductId. Server-side processing is only supported for the '=' operator.

The connector processes other filters client side within the connector.

For example, the following queries are processed server side.

SELECT * FROM ProductDetails
SELECT * FROM ProductDetails WHERE ProductId = 'PP-D-12345'
Columns
Name Type References Description
ProductId [KEY] String The ID of the product.
CreateTime Datetime The date and time when the product was created, in Internet date and time format.
UpdateTime Datetime The date and time when the product was updated, in Internet date and time format.
Description String The product description.
Name String The product name.
Type String The product type. Indicates whether the product is physical or digital goods, or a service. The allowed values are PHYSICAL, DIGITAL, SERVICE.
Category String The product category.
ImageURL String The image URL for the product.
HomeURL String The home URL for the product.
Products

Retrieves the list of products, which are goods and services.

Table Specific Information

Select

This view returns a list of products for the authenticated user.

The only filter supported by the PayPal API is Id. Server-side processing is only supported for the '=' operator.

The connector processes other filters client side within the connector.

For example, the following queries are processed server side.

SELECT * FROM Products
SELECT * FROM Products WHERE ID = 'PP-D-12345'
Columns
Name Type References Description
Id [KEY] String The ID of the product.
CreateTime Datetime The date and time when the product was created, in Internet date and time format.
Description String The product description.
Name String The product name.
RefundDetails

Query details about a specific Refund.

Table Specific Information

Select

The only filter supported by the PayPal API is Id, which is required. The connector processes other filters client side within the connector.

For example, the following queries are processed server side and retrieve details for a specific Refund.

SELECT * FROM RefundDetails WHERE Id = '4W92068757818534U'

SELECT * FROM RefundDetails WHERE ID IN ('4W92068757818534U', '4W91234757818534U')
Columns
Name Type References Description
Id [KEY] String The PayPal-generated ID for the captured payment.
Status String The status of the captured payment. The allowed values are CANCELLED, FAILED, PENDING, COMPLETED.
StatusDetails String The details of the captured payment status.
AmountValue Decimal The amount for this captured payment.
AmountCurrency String The currency of the amount for this captured payment.
InvoiceId String The API caller-provided external invoice number for this order. Appears in both the payer's transaction history and the emails that the payer receives.
NoteToPayer String The reason for the refund. Appears in both the payer's transaction history and the emails that the payer receives.
SellerGrossAmount Decimal The amount for this captured payment.
SellerPaypalFee Decimal The applicable fee for this captured payment.
SellerNetAmount Decimal The net amount that the payee receives for this captured payment in their PayPal account.
TotalRefundedMoney Decimal The total amount refunded from the original capture to date.
CreateTime Datetime The time of authorization.
UpdateTime Datetime The time that the resource was last updated.
CustomId String The API caller-provided external ID. Used to reconcile API caller-initiated transactions with PayPal transactions.
AcquirerReferenceNumber String Reference ID issued for the card transaction.
PayerEmailAddress String The email address of merchant.
PayerMerchantId String The encrypted PayPal account ID of the merchant.
SaleDetails

Query details about a Sale Transaction.

Table Specific Information

Select

The only filter supported by the PayPal API is Id, which is required. The connector processes other filters client side within the connector.

For example, the following queries are processed server side and retrieve details for a specific Sale.

SELECT * FROM SaleDetails WHERE Id = '6M2430095X488331A'

SELECT * FROM SaleDetails WHERE ID IN ('6M2430095X488331A', '6M2410805X488331A')
Columns
Name Type References Description
Id [KEY] String The ID of the sale transaction.
State String The state of the sale. One of the following: pending, completed, refunded, or partially_refunded.
Currency String The 3-letter currency code.
Subtotal Decimal The amount of the subtotal of the items.
TaxAmount Decimal The amount charged for tax.
ShippingAmount Decimal The amount charged for shipping.
ShippingDiscount Decimal The amount being discounted for the shipping fee. Only supported when the payment method is set to paypal.
HandlingFeeAmount Decimal The amount being charged for the handling fee. Only supported when the payment method is set to paypal.
InsuranceAmount Decimal The amount being charged for the insurance fee. Only supported when the payment method is set to paypal.
TotalAmount Decimal The total amount charged from the payer to the payee. In case of a refund, this is the refunded amount to the original payer from the payee.
ClearingTime Datetime The expected clearing time for e-check transactions. Only supported when the payment method is set to paypal.
CreateTime Datetime The time of sale.
Description String The description of the sale.
ExchangeRate String The exchange rate applied for this transaction. Returned only in cross-currency use cases where a merchant bills a buyer in a non-primary currency for that buyer.
FmfDescription String The description of the filter.
FmfFilterId String The name of the fraud management filter. One of the following: MAXIMUM_TRANSACTION_AMOUNT (basic filter), UNCONFIRMED_ADDRESS (basic filter), COUNTRY_MONITOR (basic filter), AVS_NO_MATCH (address verification service no match -- advanced filter), AVS_PARTIAL_MATCH (address verification service partial match -- advanced filter), AVS_UNAVAILABLE_OR_UNSUPPORTED (address verification service unavailable or not supported -- advanced filter), CARD_SECURITY_CODE_MISMATCH (advanced filter), BILLING_OR_SHIPPING_ADDRESS_MISMATCH (advanced filter), RISKY_ZIP_CODE (high risk lists filter), SUSPECTED_FREIGHT_FORWARDER_CHECK (high risk lists filter), RISKY_EMAIL_ADDRESS_DOMAIN_CHECK (high risk lists filter), RISKY_BANK_IDENTIFICATION_NUMBER_CHECK (high risk lists filter), RISKY_IP_ADDRESS_RANGE (high risk lists filter), LARGE_ORDER_NUMBER (transaction data filter), TOTAL_PURCHASE_PRICE_MINIMUM (transaction data filter), IP_ADDRESS_VELOCITY (transaction data filter), and PAYPAL_FRAUD_MODEL (transaction data filter).
FmfFilterType String The type of the fraud management filter. One of the following: ACCEPT (an ACCEPT filter is triggered only for the TOTAL_PURCHASE_PRICE_MINIMUM filter setting and is returned only in direct credit card payments where payment is accepted), PENDING (triggers a PENDING filter action where you need to explicitly accept or deny the transaction), DENY (triggers a DENY action where payment is denied automatically), and REPORT (triggers the Flag testing mode where payment is accepted).
FmfName String The name of the filter.
ParentPayment String The ID of the payment resource on which this transaction is based.
PaymentMode String The payment mode of the transaction. Only supported when the payment method is set to paypal. One of the following: INSTANT_TRANSFER, MANUAL_BANK_TRANSFER, DELAYED_TRANSFER, or ECHECK.
PendingReason String The reason the transaction is in a pending state. Only supported when the payment method is set to paypal. One of the following: PAYER-SHIPPING-UNCONFIRMED, MULTI-CURRENCY, RISK-REVIEW, REGULATORY-REVIEW, VERIFICATION-REQUIRED , ORDER, or OTHER.
ProtectionEligibility String The level of seller protection in force for the transaction. Only supported when the payment method is set to paypal. One of the following: ELIGIBLE, PARTIALLY_ELIGIBLE, INELIGIBLE.
ProtectionEligibilityType String The kind of seller protection in force for the transaction. This property is returned only when the ProtectionEligibility property is set to ELIGIBLE or PARTIALLY_ELIGIBLE. Only supported when the payment method is set to paypal. One of the following: ITEM_NOT_RECEIVED_ELIGIBLE or UNAUTHORIZED_PAYMENT_ELIGIBLE. One or both of the allowed values can be returned.
ReasonCode String The reason code for the transaction state being Pending or Reversed. Only supported when the payment method is set to paypal. One of the following: CHARGEBACK, GUARANTEE, BUYER_COMPLAINT, REFUND, UNCONFIRMED_SHIPPING_ADDRESS, ECHECK, INTERNATIONAL_WITHDRAWAL, RECEIVING_PREFERENCE_MANDATES_MANUAL_ACTION, PAYMENT_REVIEW, REGULATORY_REVIEW, UNILATERAL, or VERIFICATION_REQUIRED.
ReceiptId String The 16-digit number payment identification number returned for guest users to identify the payment.
ReceivableAmount Decimal The receivable amount.
TransactionFee Decimal The transaction fee.
UpdateTime Datetime The time that the sale was last updated.
Subscriptions

Get billing and subscription details.

Table Specific Information

Select

The only filter supported by the PayPal API is Id, which is required. The connector processes other filters client side within the connector.

SELECT * FROM Subscriptions WHERE ID = '1234'

Note

We can get get the SubscriptionId by creating the subscription using CreateSubscription Stored procedure.

The connector processes other filters client side within the connector.

Columns
Name Type References Description
Id [KEY] String The PayPal-generated ID for the subscription.
BillingInfocycle_executions String The trial and regular billing executions.
BillingInfo_FailedPaymentsCount Integer The Failed payments count.
BillingInfo_LastPaymentAmountCurrencyCode String The last payment amount currency code.
BillingInfo_LastPaymentAmountValue String The last payment amount.
BillingInfo_LastPaymentTime Datetime The date and time when the last payment was made.
BillingInfo_NextBillingTime Datetime The next date and time for billing this subscription.
BillingInfo_OutstandingBalanceCurrencyCode String The total pending bill amount, to be paid by the subscriber.
BillingInfo_outstandingBalanceValue String The total pending bill amount, to be paid by the subscriber.
CreateTime Datetime The date and time of subscription created.
Links String Links for the subscription objects.
PlanId String The ID of the plan.
Quantity Integer The quantity of the product in the subscription.
ShippingAmountCurrencyCode String The currency for a financial transaction, such as a balance or payment due.
ShippingAmountValue String The amount for a financial transaction, such as a balance or payment due.
StartTime Datetime The start date and time of the subscription.
Status String The status of the subscription. The allowed values are APPROVAL_PENDING, APPROVED, ACTIVE, SUSPENDED, CANCELLED, EXPIRED.
StatusUpdateTime Datetime The date and time of status updated.
SubscriberEmailAddress String The email address of the payer.
SubscriberName_GivenName String The given name of the payer.
SubscriberName_Surname String The sur name of the payer.
SubscriberPayerId String The PayPal-assigned ID for the payer.
SubscriberShippingAddress_AddressAddressLine1 String Primary address of the payer.
SubscriberShippingAddress_AddressAddressLine2 String Secondary address of the payer.
SubscriberShippingAddress_AddressAdminArea1 String Primary address of the payer.
SubscriberShippingAddress_AddressAdminArea2 String Secondary address of the payer.
SubscriberShippingAddress_AddressCountryCode String Country code of the payer address.
SubscriberShippingAddress_AddressPostalCode String Postal code of the payer address.
SubscriberShippingAddress_NameFullName String Full name of the Payer.
UpdateTime Datetime The date and time of subscription updated.
SubscriberShippingAddress_Type String The method by which the payer wants to get their items from the payee e.g shipping, in-person pickup.
SubscriberPhoneType String The phone type.
SubscriberPhoneNumber String The phone number, in its canonical international E.164 numbering plan format.
StatusChangeNote String The reason or notes for the status of the subscription.
CustomId String The custom ID for the subscription. Can be invoice id.
PlanOverridden Boolean Indicates whether the subscription has overridden any plan attributes.
BillingInfo_LastPaymentStatus String The status of the captured payment.
BillingInfo_FinalPaymentTime Datetime The date and time when the final billing cycle occurs, in Internet date and time format.
SubscriptionTransactions

Lists transactions for a subscription.

Table Specific Information

Select

This view returns a list of transactions with details for a specific subscription.

The following filters are supported by the PayPal API:

  • SubscriptionId
  • StartTime
  • EndTime
SELECT * FROM SubscriptionTransactions WHERE SubscriptionId = '1234'
SELECT * FROM SubscriptionTransactions WHERE SubscriptionId = '1234' AND StartTime = '2018-01-21T07:50:20.940Z' AND EndTime = '2018-08-21T07:50:20.940Z'

Note

  1. SubscriptionId, StartTime and EndTime are the required parameters for this view and if StartTime and EndTime are not specified in the query the default values will be assigned from the code.

2. We can get get the SubscriptionId by creating the subscription using CreateSubscription Stored procedure.

The connector processes other filters client side within the connector.

Columns
Name Type References Description
Id [KEY] String The ID of the transaction.
SubscriptionId String Subscriptions.Id The ID of the subscription.
AmountWithBreakdown_FeeAmountCurrencyCode String The fee details for the transaction.
AmountWithBreakdown_FeeAmountValue String The fee details for the transaction.
AmountWithBreakdown_GrossAmountCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
AmountWithBreakdown_GrossAmountValue String The value of the currency.
AmountWithBreakdown_NetAmountCurrencyCode String The currency code of the net amount that the payee receives for this transaction in their PayPal account.
AmountWithBreakdown_NetAmountValue String The net amount that the payee receives for this transaction in their PayPal account.
PayerEmail String The email ID of the customer.
PayerNameGivenName String When the party is a person, the party's given, or first, name.
PayerNameSurname String When the party is a person, the party's surname or family name. Also known as the last name.
Status String The initial state of the plan. The allowed values are COMPLETED, DECLINED, PARTIALLY_REFUNDED, PENDING, REFUNDED.
Time Datetime The date and time when the transaction was processed.
AmountWithBreakdown_TotalItemAmountCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
AmountWithBreakdown_TotalItemAmountValue Decimal The item total for the transaction.
AmountWithBreakdown_ShippingAmountCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
AmountWithBreakdown_ShippingAmountValue Decimal The shipping amount for the transaction.
AmountWithBreakdown_TaxAmountCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
AmountWithBreakdown_TaxAmountValue Decimal The tax amount for the transaction.
Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
StartTime Datetime
EndTime Datetime
Templates

Lists merchant-created templates with associated details.

Table Specific Information

Select

The only filter supported by the PayPal API is Id. Server-side processing is only supported for the '=' operator.

Select * from Templates where ID = 'TEMP-3RK55758SK521635N'

The connector processes other filters client side within the connector.

Columns
Name Type References Description
Id [KEY] String The ID of the template.
Name String The template name.
DefaultTemplate Boolean Indicates whether this template is the default template.
StandardTemplate Boolean Indicates whether this template is a invoicer-created custom template. The system generates non-custom templates.
Links String An array of request-related HATEOAS links.
TemplateInfoDetailReference String The reference data. Includes a Purchase Order (PO) number.
TemplateInfoDetailNote String A note to the invoice recipient. Also appears on the invoice notification email.
TemplateInfoDetailTermsAndConditions String The general terms of the invoice. Can include return or cancellation policy and other terms and conditions.
TemplateInfoDetailMemo String A private bookkeeping memo for the user.
TemplateInfoDetailCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
TemplateInfoDetailPaymentTermType String The payment term. Payment can be due upon receipt, a specified date, or in a set number of days.
TemplateInfoMetadataCreatedBy String The email address of the account that created the resource.
TemplateInfoMetadataLastUpdatedBy String The email address of the account that last edited the resource.
TemplateInfoMetadataCreateTime Datetime The date and time, in Internet date and time format.
TemplateInfoMetadataLastUpdateTime Datetime The date and time, in Internet date and time format.
TemplateInfoInvoicerBusinessName String The business name of the party.
TemplateInfoInvoicerPrefixName String The prefix, or title, to the party's name.
TemplateInfoInvoicerFirstName String When the party is a person, the party's given, or first, name.
TemplateInfoInvoicerMiddleName String When the party is a person, the party's middle name. Use also to store multiple middle names including the patronymic, or father's, middle name.
TemplateInfoInvoicerLastName String When the party is a person, the party's surname or family name. Also known as the last name. Required when the party is a person.
TemplateInfoInvoicerSuffixName String The suffix for the party's name.
TemplateInfoInvoicerFullName String When the party is a person, the party's full name.
TemplateInfoInvoicerAddressLine1 String The first line of the address. For example, number or street.
TemplateInfoInvoicerAddressLine2 String The second line of the address. For example, suite or apartment number.
TemplateInfoInvoicerAddressLine3 String The third line of the address, if needed.
TemplateInfoInvoicerAddressAdminArea1 String The highest level sub-division in a country, which is usually a province, state, or ISO-3166-2 subdivision.
TemplateInfoInvoicerAddressAdminArea2 String A city, town, or village.
TemplateInfoInvoicerAddressAdminArea3 String A sub-locality, suburb, neighborhood, or district.
TemplateInfoInvoicerAddressAdminArea4 String The neighborhood, ward, or district.
TemplateInfoInvoicerAddressPostalCode String The postal code, which is the zip code or equivalent. Typically required for countries with a postal code or an equivalent.
TemplateInfoInvoicerAddressCountryCode String The two-character ISO 3166-1 code that identifies the country or region.
TemplateInfoInvoicerAddressStreetNumber String The street number.
TemplateInfoInvoicerAddressStreetName String The street name. Just Drury in Drury Lane.
TemplateInfoInvoicerAddressStreetType String The street type. For example, avenue, boulevard, road, or expressway.
TemplateInfoInvoicerAddressDeliveryService String The delivery service. Post office box, bag number, or post office name.
TemplateInfoInvoicerAddressBuildingName String A named locations that represents the premise. Usually a building name or number or collection of buildings with a common name or number.
TemplateInfoInvoicerAddressSubBuilding String The first-order entity below a named building or location that represents the sub-premise. Usually a single building within a collection of buildings with a common name.
TemplateInfoInvoicerPhones String An array of invoicer's phone numbers. The invoicer can choose to hide the phone number on the invoice.
TemplateInfoInvoicerWebsite String The invoicer's website.
TemplateInfoInvoicerTaxId String The invoicer's tax ID.
TemplateInfoInvoicerAdditionalNotes String Any additional information. Includes business hours.
TemplateInfoInvoicerLogoUrl String The full URL to an external logo image. The logo image must not be larger than 250 pixels wide by 90 pixels high.
TemplateInfoInvoicerEmail String The invoicer email address, which must be listed in the user's PayPal profile.
TemplateInfoConfigurationTaxCalculatedAfterDiscount Boolean Indicates whether the tax is calculated before or after a discount.
TemplateInfoConfigurationTaxInclusive Boolean Indicates whether the unit price includes tax.
TemplateInfoConfigurationAllowTip Boolean Indicates whether the invoice enables the customer to enter a tip amount during payment.
TemplateInfoConfigurationAllowPartialPayment Boolean Indicates whether the invoice allows a partial payment. If false, the invoice must be paid in full. If true, the invoice allows partial payments.
TemplateInfoConfigurationMinimumAmountDue Decimal The minimum amount allowed for a partial payment. Valid only when allow_partial_payment is true.
TemplateInfoConfigurationMinimumAmountDueCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
TemplateInfoAmountValue Decimal The invoice amount summary of item total, discount, tax total and shipping.
TemplateInfoAmountCurrencyCode String The invoice amount summary of item total, discount, tax total and shipping.
TemplateInfoAmountBreakdownItemTotalValue Decimal The amount for a financial transaction, such as a balance or payment due.
TemplateInfoAmountBreakdownItemTotalCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
TemplateInfoAmountBreakdownInvoiceDiscountPercentage Decimal The discount as a percentage value. Value is from 0 to 100.
TemplateInfoAmountBreakdownInvoiceDiscountValue Decimal The invoice level discount amount.
TemplateInfoAmountBreakdownInvoiceDiscountCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
TemplateInfoAmountBreakdownItemDiscountValue Decimal The amount for a financial transaction, such as a balance or payment due.
TemplateInfoAmountBreakdownItemDiscountCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
TemplateInfoAmountBreakdownTaxTotalValue Decimal The amount for a financial transaction, such as a balance or payment due.
TemplateInfoAmountBreakdownTaxTotalCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
TemplateInfoAmountBreakdownShippingAmountValue Decimal The shipping fee for all items. Includes tax on shipping.
TemplateInfoAmountBreakdownShippingAmountCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
TemplateInfoAmountBreakdownShippingTaxAmountValue Decimal The calculated tax amount. The tax amount is added to the item total.
TemplateInfoAmountBreakdownShippingTaxAmountCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
TemplateInfoAmountBreakdownShippingTaxPercentage Decimal The tax rate.
TemplateInfoAmountBreakdownShippingTaxName String The name of the tax applied on the invoice items.
TemplateInfoAmountBreakdownShippingTaxNote String The tax note used to track the tax related data.
TemplateInfoAmountBreakdownCustomLabel String The label to the custom amount of the invoice.
TemplateInfoAmountBreakdownCustomAmountValue Decimal The custom amount to apply to an invoice.
TemplateInfoAmountBreakdownCustomAmountCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
TemplateInfoDueAmountValue Decimal The amount for a financial transaction, such as a balance or payment due.
TemplateInfoDueAmountCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
ItemSettings String The template item headers display preference.
SubtotalSettings String The template subtotal headers display preference.
UnitOfMeasure String The unit of measure for the invoiced item. The allowed values are QUANTITY, HOURS, AMOUNT.
TransactionReports

Lists transaction reports.

Table Specific Information

Select

The filters supported by the PayPal API are StartDate, EndDate, TransactionId, PaymentInstrumentType, BalanceAffectingRecordsOnly, StoreId, TerminalId, TransactionAmount, TransactionCurrency, TransactionStatus, TransactionType. Server-side processing is only supported for the '=' operator.

SELECT * FROM TransactionReports WHERE StartDate = '2021-09-06 12:12:12' AND EndDate = '2021-09-11 12:12:12'

The connector processes other filters client side within the connector.

Columns
Name Type References Description
AccountNumber String The merchant account number.
LastRefreshedDatetime Datetime The date and time when the data was last refreshed, in Internet date and time format.
AuctionInfoAuctionBuyerId String The ID of the buyer who makes the purchase in the auction.
AuctionInfoAuctionClosingDate Datetime The date and time when the auction closes.
AuctionInfoAuctionItemSite String The auction site URL.
AuctionInfoAuctionSite String The name of the auction site.
PayerInfoAccountId String The PayPal customer account ID.
PayerInfoAddressStatus String The address status of the payer.
PayerInfoCountryCode String The two-character ISO 3166-1 code that identifies the country or region of the payer.
PayerInfoEmailAddress String The email address of the payer.
PayerInfoPayerNameAlternateFullName String The party's alternate name.
PayerInfoPayerNameGivenName String When the party is a person, the party's given, or first, name.
PayerInfoPayerNameSurname String When the party is a person, the party's surname or family name. Also known as the last name. Required when the party is a person. Use also to store multiple surnames including the matronymic, or mother's, surname.
PayerInfoPayerStatus String The status of the payer. Value is Y or N.
ShippingInfoAddressCity String The city name.
ShippingInfoAddressCountryCode String The two-character ISO 3166-1 code that identifies the country or region.
ShippingInfoAddressLine1 String The first line of the address. For example, number or street.
ShippingInfoAddressLine2 String The second line of the address. For example, suite or apartment number.
ShippingInfoAddressPostalCode String The postal code, which is the zip code or equivalent.
ShippingInfoName String The recipient's name.
StoreInfoStoreId String The ID of a store for a merchant in the system of record.
StoreInfoTerminalId String The terminal ID for the checkout stand in a merchant store.
TransactionInfoCustomField String The merchant-provided custom text.
TransactionInfoFeeAmountCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
TransactionInfoFeeAmountValue String The value of fee.
TransactionInfoInsuranceAmountCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
TransactionInfoInsuranceAmountValue String The value of insurance amount.
TransactionInfoInvoiceId String The invoice ID that is sent by the merchant with the transaction.
TransactionInfoPaypalAccountId String The ID of the PayPal account of the counterparty.
TransactionInfoProtectionEligibility String Indicates whether the transaction is eligible for protection.
TransactionInfoShippingAmountCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
TransactionInfoShippingAmountValue String The value of shipping amount.
TransactionInfoShippingDiscountAmountCurrency_code String The three-character ISO-4217 currency code that identifies the currency.
TransactionInfoShippingDiscountAmountValue String The value of shipping discount amount.
TransactionInfoTransactionAmountCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
TransactionInfoTransactionAmountValue String The value of transaction amount.
TransactionInfoTransactionEventCode String A five-digit transaction event code that classifies the transaction type based on money movement and debit or credit.
TransactionInfoTransactionId String The PayPal-generated transaction ID.
TransactionInfoTransactionInitiationDate Datetime The date and time when work on a transaction began in the PayPal system, as expressed in the time zone of the account on this side of the payment.
TransactionInfoTransactionNote String A special note that the payer passes to the payee. Might contain special customer requests, such as shipping instructions.
TransactionInfoTransactionStatus String A code that indicates the transaction status. The allowed values are D, P, S, V.
TransactionInfoTransactionSubject String The subject of payment. The payer passes this value to the payee. The payer controls this data through the interface through which he or she sends the data.
TransactionInfoTransactionUpdatedDate Datetime The date and time when the transaction was last changed, as expressed in the time zone of the account on this side of the payment.
TransactionInfoAnnualPercentageRate Decimal The percentage, as a fixed-point, signed decimal number.
PayerInfoAddressLine1 String The first line of the address. For example, number or street.
PayerInfoAddressLine2 String The second line of the address. For example, suite or apartment number.
PayerInfoAddressCity String The city name.
PayerInfoAddressState String The code for a US state or the equivalent for other countries.
PayerInfoAddressCountryCode String The two-character ISO 3166-1 code that identifies the country or region.
PayerInfoAddressPostalCode String The postal code, which is the zip code or equivalent.
ShippingInfoAddressState String The code for a US state or the equivalent for other countries.
ShippingInfoMethod String The shipping method that is associated with this order.
TransactionInfoPaypalReferenceId String The PayPal-generated base ID. PayPal exclusive.
TransactionInfoPaypalReferenceIdType String The PayPal reference ID type. The allowed values are ODR, TXN, SUB, PAP.
TransactionInfoPaymentTrackingId String The payment tracking ID, which is a unique ID that partners specify to either get information about a payment or request a refund.
TransactionInfoBankReferenceId String The bank reference ID.
TransactionInfoCreditTerm String The credit term.
TransactionInfoPaymentMethodType String The payment method that was used for a transaction. Value is PUI, installment, or mEFT.
TransactionInfoInstrumentType String A high-level classification of the type of financial instrument that was used to fund a payment. The pattern is not provided because the value is defined by an external party.
TransactionInfoInstrumentSubType String A finer-grained classification of the financial instrument that was used to fund a payment.
TransactionInfoDiscountAmountCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
TransactionInfoDiscountAmountValue Decimal The amount for a financial transaction, such as a balance or payment due.
TransactionInfoSalesTaxAmountCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
TransactionInfoSalesTaxAmountValue Decimal The amount for a financial transaction, such as a balance or payment due.
TransactionInfoShippingTaxAmountCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
TransactionInfoShippingTaxAmountValue Decimal The amount for a financial transaction, such as a balance or payment due.
TransactionInfoOtherAmountCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
TransactionInfoOtherAmountValue Decimal The amount for a financial transaction, such as a balance or payment due.
TransactionInfoTipAmountCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
TransactionInfoTipAmountValue Decimal The amount for a financial transaction, such as a balance or payment due.
TransactionInfoEndingBalanceCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
TransactionInfoEndingBalanceValue Decimal The amount for a financial transaction, such as a balance or payment due.
TransactionInfoAvailableBalanceCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
TransactionInfoAvailableBalanceValue Decimal The amount for a financial transaction, such as a balance or payment due.
TransactionInfoCreditTransactionalFeeCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
TransactionInfoCreditTransactionalFeeValue Decimal The amount for a financial transaction, such as a balance or payment due.
TransactionInfoCreditPromotionalFeeCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
TransactionInfoCreditPromotionalFeeValue Decimal The amount for a financial transaction, such as a balance or payment due.
PayerInfoPayerNameFullName String The party's full name.
Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
StartDate Datetime
EndDate Datetime
TransactionId String
PaymentInstrumentType String
BalanceAffectingRecordsOnly String
StoreId String
TerminalId String
TransactionAmount String
TransactionCurrency String
TransactionStatus String
TransactionType String
TransactionReportsCartInfoItemDetails

List Cart Info of Transaction Reports.

Table Specific Information

Select

The filters supported by the PayPal API are StartDate, EndDate, TransactionId, PaymentInstrumentType, BalanceAffectingRecordsOnly, StoreId, TerminalId, TransactionAmount, TransactionCurrency, TransactionStatus, TransactionType. Server-side processing is only supported for the '=' operator.

SELECT * FROM TransactionReportsCartInfoItemDetails WHERE StartDate = '2021-09-06 12:12:12' AND EndDate = '2021-09-11 12:12:12'

The connector processes other filters client side within the connector.

Columns
Name Type References Description
AccountNumber String The merchant account number.
LastRefreshedDatetime Datetime The date and time when the data was last refreshed, in Internet date and time format.
InvoiceNumber String The invoice number. An alphanumeric string that identifies a billing for a merchant.
ItemAmountCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
ItemAmountValue String The value of item amount.
ItemCode String An item code that identifies a merchant's goods or service.
ItemDescription String The item description.
ItemName String The item name.
ItemQuantity String The number of purchased units of goods or a service.
ItemUnitPriceCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
ItemUnitPriceValue String The value of item unit price.
TaxAmounts String An array of tax amounts levied by a government on the purchase of goods or services.
TotalItemAmountCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
TotalItemAmountValue String The value of total item amount.
DiscountAmountCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
DiscountAmountValue Decimal The amount for a financial transaction, such as a balance or payment due.
AdjustmentAmountCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
AdjustmentAmountValue Decimal The amount for a financial transaction, such as a balance or payment due.
GiftWrapAmountCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
GiftWrapAmountValue Decimal The amount for a financial transaction, such as a balance or payment due.
TaxPercentage Decimal The percentage, as a fixed-point, signed decimal number.
BasicShippingAmountCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
BasicShippingAmountValue Decimal The amount for a financial transaction, such as a balance or payment due.
ExtraShippingAmountCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
ExtraShippingAmountValue Decimal The amount for a financial transaction, such as a balance or payment due.
HandlingAmountCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
HandlingAmountValue Decimal The amount for a financial transaction, such as a balance or payment due.
InsuranceAmountCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
InsuranceAmountValue Decimal The amount for a financial transaction, such as a balance or payment due.
ItemOptions String The item options. Describes option choices on the purchase of the item in some detail.
Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
StartDate Datetime
EndDate Datetime
TransactionId String
PaymentInstrumentType String
BalanceAffectingRecordsOnly String
StoreId String
TerminalId String
TransactionAmount String
TransactionCurrency String
TransactionStatus String
TransactionType String
TransactionReportsIncentiveDetails

List Incentive Details of Transaction Reports.

Columns
Name Type References Description
AccountNumber String The merchant account number.
LastRefreshedDatetime Datetime The date and time when the data was last refreshed, in Internet date and time format.
IncentiveAmountCurrencyCode String The three-character ISO-4217 currency code that identifies the currency.
IncentiveAmountValue String The value of incentive amount.
IncentiveCode String The code that identifies an incentive, such as a coupon.
IncentiveProgramCode String The incentive program code that identifies a merchant loyalty or incentive program.
IncentiveType String The type of incentive, such as a special offer or coupon.
Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
StartDate Datetime
EndDate Datetime
TransactionId String
PaymentInstrumentType String
BalanceAffectingRecordsOnly String
StoreId String
TerminalId String
TransactionAmount String
TransactionCurrency String
TransactionStatus String
TransactionType String
UserInfo

Shows OpenID Connect user profile information for standard claims.

Table Specific Information

Select

The connector processes all filters client side within the connector.

SELECT * FROM UserInfo
Columns
Name Type References Description
UserId String The user ID of the user.
Sub String The subject ID for the end user at the issuer.
Name String The full name of the user.
GivenName String The given, or first, name of the user.
FamilyName String The surname or family name of the user. Also known as the last name.
MiddleName String The middle name of the user.
Picture String The URL of the profile picture of the user.
Email String The internationalized email address.
EmailVerified Boolean Indicates whether the user's email address is verified.
Gender String The user's gender.
Birthdate Datetime The user's birthday, in YYYY-MM-DD format.
ZoneInfo String The time zone of the user.
Locale String The locale of the user.
PhoneNumber String The preferred telephone number of the user.
StreetAddress String The full street address. Can include the house number and street name.
Locality String The city or locality.
Region String The state, province, prefecture, or region.
PostalCode String The zip code or postal code.
Country String The country.
VerifiedAccount Boolean Indicates whether the account is verified.
AccountType String The account type. The allowed values are PERSONAL, BUSINESS, PREMIER.
AgeRange String The account holder's age range.
Users

Lists users.

Table Specific Information

Select

The only filter supported by the PayPal API is Id. Server-side processing is only supported for the '=' operator.

SELECT * FROM Users where ID = '7KXKZ3UWSTXNJ'

The connector processes other filters client side within the connector.

Columns
Name Type References Description
Id [KEY] String The PayPal payer ID, which is a publicly-sharable of the PayPal account number intended for use with third parties.
UserName String Unique identifier for the User, typically used by the user to directly authenticate to the service provider.
GivenName String The given, or first, name of the user.
FamilyName String The surname or family name of the user. Also known as the last name.
MiddleName String The middle name of the user.
ExternalId String A String that is an identifier for the resource as defined by the external or 3rd party client.
Active Boolean The URL of the profile picture of the user.
Emails String Email addresses for the user.
PhoneNumbers String Phone numbers for the User.
Addresses String Addresses for the User.
Entitlements String A list of entitlements for the User that represent a thing the User has.
PreferredLanguage String The language tag for the language in which to localize the error-related strings, such as messages, issues, and suggested actions.
Timezone String The time zone, in IANA format.
Schemas String An array of identified schemas.
MetaResourceType String The name of the metadata resource type of the resource: User, Group, etc.
MetaLocation String The complete metadata target URL.
MetaCreated Datetime The created date and time of metadata, in Internet date and time format.
MetaLastModified Datetime The last modified date and time of metadata, in Internet date and time format.
Webhooks

Query the list of Webhooks.

Table Specific Information

Select

The PayPal API does not support any filters on this table. However, projections are supported. All filters are processed client side within the connector.

Columns
Name Type References Description
Id [KEY] String The identifier of the webhook resource.
Url String The webhook notification endpoint URL.

Stored Procedures

Stored procedures are function-like interfaces that extend the functionality of the connector beyond simple SELECT operations with PayPal.

Stored procedures accept a list of parameters, perform their intended function, and then return any relevant response data from PayPal, along with an indication of whether the procedure succeeded or failed.

PayPal Connector Stored Procedures
Name Description
CreateDraftInvoice Creates a draft invoice.
CreateOrder Creates an order. Merchants and partners can add Level 2 and 3 data to payments to reduce risk and payment processing costs.
CreatePayment Creates a sale, an authorized payment to be captured later, or an order.
CreatePayouts Makes payouts in PayPal.
CreateSubscription Create a subscription for PayPal.
DeleteInvoice Deletes a draft or scheduled invoice, by ID.
GetOAuthAccessToken Gets the OAuth access token from PayPal.
SendInvoice Send an Invoice, by Id, to a customer.
CreateDraftInvoice

Creates a draft invoice.

Stored Procedure Specific Information

The CreateDraftInvoice Stored Procedure requires following columns to execute:

  • InvoiceItems
  • DetailCurrencyCode

You can include additional fields to enhance the details in the draft invoice.

EXEC CreateDraftInvoice @DetailCurrencyCode = 'USD', @InvoiceItems = '[\n" +
              "    {\n" +
              "      \"name\": \"Yoga Mat\",\n" +
              "      \"description\": \"Elastic mat to practice yoga.\",\n" +
              "      \"quantity\": \"1\",\n" +
              "      \"unit_amount\": {\n" +
              "        \"currency_code\": \"USD\",\n" +
              "        \"value\": \"50.00\"\n" +
              "      },\n" +
              "      \"tax\": {\n" +
              "        \"name\": \"Sales Tax\",\n" +
              "        \"percent\": \"7.25\"\n" +
              "      },\n" +
              "      \"discount\": {\n" +
              "        \"percent\": \"5\"\n" +
              "      },\n" +
              "      \"unit_of_measure\": \"QUANTITY\"\n" +
"    }]'

Input

Name Type Required Description
PrimaryRecipients String False A JSON aggregate which contains an array of individual PrimaryRecipients which includes the billing and shipping information of each primary recipient.
AdditionalRecipients String False An array of one or more CC: emails to which notifications are sent. If you omit this parameter, a notification is sent to all CC: email addresses that are part of the invoice.
InvoiceItems String True A JSON aggregate which contains an array of individual invoice line item information.
DetailReference String False The reference data. Includes a post office (PO) number.
DetailNote String False A note to the invoice recipient. Also appears on the invoice notification email.
DetailTermsAndConditions String False The general terms of the invoice. Can include return or cancellation policy and other terms and conditions.
DetailMemo String False A private bookkeeping memo for the user.
DetailAttachments String False An array of PayPal IDs for the files that are attached to an invoice.
DetailCurrencyCode String True The three-character ISO-4217 currency code that identifies the currency.
DetailInvoiceNumber String False The invoice number. Default is the number that is auto-incremented number from the last number.
DetailInvoiceDate String False The stand-alone date, in Internet date and time format.
DetailPaymentTermType String False The payment term type of the invoice. Payment can be due upon receipt, a specified date, or in a set number of days.
DetailPaymentTermDueDate String False The stand-alone date, in Internet date and time format.
InvoicerBussinessName String False The business name of the party.
InvoicerName String False A JSON aggregate which contains the name of the party.
InvoicerAddress String False A JSON aggregate which contains the portable international postal address.
InvoicerPhones String False A JSON aggregate which contains an array of invoicer's phone numbers.
InvoicerWebsite String False The invoicer's website.
InvoicerTaxId String False The invoicer's tax ID.
InvoicerAdditionalNotes String False Any additional information. Includes business hours.
InvoicerLogoUrl String False The full URL to an external logo image.
InvoicerEmailAddress String False The internationalized email address with more restrictive rules.
ConfigurationTaxCalculatedAfterDiscount Boolean False Indicates whether the tax is calculated before or after a discount. If false, the tax is calculated before a discount. If true, the tax is calculated after a discount.
ConfigurationTaxInclusive Boolean False Indicates whether the unit price includes tax.
ConfigurationAllowTip Boolean False Indicates whether the invoice enables the customer to enter a tip amount during payment. If true, the invoice shows a tip amount field so that the customer can enter a tip amount. If false, the invoice does not show a tip amount field.
ConfigurationAllowPartialPayment Boolean False Indicates whether the invoice allows a partial payment. If false, the invoice must be paid in full. If true, the invoice allows partial payments.
ConfigurationPartialPaymentMinAmountDueCurrencyCode String False The three-character ISO-4217 currency code that identifies the currency.
ConfigurationPartialPaymentMinAmountDueValue String False The amount value for a financial transaction, such as a balance or payment due.
ConfigurationTemplateId String False The template ID. The template determines the layout of the invoice.
Amount String False A JSON aggregate which contains the breakdown of the amount. Includes total item amount, total tax amount, custom amount, and shipping and discounts, if any.
Payments String False A JSON aggregate which contains an array of payments registered against the invoice.
Refunds String False A JSON aggregate which contains the invoicing refund details. Includes the refund type, date, amount, and method.

Result Set Columns

Name Type Description
Id String The ID of the invoice.
Status String The PayPal-generated invoice status. If the draft invoice is created, the status is DRAFT.
CreateOrder

Creates an order. Merchants and partners can add Level 2 and 3 data to payments to reduce risk and payment processing costs.

Stored Procedure Specific Information

The CreateOrder Stored Procedure requires following columns to execute:

  • Intent
  • PurchaseUnits
EXEC CreateOrder @Intent = 'CAPTURE', @PurchaseUnits = ' [ {\n
              \"amount\": {\n
                \"currency_code\": \"USD\",\n
                \"value\": \"100.00\"\n
              }\n
}]'

Input

Name Type Required Description
Intent String True The payment intent: CAPTURE, AUTHORIZE
PurchaseUnits String True An array of purchase units. Each purchase unit establishes a contract between a payer and the payee.
PaymentSource String False The payment source definition.
ApplicationContext String False Customize the payer experience during the approval process for the payment with PayPal.

Result Set Columns

Name Type Description
Success Boolean Indicates whether the operation was successful or not.
Id String The PayPal-generated ID for the payment.
CreatePayment

Creates a sale, an authorized payment to be captured later, or an order.

Stored Procedure Specific Information

The CreatePayment Stored Procedure requires following columns to execute:

  • Intent
  • ReturnUrl
  • CancelUrl
  • PayerPaymentMethod
  • Transactions
EXEC CreatePayment @Intent = 'sale',  @ReturnUrl = 'https://example.com/return', @CancelUrl = 'https://example.com/cancel', @PayerPaymentMethod = 'paypal', @Transactions = '[\n" +
              "    {\n" +
              "      \"amount\": {\n" +
              "        \"total\": \"30.11\",\n" +
              "        \"currency\": \"USD\",\n" +
              "        \"details\": {\n" +
              "          \"subtotal\": \"30.00\",\n" +
              "          \"tax\": \"0.07\",\n" +
              "          \"shipping\": \"0.03\",\n" +
              "          \"handling_fee\": \"1.00\",\n" +
              "          \"shipping_discount\": \"-1.00\",\n" +
              "          \"insurance\": \"0.01\"\n" +
              "        }\n" +
              "      },\n" +
              "      \"description\": \"The payment transaction description.\",\n" +
              "      \"custom\": \"EBAY_EMS_90048630024435\",\n" +
              "      \"invoice_number\": \"48787589673\",\n" +
              "      \"payment_options\": {\n" +
              "        \"allowed_payment_method\": \"INSTANT_FUNDING_SOURCE\"\n" +
              "      },\n" +
              "      \"soft_descriptor\": \"ECHI5786786\",\n" +
              "      \"item_list\": {\n" +
              "        \"items\": [\n" +
              "          {\n" +
              "            \"name\": \"hat\",\n" +
              "            \"description\": \"Brown hat.\",\n" +
              "            \"quantity\": \"5\",\n" +
              "            \"price\": \"3\",\n" +
              "            \"tax\": \"0.01\",\n" +
              "            \"sku\": \"1\",\n" +
              "            \"currency\": \"USD\"\n" +
              "          },\n" +
              "          {\n" +
              "            \"name\": \"handbag\",\n" +
              "            \"description\": \"Black handbag.\",\n" +
              "            \"quantity\": \"1\",\n" +
              "            \"price\": \"15\",\n" +
              "            \"tax\": \"0.02\",\n" +
              "            \"sku\": \"product34\",\n" +
              "            \"currency\": \"USD\"\n" +
              "          }\n" +
              "        ],\n" +
              "        \"shipping_address\": {\n" +
              "          \"recipient_name\": \"Brian Robinson\",\n" +
              "          \"line1\": \"4th Floor\",\n" +
              "          \"line2\": \"Unit #34\",\n" +
              "          \"city\": \"San Jose\",\n" +
              "          \"country_code\": \"US\",\n" +
              "          \"postal_code\": \"95131\",\n" +
              "          \"phone\": \"011862212345678\",\n" +
              "          \"state\": \"CA\"\n" +
              "        }\n" +
              "      }\n" +
              "    }\n" +
"  ]'

Input

Name Type Required Description
Intent String True The payment intent: sale, authorize, order
Transactions String True A JSON aggregate which contains an array of payment-related transactions.
NoteToPayer String False A free-form field that clients can use to send a note to the payer.
ReturnUrl String True The URL where the payer is redirected after he or she approves the payment.Required for PayPal account payments.
CancelUrl String True The URL where the payer is redirected after he or she cancels the payment.Required for PayPal account payments.
PayerPaymentMethod String True The payment method.
PayerFundingInstruments String False An array of a single funding instrument for the current payment. Valid only and required for the credit card payment method.
PayerInfo String False The payer information.
ApplicationContext String False Use the application context resource to customize payment flow experience for your buyers.

Result Set Columns

Name Type Description
Success Boolean Indicates whether the operation was successful or not.
Id String The PayPal-generated ID for the payment.
CreatePayouts

Makes payouts in PayPal.

Table Specific Information

Payout Items

You cannot create a payout without payout items. To create payout items, you must insert data either using a JSON aggregate or via temporary table called 'PayoutItem#TEMP'. Refer to the following examples for more information.

Example: Create payouts using JSON aggregate

EXECUTE CreatePayouts SenderBatchId = '1247', EmailSubject = 'You have a payout!', EmailMessage = 'You have received a payout! Thanks for using our service!', PayoutItem = '[{\n" +
          "\"recipient_type\": \"EMAIL\",\n" +
          "\"amount\": {\n" +
          "\"value\": \"0.0\",\n" +
          "\"currency\": \"USD\"\n" +
          "},\n" +
          "\"note\": \"Thanks for your patronage3333!\",\n" +
          "\"receiver\": \"receiver@example.com\",\n" +
          "\"sender_item_id\": \"201403140001\"\n" +
          "}, {\n" +
          "\"recipient_type\": \"PHONE\",\n" +
          "\"amount\": {\n" +
          "\"value\": \"0.0\",\n" +
          "\"currency\": \"USD\"\n" +
          "\t},\n" +
          "\"note\": \"Thanks for your support!\",\n" +
          "\"receiver\": \"91-734-234-1234\",\n" +
          "\"sender_item_id\": \"201403140002\"\n" +
          "}\n" +

"]'

Example: Create payouts using temp table

You first need to insert into PayoutItem#TEMP to create payout items.

INSERT INTO PayoutItem#TEMP (RecipientType, AmountValue, AmountCurrency, Note, SenderItemId, Receiver) VALUES ('EMAIL', '3.2', 'USD', 'Thanks for your patronage!', '201403140001', 'receiver@example.com')
INSERT INTO PayoutItem#TEMP (RecipientType, AmountValue, AmountCurrency, Note, SenderItemId, Receiver) VALUES ('PHONE', '8.98', 'USD', 'Thanks for your support!', '201403140002', '91-734-234-1234')

Execute

After creating at least one payout item, you can execute the stored procedure.

EXECUTE CreatePayouts SenderBatchId = '123', EmailSubject = 'You have a payout!', EmailMessage = 'You have received a payout! Thanks for using our service!'

The following columns are required to create a payout item:

  • RecipientType
  • AmountValue
  • AmountCurrency
  • SenderItemId
  • Receiver

Input

Name Type Required Description
SenderBatchId String True A sender-specified ID number. Tracks the payout in an accounting system.
EmailSubject String False The subject line for the email that PayPal sends when payment for a payout item completes. The subject line is the same for all recipients.
EmailMessage String False The email message that PayPal sends when the payout item completes. The message is the same for all recipients.
PayoutItems String False A JSON aggregate which contains an array of individual payout items

Result Set Columns

Name Type Description
PayoutBatchId String The PayPal-generated ID for the payout.
BatchStatus String The PayPal-generated payout status. If the payout passes preliminary checks, the status is PENDING.
CreateSubscription

Create a subscription for PayPal.

Stored Procedure Specific Information

The CreateSubscription Stored Procedure requires PlanId to create a PayPal Subscription.

EXECUTE CreateSubscription PlanId = 'P-5ML4271244454362WXNWU5NQ', StartTime = '2021-11-01T00:00:00Z', ShippingAmount = '{\n" +
          "    \"currency_code\": \"USD\",\n" +
          "    \"value\": \"10.00\"\n" +
          "  }', subscriber = '{\n" +
          "    \"name\": {\n" +
          "      \"given_name\": \"John\",\n" +
          "      \"surname\": \"Doe\"\n" +
          "    },\n" +
          "    \"email_address\": \"customer@example.com\",\n" +
          "    \"shipping_address\": {\n" +
          "      \"name\": {\n" +
          "        \"full_name\": \"John Doe\"\n" +
          "      },\n" +
          "      \"address\": {\n" +
          "        \"address_line_1\": \"2211 N First Street\",\n" +
          "        \"address_line_2\": \"Building 17\",\n" +
          "        \"admin_area_2\": \"San Jose\",\n" +
          "        \"admin_area_1\": \"CA\",\n" +
          "        \"postal_code\": \"95131\",\n" +
          "        \"country_code\": \"US\"\n" +
          "      }\n" +
          "    }\n" +
"  }'

The following columns are required to create a subscription:

  • PlanId

Input

Name Type Required Description
PlanId String True The ID of the plan..
StartTime String False The date and time when the subscription started.
Quantity String False The quantity of the product in the subscription..
ShippingAmount String False A JSON aggregate which contain the shipping charges.
Subscriber String False A JSON aggregate which contain the subscriber request information.
ApplicationContext String False A JSON aggregate which contain the application context, which customizes the payer experience during the subscription approval process with PayPal.
CustomId String False The custom ID for the subscription. Can be invoice id.
Plan String False A JSON aggregate which contain An inline plan object to customise the subscription.

Result Set Columns

Name Type Description
SubscriptionId String The PayPal-generated ID for the subscription.
Status String The PayPal-generated subscription status.
DeleteInvoice

Deletes a draft or scheduled invoice, by ID.

Stored Procedure Specific Information

The DeleteInvoice Stored Procedure requires InvoiceId to delete an invoice.

EXEC DeleteInvoice @InvoiceId = 'INV2-VSCV-SAZK-CMHP-AHGB'

Input

Name Type Required Description
InvoiceId String True The ID of the draft invoice to delete.

Result Set Columns

Name Type Description
Success Boolean Indicates whether the operation was successful or not.
GetOAuthAccessToken

Gets the OAuth access token from PayPal.

Input
Result Set Columns
Name Type Description
OAuthAccessToken String The OAuth token.
ExpiresIn String The remaining lifetime for the access token in seconds.
SendInvoice

Send an Invoice, by Id, to a customer.

Input
Name Type Required Description
InvoiceId String True The ID of the invoice to send.
Subject String False The subject of the email that is sent as a notification to the recipient.
Note String False A note to the payer.
SendToInvoicer Boolean False Indicates whether to send a copy of the email to the merchant.
SendToRecipient Boolean False Indicates whether to send a copy of the email to the recipient.
AdditionalRecipients String False An array of one or more CC: emails to which notifications are sent. If you omit this parameter, a notification is sent to all CC: email addresses that are part of the invoice.
Result Set Columns
Name Type Description
Status String The PayPal-generated invoice status. If the draft invoice is sent, the status is SENT.

SOAP Data Model

The PayPal connector models the PayPal SOAP APIs as database Views. Typically, read-only data are shown as views. These are defined in schema files, which are simple, text-based configuration files that make schemas easy to customize.

This section provides the API limitations and requirements for the SOAP data model.

Views

Views are tables that cannot be modified. Typically, read-only data are shown as views.

Views

Views are similar to tables in the way that data is represented; however, views are read-only.

Queries can be executed against a view as if it were a normal table.

PayPal Connector Views
Name Description
Balance View all the currencies of the account and their balances.
BalanceAffecting Query Transactions that affect the account balance.
BalanceTransfer Query Transactions involving Balance Transfers.
BillPay Query Transactions involving BillPay Transactions.
CurrencyConversions Query Transactions involving Currency Conversions.
Dividend Query Transactions involving Dividends.
ECheck Query Transactions involving eChecks.
Fee Query Transactions involving Fees.
FundsAdded Query Transactions generated when funds are added to the balance.
FundsWithdrawn Query Transactions generated when funds are withdrawn from the balance.
MassPay Query Mass Payments Transactions.
MoneyRequest Query Money Request Transactions.
Received Query payments-received Transactions.
Referral Query Transactions involving Referrals.
Refund Query Transactions involving Refunds.
Reversal Query Transactions involving BillPay Reversals.
Sent Query payments-sent Transactions.
Shipping Query Transactions involving UPS Shipping Fees.
Subscription Query Transactions involving Subscriptions.
TransactionDetails Query details about a specific Transaction using the GetTransactionDetails API.
TransactionItems Query details about a specific Transaction's items using the GetTransactionDetails API.
Transactions Query Transaction history using the TransactionSearch API.
Balance

View all the currencies of the account and their balances.

Columns
Name Type References Description
CurrencyID String The currency of the balance.
Balance Double The balance of the associated currency.
BalanceAffecting

Query Transactions that affect the account balance.

Columns
Name Type References Description
Id [KEY] String The ID of the transaction record of the merchant.
PayerDisplayName String The display name of the buyer.
NetAmount Decimal The net amount of the transaction.
FeeAmount Decimal The fee that PayPal charged for the transaction.
GrossAmount Decimal The total gross amount charged, including any profile shipping cost and taxes.
Status String The status of the transaction.
Date Datetime Date and time that the transaction occurred. Character length and limitations: The date and time of the transaction.
Timezone String The time zone of the transaction. The value is always GMT.
Type String The type of the transaction. It is one of the following values: Currency Conversion (credit), Currency Conversion (debit), Payment, Recurring Payment, Temporary Hold, Transfer, Donation.
Payer String The email address of the buyer. Character length and limitations: 127 single-byte alphanumeric characters.
Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
Amount String
AuctionItemNumber String
CardNumber String
CurrencyCode String
InvoiceId String
ProfileId String
ReceiptId String
Receiver String
PayerName String
BalanceTransfer

Query Transactions involving Balance Transfers.

Columns
Name Type References Description
Id [KEY] String The ID of the transaction record of the merchant.
PayerDisplayName String The display name of the buyer.
NetAmount Decimal The net amount of the transaction.
FeeAmount Decimal The fee that PayPal charged for the transaction.
GrossAmount Decimal The total gross amount charged, including any profile shipping cost and taxes.
Status String The status of the transaction.
Date Datetime The date and time that the transaction occurred.
Timezone String The time zone of the transaction. The value is always GMT.
Type String The type of the transaction. It is one of the following values: Currency Conversion (credit), Currency Conversion (debit), Payment, Recurring Payment, Temporary Hold, Transfer, or Donation.
Payer String The email address of the buyer. Character length and limitations: 127 single-byte alphanumeric characters.
Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
Amount String
AuctionItemNumber String
CardNumber String
CurrencyCode String
InvoiceId String
ProfileId String
ReceiptId String
Receiver String
PayerName String
BillPay

Query Transactions involving BillPay Transactions.

Columns
Name Type References Description
Id [KEY] String The ID of the transaction record of the merchant.
PayerDisplayName String The display name of the buyer.
NetAmount Decimal The net amount of the transaction.
FeeAmount Decimal The fee that PayPal charged for the transaction.
GrossAmount Decimal The total gross amount charged, including any profile shipping cost and taxes.
Status String The status of the transaction.
Date Datetime The date and time that the transaction occurred.
Timezone String The time zone of the transaction. The value is always GMT.
Type String The type of the transaction. It is one of the following values: Currency Conversion (credit), Currency Conversion (debit), Payment, Recurring Payment, Temporary Hold, Transfer, Donation.
Payer String The email address of the buyer. Character length and limitations: 127 single-byte alphanumeric characters.
Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
Amount String
AuctionItemNumber String
CardNumber String
CurrencyCode String
InvoiceId String
ProfileId String
ReceiptId String
Receiver String
PayerName String
CurrencyConversions

Query Transactions involving Currency Conversions.

Columns
Name Type References Description
Id [KEY] String The ID of the transaction record of the merchant.
PayerDisplayName String The display name of the buyer.
NetAmount Decimal The net amount of the transaction.
FeeAmount Decimal The fee that PayPal charged for the transaction.
GrossAmount Decimal The total gross amount charged, including any profile shipping cost and taxes.
Status String The status of the transaction.
Date Datetime The date and time that the transaction occurred.
Timezone String The time zone of the transaction. The value is always GMT.
Type String The type of the transaction. It is one of the following values: Currency Conversion (credit), Currency Conversion (debit), Payment, Recurring Payment, Temporary Hold, Transfer, Donation.
Payer String The email address of the buyer. Character length and limitations: 127 single-byte alphanumeric characters.
Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
Amount String
AuctionItemNumber String
CardNumber String
CurrencyCode String
InvoiceId String
ProfileId String
ReceiptId String
Receiver String
PayerName String
Dividend

Query Transactions involving Dividends.

Columns
Name Type References Description
Id [KEY] String The ID of the transaction record of the merchant.
PayerDisplayName String The display name of the buyer.
NetAmount Decimal The net amount of the transaction.
FeeAmount Decimal The fee that PayPal charged for the transaction.
GrossAmount Decimal The total gross amount charged, including any profile shipping cost and taxes.
Status String The status of the transaction.
Date Datetime The date and time that the transaction occurred.
Timezone String The time zone of the transaction. The value is always GMT.
Type String The type of the transaction. It is one of the following values: Currency Conversion (credit), Currency Conversion (debit), Payment, Recurring Payment, Temporary Hold, Transfer, Donation.
Payer String The email address of the buyer. Character length and limitations: 127 single-byte alphanumeric characters.
Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
Amount String
AuctionItemNumber String
CardNumber String
CurrencyCode String
InvoiceId String
ProfileId String
ReceiptId String
Receiver String
PayerName String
ECheck

Query Transactions involving eChecks.

Columns
Name Type References Description
Id [KEY] String The ID of the transaction record of the merchant.
PayerDisplayName String The display name of the buyer.
NetAmount Decimal The net amount of the transaction.
FeeAmount Decimal The fee that PayPal charged for the transaction.
GrossAmount Decimal The total gross amount charged, including any profile shipping cost and taxes.
Status String The status of the transaction.
Date Datetime The date and time that the transaction occurred.
Timezone String The time zone of the transaction. The value is always GMT.
Type String The type of the transaction. It is one of the following values: Currency Conversion (credit), Currency Conversion (debit), Payment, Recurring Payment, Temporary Hold, Transfer, Donation.
Payer String The email address of the buyer. Character length and limitations: 127 single-byte alphanumeric characters.
Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
Amount String
AuctionItemNumber String
CardNumber String
CurrencyCode String
InvoiceId String
ProfileId String
ReceiptId String
Receiver String
PayerName String
Fee

Query Transactions involving Fees.

Columns
Name Type References Description
Id [KEY] String The ID of the transaction record of the merchant.
PayerDisplayName String The display name of the buyer.
NetAmount Decimal The net amount of the transaction.
FeeAmount Decimal The fee that PayPal charged for the transaction.
GrossAmount Decimal The total gross amount charged, including any profile shipping cost and taxes.
Status String The status of the transaction.
Date Datetime The date and time that the transaction occurred.
Timezone String The time zone of the transaction. The value is always GMT.
Type String The type of the transaction. It is one of the following values: Currency Conversion (credit), Currency Conversion (debit), Payment, Recurring Payment, Temporary Hold, Transfer, Donation.
Payer String The email address of the buyer. Character length and limitations: 127 single-byte alphanumeric characters.
Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
Amount String
AuctionItemNumber String
CardNumber String
CurrencyCode String
InvoiceId String
ProfileId String
ReceiptId String
Receiver String
PayerName String
FundsAdded

Query Transactions generated when funds are added to the balance.

Columns
Name Type References Description
Id [KEY] String The ID of the transaction record of the merchant.
PayerDisplayName String The display name of the buyer.
NetAmount Decimal The net amount of the transaction.
FeeAmount Decimal The fee that PayPal charged for the transaction.
GrossAmount Decimal The total gross amount charged, including any profile shipping cost and taxes.
Status String The status of the transaction.
Date Datetime The date and time that the transaction occurred.
Timezone String The time zone of the transaction. The value is always GMT.
Type String The type of the transaction. It is one of the following values: Currency Conversion (credit), Currency Conversion (debit), Payment, Recurring Payment, Temporary Hold, Transfer, Donation.
Payer String The email address of the buyer. Character length and limitations: 127 single-byte alphanumeric characters.
Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
Amount String
AuctionItemNumber String
CardNumber String
CurrencyCode String
InvoiceId String
ProfileId String
ReceiptId String
Receiver String
PayerName String
FundsWithdrawn

Query Transactions generated when funds are withdrawn from the balance.

Columns
Name Type References Description
Id [KEY] String The ID of the transaction record of the merchant.
PayerDisplayName String The display name of the buyer.
NetAmount Decimal The net amount of the transaction.
FeeAmount Decimal The fee that PayPal charged for the transaction.
GrossAmount Decimal The total gross amount charged, including any profile shipping cost and taxes.
Status String The status of the transaction.
Date Datetime The date and time that the transaction occurred.
Timezone String The time zone of the transaction. The value is always GMT.
Type String The type of the transaction. It is one of the following values: Currency Conversion (credit), Currency Conversion (debit), Payment, Recurring Payment, Temporary Hold, Transfer, Donation.
Payer String The email address of the buyer. Character length and limitations: 127 single-byte alphanumeric characters.
Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
Amount String
AuctionItemNumber String
CardNumber String
CurrencyCode String
InvoiceId String
ProfileId String
ReceiptId String
Receiver String
PayerName String
MassPay

Query Mass Payments Transactions.

Columns
Name Type References Description
Id [KEY] String The ID of the transaction record of the merchant.
PayerDisplayName String The display name of the buyer.
NetAmount Decimal The net amount of the transaction.
FeeAmount Decimal The fee that PayPal charged for the transaction.
GrossAmount Decimal The total gross amount charged, including any profile shipping cost and taxes.
Status String The status of the transaction.
Date Datetime The date and time that the transaction occurred.
Timezone String The time zone of the transaction. The value is always GMT.
Type String The type of the transaction. It is one of the following values: Currency Conversion (credit), Currency Conversion (debit), Payment, Recurring Payment, Temporary Hold, Transfer, Donation.
Payer String The email address of the buyer. Character length and limitations: 127 single-byte alphanumeric characters.
Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
Amount String
AuctionItemNumber String
CardNumber String
CurrencyCode String
InvoiceId String
ProfileId String
ReceiptId String
Receiver String
PayerName String
MoneyRequest

Query Money Request Transactions.

Columns
Name Type References Description
Id [KEY] String The ID of the transaction record of the merchant.
PayerDisplayName String The display name of the buyer.
NetAmount Decimal The net amount of the transaction.
FeeAmount Decimal The fee that PayPal charged for the transaction.
GrossAmount Decimal The total gross amount charged, including any profile shipping cost and taxes.
Status String The status of the transaction.
Date Datetime The date and time that the transaction occurred.
Timezone String The time zone of the transaction. The value is always GMT.
Type String The type of the transaction. It is one of the following values: Currency Conversion (credit), Currency Conversion (debit), Payment, Recurring Payment, Temporary Hold, Transfer, Donation.
Payer String The email address of the buyer. Character length and limitations: 127 single-byte alphanumeric characters.
Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
Amount String
AuctionItemNumber String
CardNumber String
CurrencyCode String
InvoiceId String
ProfileId String
ReceiptId String
Receiver String
PayerName String
Received

Query payments-received Transactions.

Columns
Name Type References Description
Id [KEY] String The ID of the transaction record of the merchant.
PayerDisplayName String The display name of the buyer.
NetAmount Decimal The net amount of the transaction.
FeeAmount Decimal The fee that PayPal charged for the transaction.
GrossAmount Decimal The total gross amount charged, including any profile shipping cost and taxes.
Status String The status of the transaction.
Date Datetime The date and time that the transaction occurred.
Timezone String The time zone of the transaction. The value is always GMT.
Type String The type of the transaction. It is one of the following values: Currency Conversion (credit), Currency Conversion (debit), Payment, Recurring Payment, Temporary Hold, Transfer, Donation.
Payer String The email address of the buyer. Character length and limitations: 127 single-byte alphanumeric characters.
Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
Amount String
AuctionItemNumber String
CardNumber String
CurrencyCode String
InvoiceId String
ProfileId String
ReceiptId String
Receiver String
PayerName String
Referral

Query Transactions involving Referrals.

Columns
Name Type References Description
Id [KEY] String The ID of the transaction record of the merchant.
PayerDisplayName String The display name of the buyer.
NetAmount Decimal The net amount of the transaction.
FeeAmount Decimal The fee that PayPal charged for the transaction.
GrossAmount Decimal The total gross amount charged, including any profile shipping cost and taxes.
Status String The status of the transaction.
Date Datetime The date and time that the transaction occurred.
Timezone String The time zone of the transaction. The value is always GMT.
Type String The type of the transaction. It is one of the following values: Currency Conversion (credit), Currency Conversion (debit), Payment, Recurring Payment, Temporary Hold, Transfer, Donation.
Payer String The email address of the buyer. Character length and limitations: 127 single-byte alphanumeric characters.
Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
Amount String
AuctionItemNumber String
CardNumber String
CurrencyCode String
InvoiceId String
ProfileId String
ReceiptId String
Receiver String
PayerName String
Refund

Query Transactions involving Refunds.

Columns
Name Type References Description
Id [KEY] String The ID of the transaction record of the merchant.
PayerDisplayName String The display name of the buyer.
NetAmount Decimal The net amount of the transaction.
FeeAmount Decimal The fee that PayPal charged for the transaction.
GrossAmount Decimal The total gross amount charged, including any profile shipping cost and taxes.
Status String The status of the transaction.
Date Datetime The date and time that the transaction occurred.
Timezone String The time zone of the transaction. The value is always GMT.
Type String The type of the transaction. It is one of the following values: Currency Conversion (credit), Currency Conversion (debit), Payment, Recurring Payment, Temporary Hold, Transfer, Donation.
Payer String The email address of the buyer. Character length and limitations: 127 single-byte alphanumeric characters.
Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
Amount String
AuctionItemNumber String
CardNumber String
CurrencyCode String
InvoiceId String
ProfileId String
ReceiptId String
Receiver String
PayerName String
Reversal

Query Transactions involving BillPay Reversals.

Columns
Name Type References Description
Id [KEY] String The ID of the transaction record of the merchant.
PayerDisplayName String The display name of the buyer.
NetAmount Decimal The net amount of the transaction.
FeeAmount Decimal The fee that PayPal charged for the transaction.
GrossAmount Decimal The total gross amount charged, including any profile shipping cost and taxes.
Status String The status of the transaction.
Date Datetime The date and time that the transaction occurred.
Timezone String The time zone of the transaction. The value is always GMT.
Type String The type of the transaction. It is one of the following values: Currency Conversion (credit), Currency Conversion (debit), Payment, Recurring Payment, Temporary Hold, Transfer, Donation.
Payer String The email address of the buyer. Character length and limitations: 127 single-byte alphanumeric characters.
Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
Amount String
AuctionItemNumber String
CardNumber String
CurrencyCode String
InvoiceId String
ProfileId String
ReceiptId String
Receiver String
PayerName String
Sent

Query payments-sent Transactions.

Columns
Name Type References Description
Id [KEY] String The ID of the transaction record of the merchant.
PayerDisplayName String The display name of the buyer.
NetAmount Decimal The net amount of the transaction.
FeeAmount Decimal The fee that PayPal charged for the transaction.
GrossAmount Decimal The total gross amount charged, including any profile shipping cost and taxes.
Status String The status of the transaction.
Date Datetime The date and time that the transaction occurred.
Timezone String The time zone of the transaction. The value is always GMT.
Type String The type of the transaction. It is one of the following values: Currency Conversion (credit), Currency Conversion (debit), Payment, Recurring Payment, Temporary Hold, Transfer, Donation.
Payer String The email address of the buyer. Character length and limitations: 127 single-byte alphanumeric characters.
Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
Amount String
AuctionItemNumber String
CardNumber String
CurrencyCode String
InvoiceId String
ProfileId String
ReceiptId String
Receiver String
PayerName String
Shipping

Query Transactions involving UPS Shipping Fees.

Columns
Name Type References Description
Id [KEY] String The ID of the transaction record of the merchant.
PayerDisplayName String The display name of the buyer.
NetAmount Decimal The net amount of the transaction.
FeeAmount Decimal The fee that PayPal charged for the transaction.
GrossAmount Decimal The total gross amount charged, including any profile shipping cost and taxes.
Status String The status of the transaction.
Date Datetime The date and time that the transaction occurred.
Timezone String The time zone of the transaction. The value is always GMT.
Type String The type of the transaction. It is one of the following values: Currency Conversion (credit), Currency Conversion (debit), Payment, Recurring Payment, Temporary Hold, Transfer, Donation.
Payer String The email address of the buyer. Character length and limitations: 127 single-byte alphanumeric characters.
Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
Amount String
AuctionItemNumber String
CardNumber String
CurrencyCode String
InvoiceId String
ProfileId String
ReceiptId String
Receiver String
PayerName String
Subscription

Query Transactions involving Subscriptions.

Columns
Name Type References Description
Id [KEY] String The ID of the transaction record of the merchant.
PayerDisplayName String The display name of the buyer.
NetAmount Decimal The net amount of the transaction.
FeeAmount Decimal The fee that PayPal charged for the transaction.
GrossAmount Decimal The total gross amount charged, including any profile shipping cost and taxes.
Status String The status of the transaction.
Date Datetime The date and time that the transaction occurred.
Timezone String The time zone of the transaction. The value is always GMT.
Type String The type of the transaction. It is one of the following values: Currency Conversion (credit), Currency Conversion (debit), Payment, Recurring Payment, Temporary Hold, Transfer, Donation.
Payer String The email address of the buyer. Character length and limitations: 127 single-byte alphanumeric characters.
Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
Amount String
AuctionItemNumber String
CardNumber String
CurrencyCode String
InvoiceId String
ProfileId String
ReceiptId String
Receiver String
PayerName String
TransactionDetails

Query details about a specific Transaction using the GetTransactionDetails API.

Table Specific Information

Select

The only filter supported by the PayPal API is TransactionId, which is required. The connector processes other filters client side within the connector.

For example, the following queries are processed server side and retrieve details for a specific Transaction.

Warning: Requesting all TransactionDetails for all transactions could take a long time depending on the number of transactions.

SELECT * FROM TransactionDetails WHERE TransactionId = '4W92068757818534U'

SELECT * FROM TransactionDetails WHERE TransactionId IN ('4W92068757818534U', '0TM835405G491863M')


SELECT * FROM TransactionDetails WHERE TransactionId IN (SELECT ID FROM Transactions)
Columns
Name Type References Description
TransactionId [KEY] String Unique transaction ID of the payment.
ReceiverBusiness String Details about a single transaction. This field is not applicable for point-of-sale transactions.
ReceiverEmail String Primary email address of the payment recipient (the merchant).
ReceiverId String Unique account ID of the payment recipient (the merchant). This value is the same as the value of the referral ID of the recipient.
PayerEmail String Email address of the buyer.
PayerId String Unique PayPal Customer Account identification number.
PayerStatus String Status of the buyer.
PayerFirstName String The first name of the buyer.
PayerMiddleName String The middle name of the buyer.
PayerLastName String The last name of the buyer.
PayerSuffix String The suffix of the buyer.
PayerCountry String The country of residence of the buyer in the form of ISO standard 3166 2-character country codes.
PayerBusiness String The business name of the buyer.
StreetAddress String The first street address.
City String The name of the city.
State String The state or province.
PostalCode String U.S. ZIP code or other country-specific postal code.
ShippingCountry String The expanded name of the country.
PayerPhone String The phone number.
ParentTransactionId String The parent or related transaction identification number.
TransactionType String The type of transaction.
PaymentType String Indicates whether the payment is instant or delayed.
PaymentDate Datetime The date-time stamp of the payment.
GrossAmount Decimal The final amount charged, including any shipping and taxes from your Merchant Profile.
FeeAmount Decimal The PayPal fee amount charged for the transaction.
SettleAmount Decimal The amount deposited in your PayPal account after a currency conversion.
TaxAmount Decimal The tax charged on the transaction.
ExchangeRate String The exchange rate if a currency conversion occurred. This is relevant only if you are billing in the non-primary currency of the buyer. If the buyer chooses to pay with a currency other than the non-primary currency, the conversion occurs in the account of the buyer.
PaymentStatus String Status of the payment.
PendingReason String The reason the payment is pending.
ProtectionEligibility String Prior to version 64.4, the kind of seller protection in force for the transaction.
ProtectionEligibilityType String Since version 64.4, the kind of seller protection in force for the transaction.
StoreId String StoreId as entered in the transaction.
Subject String The value of the subject field entered by the buyer when making a payment.
InvoiceId String Invoice number you set in the original transaction.
Memo String Memo entered by your customer in the PayPal Website Payments note field.
SalesTax Decimal Amount of tax charged on payment.
AuctionBuyerId String The auction ID of the buyer.
AuctionClosingDate Datetime The close date of the auction.
TransactionItems

Query details about a specific Transaction's items using the GetTransactionDetails API.

View Specific Information

Select

The only filter supported by the PayPal API is TransactionId, which is required. The connector processes other filters client side within the connector.

For example, the following queries are processed server side and retrieve details for a specific Transaction.

Warning: Requesting all TransactionItems for all transactions could take a long time depending on the number of transactions.

SELECT * FROM TransactionItems WHERE TransactionId = '4W92068757818534U'

SELECT * FROM TransactionItems WHERE TransactionId IN ('4W92068757818534U', '0TM835405G491863M')


SELECT * FROM TransactionItems WHERE TransactionId IN (SELECT ID FROM Transactions)
Columns
Name Type References Description
TransactionID String Unique transaction ID of the payment.
EbayItemTxnId String The eBay auction transaction ID of the item that you use to identify items that the buyer purchased.
ItemName String Item name set by you or entered by the customer.
ItemNumber Integer Item number set by you. If this was a shopping cart transaction, PayPal appends the number of the item to the HTML item_number variable, for example, item_number1, item_number2, and so forth.
ShippingAmount Decimal Shipping Amount.
HandlingAmount Decimal Handling Amount.
Quantity Integer Quantity set by you or entered by the buyer.
CouponId String Coupon identification number.
CouponAmount Decimal Amount (value) of the coupon.
ItemAmount Decimal Cost of the item.
CouponAmountCurrency String Currency of the coupon amount, e.g., a 3-character currency code.
SalesTax Decimal Amount of tax charged on payment for this item.
Transactions

Query Transaction history using the TransactionSearch API.

Table Specific Information

Select

The following filters are supported by the PayPal API:

  • Id
  • Date
  • Receiver
  • ReceiptId
  • AuctionItemNumber
  • TransactionClass

The Date filter supports the >, >=, <, <=, and = operators while the other filters only support the = operator.

The connector processes other filters client side within the connector.

For example, the following query is processed server side and retrieves Transactions that were created after the specified Date.

SELECT * FROM Transactions WHERE Date > '2015-12-15T12:00:00' AND Amount = '11'

Other important filter you can execute client-side is the Type filter. You can use that column to retrive i.e: only the Orders.
After retrieving the IDs of transactions with type order, you can use these IDs to query TransactionItems and TransactionDetails views, to get more details.

SELECT * FROM Transactions WHERE Type = 'Order'
Columns
Name Type References Description
Id [KEY] String The ID of the transaction record of the merchant.
PayerDisplayName String The display name of the buyer.
NetAmount Decimal The net amount of the transaction.
FeeAmount Decimal The fee that PayPal charged for the transaction.
GrossAmount Decimal The total gross amount charged, including any profile shipping cost and taxes.
Status String The status of the transaction.
Date Datetime Date and time that the transaction occurred. Character length and limitations: Date and time are in UTC/GMT format; for example, 2013-08-24T05:38:48Z.
Timezone String The time zone of the transaction. The value is always GMT.
Type String The type of the transaction. It is one of the following values: Order, Currency Conversion (credit), Currency Conversion (debit), Payment, Recurring Payment, Temporary Hold, Transfer, Donation.
Payer String Search by the email address of the buyer. Character length and limitations: 127 single-byte alphanumeric characters.
Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
TransactionClass String
Amount String
AuctionItemNumber String
CardNumber String
CurrencyCode String
InvoiceId String
ProfileId String
ReceiptId String
Receiver String
PayerName String

System Tables

You can query the system tables described in this section to access schema information, information on data source functionality, and batch operation statistics.

Schema Tables

The following tables return database metadata for PayPal:

Data Source Tables

The following tables return information about how to connect to and query the data source:

  • sys_connection_props: Returns information on the available connection properties.
  • sys_sqlinfo: Describes the SELECT queries that the connector can offload to the data source.

Query Information Tables

The following table returns query statistics for data modification queries:

  • sys_identity: Returns information about batch operations or single updates.

sys_catalogs

Lists the available databases.

The following query retrieves all databases determined by the connection string:

SELECT * FROM sys_catalogs
Columns
Name Type Description
CatalogName String The database name.

sys_schemas

Lists the available schemas.

The following query retrieves all available schemas:

SELECT * FROM sys_schemas
Columns
Name Type Description
CatalogName String The database name.
SchemaName String The schema name.

sys_tables

Lists the available tables.

The following query retrieves the available tables and views:

SELECT * FROM sys_tables
Columns
Name Type Description
CatalogName String The database containing the table or view.
SchemaName String The schema containing the table or view.
TableName String The name of the table or view.
TableType String The table type (table or view).
Description String A description of the table or view.
IsUpdateable Boolean Whether the table can be updated.

sys_tablecolumns

Describes the columns of the available tables and views.

The following query returns the columns and data types for the Payments table:

SELECT ColumnName, DataTypeName FROM sys_tablecolumns WHERE TableName='Payments'
Columns
Name Type Description
CatalogName String The name of the database containing the table or view.
SchemaName String The schema containing the table or view.
TableName String The name of the table or view containing the column.
ColumnName String The column name.
DataTypeName String The data type name.
DataType Int32 An integer indicating the data type. This value is determined at run time based on the environment.
Length Int32 The storage size of the column.
DisplaySize Int32 The designated column's normal maximum width in characters.
NumericPrecision Int32 The maximum number of digits in numeric data. The column length in characters for character and date-time data.
NumericScale Int32 The column scale or number of digits to the right of the decimal point.
IsNullable Boolean Whether the column can contain null.
Description String A brief description of the column.
Ordinal Int32 The sequence number of the column.
IsAutoIncrement String Whether the column value is assigned in fixed increments.
IsGeneratedColumn String Whether the column is generated.
IsHidden Boolean Whether the column is hidden.
IsArray Boolean Whether the column is an array.
IsReadOnly Boolean Whether the column is read-only.
IsKey Boolean Indicates whether a field returned from sys_tablecolumns is the primary key of the table.
ColumnType String The role or classification of the column in the schema. Possible values include SYSTEM, LINKEDCOLUMN, NAVIGATIONKEY, REFERENCECOLUMN, and NAVIGATIONPARENTCOLUMN.

sys_procedures

Lists the available stored procedures.

The following query retrieves the available stored procedures:

SELECT * FROM sys_procedures
Columns
Name Type Description
CatalogName String The database containing the stored procedure.
SchemaName String The schema containing the stored procedure.
ProcedureName String The name of the stored procedure.
Description String A description of the stored procedure.
ProcedureType String The type of the procedure, such as PROCEDURE or FUNCTION.

sys_procedureparameters

Describes stored procedure parameters.

The following query returns information about all of the input parameters for the SelectEntries stored procedure:

SELECT * FROM sys_procedureparameters WHERE ProcedureName = 'SelectEntries' AND Direction = 1 OR Direction = 2

To include result set columns in addition to the parameters, set the IncludeResultColumns pseudo column to True:

SELECT * FROM sys_procedureparameters WHERE ProcedureName = 'SelectEntries' AND IncludeResultColumns='True'
Columns
Name Type Description
CatalogName String The name of the database containing the stored procedure.
SchemaName String The name of the schema containing the stored procedure.
ProcedureName String The name of the stored procedure containing the parameter.
ColumnName String The name of the stored procedure parameter.
Direction Int32 An integer corresponding to the type of the parameter: input (1), input/output (2), or output(4). input/output type parameters can be both input and output parameters.
DataType Int32 An integer indicating the data type. This value is determined at run time based on the environment.
DataTypeName String The name of the data type.
NumericPrecision Int32 The maximum precision for numeric data. The column length in characters for character and date-time data.
Length Int32 The number of characters allowed for character data. The number of digits allowed for numeric data.
NumericScale Int32 The number of digits to the right of the decimal point in numeric data.
IsNullable Boolean Whether the parameter can contain null.
IsRequired Boolean Whether the parameter is required for execution of the procedure.
IsArray Boolean Whether the parameter is an array.
Description String The description of the parameter.
Ordinal Int32 The index of the parameter.
Values String The values you can set in this parameter are limited to those shown in this column. Possible values are comma-separated.
SupportsStreams Boolean Whether the parameter represents a file that you can pass as either a file path or a stream.
IsPath Boolean Whether the parameter is a target path for a schema creation operation.
Default String The value used for this parameter when no value is specified.
SpecificName String A label that, when multiple stored procedures have the same name, uniquely identifies each identically-named stored procedure. If there's only one procedure with a given name, its name is simply reflected here.
IsProvided Boolean Whether the procedure is added/implemented by , as opposed to being a native PayPal procedure.
Pseudo-Columns
Name Type Description
IncludeResultColumns Boolean Whether the output should include columns from the result set in addition to parameters. Defaults to False.

sys_keycolumns

Describes the primary and foreign keys.

The following query retrieves the primary key for the Payments table:

SELECT * FROM sys_keycolumns WHERE IsKey='True' AND TableName='Payments'
Columns
Name Type Description
CatalogName String The name of the database containing the key.
SchemaName String The name of the schema containing the key.
TableName String The name of the table containing the key.
ColumnName String The name of the key column.
IsKey Boolean Whether the column is a primary key in the table referenced in the TableName field.
IsForeignKey Boolean Whether the column is a foreign key referenced in the TableName field.
PrimaryKeyName String The name of the primary key.
ForeignKeyName String The name of the foreign key.
ReferencedCatalogName String The database containing the primary key.
ReferencedSchemaName String The schema containing the primary key.
ReferencedTableName String The table containing the primary key.
ReferencedColumnName String The column name of the primary key.

sys_foreignkeys

Describes the foreign keys.

The following query retrieves all foreign keys which refer to other tables:

SELECT * FROM sys_foreignkeys WHERE ForeignKeyType = 'FOREIGNKEY_TYPE_IMPORT'
Columns
Name Type Description
CatalogName String The name of the database containing the key.
SchemaName String The name of the schema containing the key.
TableName String The name of the table containing the key.
ColumnName String The name of the key column.
PrimaryKeyName String The name of the primary key.
ForeignKeyName String The name of the foreign key.
ReferencedCatalogName String The database containing the primary key.
ReferencedSchemaName String The schema containing the primary key.
ReferencedTableName String The table containing the primary key.
ReferencedColumnName String The column name of the primary key.
ForeignKeyType String Designates whether the foreign key is an import (points to other tables) or export (referenced from other tables) key.

sys_primarykeys

Describes the primary keys.

The following query retrieves the primary keys from all tables and views:

SELECT * FROM sys_primarykeys
Columns
Name Type Description
CatalogName String The name of the database containing the key.
SchemaName String The name of the schema containing the key.
TableName String The name of the table containing the key.
ColumnName String The name of the key column.
KeySeq String The sequence number of the primary key.
KeyName String The name of the primary key.

sys_indexes

Describes the available indexes. By filtering on indexes, you can write more selective queries with faster query response times.

The following query retrieves all indexes that are not primary keys:

SELECT * FROM sys_indexes WHERE IsPrimary='false'
Columns
Name Type Description
CatalogName String The name of the database containing the index.
SchemaName String The name of the schema containing the index.
TableName String The name of the table containing the index.
IndexName String The index name.
ColumnName String The name of the column associated with the index.
IsUnique Boolean True if the index is unique. False otherwise.
IsPrimary Boolean True if the index is a primary key. False otherwise.
Type Int16 An integer value corresponding to the index type: statistic (0), clustered (1), hashed (2), or other (3).
SortOrder String The sort order: A for ascending or D for descending.
OrdinalPosition Int16 The sequence number of the column in the index.

sys_connection_props

Returns information on the available connection properties and those set in the connection string.

The following query retrieves all connection properties that have been set in the connection string or set through a default value:

SELECT * FROM sys_connection_props WHERE Value <> ''
Columns
Name Type Description
Name String The name of the connection property.
ShortDescription String A brief description.
Type String The data type of the connection property.
Default String The default value if one is not explicitly set.
Values String A comma-separated list of possible values. A validation error is thrown if another value is specified.
Value String The value you set or a preconfigured default.
Required Boolean Whether the property is required to connect.
Category String The category of the connection property.
IsSessionProperty String Whether the property is a session property, used to save information about the current connection.
Sensitivity String The sensitivity level of the property. This informs whether the property is obfuscated in logging and authentication forms.
PropertyName String A camel-cased truncated form of the connection property name.
Ordinal Int32 The index of the parameter.
CatOrdinal Int32 The index of the parameter category.
Hierarchy String Shows dependent properties associated that need to be set alongside this one.
Visible Boolean Informs whether the property is visible in the connection UI.
ETC String Various miscellaneous information about the property.

sys_sqlinfo

Describes the SELECT query processing that the connector can offload to the data source.

Discovering the Data Source's SELECT Capabilities

Below is an example data set of SQL capabilities. Some aspects of SELECT functionality are returned in a comma-separated list if supported; otherwise, the column contains NO.

Name Description Possible Values
AGGREGATE_FUNCTIONS Supported aggregation functions. AVG, COUNT, MAX, MIN, SUM, DISTINCT
COUNT Whether COUNT function is supported. YES, NO
IDENTIFIER_QUOTE_OPEN_CHAR The opening character used to escape an identifier. [
IDENTIFIER_QUOTE_CLOSE_CHAR The closing character used to escape an identifier. ]
SUPPORTED_OPERATORS A list of supported SQL operators. =, >, <, >=, <=, <>, !=, LIKE, NOT LIKE, IN, NOT IN, IS NULL, IS NOT NULL, AND, OR
GROUP_BY Whether GROUP BY is supported, and, if so, the degree of support. NO, NO_RELATION, EQUALS_SELECT, SQL_GB_COLLATE
STRING_FUNCTIONS Supported string functions. LENGTH, CHAR, LOCATE, REPLACE, SUBSTRING, RTRIM, LTRIM, RIGHT, LEFT, UCASE, SPACE, SOUNDEX, LCASE, CONCAT, ASCII, REPEAT, OCTET, BIT, POSITION, INSERT, TRIM, UPPER, REGEXP, LOWER, DIFFERENCE, CHARACTER, SUBSTR, STR, REVERSE, PLAN, UUIDTOSTR, TRANSLATE, TRAILING, TO, STUFF, STRTOUUID, STRING, SPLIT, SORTKEY, SIMILAR, REPLICATE, PATINDEX, LPAD, LEN, LEADING, KEY, INSTR, INSERTSTR, HTML, GRAPHICAL, CONVERT, COLLATION, CHARINDEX, BYTE
NUMERIC_FUNCTIONS Supported numeric functions. ABS, ACOS, ASIN, ATAN, ATAN2, CEILING, COS, COT, EXP, FLOOR, LOG, MOD, SIGN, SIN, SQRT, TAN, PI, RAND, DEGREES, LOG10, POWER, RADIANS, ROUND, TRUNCATE
TIMEDATE_FUNCTIONS Supported date/time functions. NOW, CURDATE, DAYOFMONTH, DAYOFWEEK, DAYOFYEAR, MONTH, QUARTER, WEEK, YEAR, CURTIME, HOUR, MINUTE, SECOND, TIMESTAMPADD, TIMESTAMPDIFF, DAYNAME, MONTHNAME, CURRENT_DATE, CURRENT_TIME, CURRENT_TIMESTAMP, EXTRACT
REPLICATION_SKIP_TABLES Indicates tables skipped during replication.
REPLICATION_TIMECHECK_COLUMNS A string array containing a list of columns which will be used to check for (in the given order) to use as a modified column during replication.
IDENTIFIER_PATTERN String value indicating what string is valid for an identifier.
SUPPORT_TRANSACTION Indicates if the provider supports transactions such as commit and rollback. YES, NO
DIALECT Indicates the SQL dialect to use.
KEY_PROPERTIES Indicates the properties which identify the uniform database.
SUPPORTS_MULTIPLE_SCHEMAS Indicates if multiple schemas may exist for the provider. YES, NO
SUPPORTS_MULTIPLE_CATALOGS Indicates if multiple catalogs may exist for the provider. YES, NO
DATASYNCVERSION The Data Sync version needed to access this driver. Standard, Starter, Professional, Enterprise
DATASYNCCATEGORY The Data Sync category of this driver. Source, Destination, Cloud Destination
SUPPORTSENHANCEDSQL Whether enhanced SQL functionality beyond what is offered by the API is supported. TRUE, FALSE
SUPPORTS_BATCH_OPERATIONS Whether batch operations are supported. YES, NO
SQL_CAP All supported SQL capabilities for this driver. SELECT, INSERT, DELETE, UPDATE, TRANSACTIONS, ORDERBY, OAUTH, ASSIGNEDID, LIMIT, LIKE, BULKINSERT, COUNT, BULKDELETE, BULKUPDATE, GROUPBY, HAVING, AGGS, OFFSET, REPLICATE, COUNTDISTINCT, JOINS, DROP, CREATE, DISTINCT, INNERJOINS, SUBQUERIES, ALTER, MULTIPLESCHEMAS, GROUPBYNORELATION, OUTERJOINS, UNIONALL, UNION, UPSERT, GETDELETED, CROSSJOINS, GROUPBYCOLLATE, MULTIPLECATS, FULLOUTERJOIN, MERGE, JSONEXTRACT, BULKUPSERT, SUM, SUBQUERIESFULL, MIN, MAX, JOINSFULL, XMLEXTRACT, AVG, MULTISTATEMENTS, FOREIGNKEYS, CASE, LEFTJOINS, COMMAJOINS, WITH, LITERALS, RENAME, NESTEDTABLES, EXECUTE, BATCH, BASIC, INDEX
PREFERRED_CACHE_OPTIONS A string value specifies the preferred cacheOptions.
ENABLE_EF_ADVANCED_QUERY Indicates if the driver directly supports advanced queries coming from Entity Framework. If not, queries will be handled client side. YES, NO
PSEUDO_COLUMNS A string array indicating the available pseudo columns.
MERGE_ALWAYS If the value is true, The Merge Mode is forcibly executed in Data Sync. TRUE, FALSE
REPLICATION_MIN_DATE_QUERY A select query to return the replicate start datetime.
REPLICATION_MIN_FUNCTION Allows a provider to specify the formula name to use for executing a server side min.
REPLICATION_START_DATE Allows a provider to specify a replicate startdate.
REPLICATION_MAX_DATE_QUERY A select query to return the replicate end datetime.
REPLICATION_MAX_FUNCTION Allows a provider to specify the formula name to use for executing a server side max.
IGNORE_INTERVALS_ON_INITIAL_REPLICATE A list of tables which will skip dividing the replicate into chunks on the initial replicate.
CHECKCACHE_USE_PARENTID Indicates whether the CheckCache statement should be done against the parent key column. TRUE, FALSE
CREATE_SCHEMA_PROCEDURES Indicates stored procedures that can be used for generating schema files.

The following query retrieves the operators that can be used in the WHERE clause:

SELECT * FROM sys_sqlinfo WHERE Name = 'SUPPORTED_OPERATORS'

Note that individual tables may have different limitations or requirements on the WHERE clause; refer to the Data Model section for more information.

Columns
Name Type Description
NAME String A component of SQL syntax, or a capability that can be processed on the server.
VALUE String Detail on the supported SQL or SQL syntax.

sys_identity

Returns information about attempted modifications.

The following query retrieves the Ids of the modified rows in a batch operation:

SELECT * FROM sys_identity
Columns
Name Type Description
Id String The database-generated ID returned from a data modification operation.
Batch String An identifier for the batch. 1 for a single operation.
Operation String The result of the operation in the batch: INSERTED, UPDATED, or DELETED.
Message String SUCCESS or an error message if the update in the batch failed.

sys_information

Describes the available system information.

The following query retrieves all columns:

SELECT * FROM sys_information
Columns
Name Type Description
Product String The name of the product.
Version String The version number of the product.
Datasource String The name of the datasource the product connects to.
NodeId String The unique identifier of the machine where the product is installed.
HelpURL String The URL to the product's help documentation.
License String The license information for the product. (If this information is not available, the field may be left blank or marked as 'N/A'.)
Location String The file path location where the product's library is stored.
Environment String The version of the environment or rumtine the product is currently running under.
DataSyncVersion String The tier of Sync required to use this connector.
DataSyncCategory String The category of Sync functionality (e.g., Source, Destination).

Advanced Configurations Properties

The advanced configurations properties are the various options that can be used to establish a connection. This section provides a complete list of the options you can configure. Click the links for further details.

Authentication

Property Description
AuthScheme The type of authentication to use when connecting to PayPal.
User Specifies the user ID of the authenticating PayPal user account.
Password Specifies the password of the authenticating user account.
Signature The signature required to use the SOAP API.
UseSandbox A Boolean value indicating if you are using a Sandbox account.

OAuth

Property Description
InitiateOAuth Specifies the process for obtaining or refreshing the OAuth access token, which maintains user access while an authenticated, authorized user is working.
OAuthClientId Specifies the client ID (also known as the consumer key) assigned to your custom OAuth application. This ID is required to identify the application to the OAuth authorization server during authentication.
OAuthClientSecret Specifies the client secret assigned to your custom OAuth application. This confidential value is used to authenticate the application to the OAuth authorization server.
OAuthAccessToken Specifies the OAuth access token used to authenticate requests to the data source. This token is issued by the authorization server after a successful OAuth exchange.
OAuthSettingsLocation Specifies the location of the settings file where OAuth values are saved. Storing OAuth settings in a central location avoids the need for users to enter OAuth connection properties manually each time they log in. It also enables credentials to be shared across connections or processes.
CallbackURL Identifies the URL users return to after authenticating to PayPal via OAuth. (Custom OAuth applications only.).
OAuthRefreshToken Specifies the OAuth refresh token used to request a new access token after the original has expired.
OAuthExpiresIn Specifies the duration in seconds, of an OAuth Access Token's lifetime. The token can be reissued to keep access alive as long as the user keeps working.
OAuthTokenTimestamp Displays a Unix epoch timestamp in milliseconds that shows how long ago the current Access Token was created.

SSL

Property Description
SSLServerCert Specifies the certificate to be accepted from the server when connecting using TLS/SSL.

Schema

Property Description
Location Specifies the location of a directory containing schema files that define tables, views, and stored procedures. Depending on your service's requirements, this may be expressed as either an absolute path or a relative path.
BrowsableSchemas Optional setting that restricts the schemas reported to a subset of all available schemas. For example, BrowsableSchemas=SchemaA, SchemaB, SchemaC.
Tables Optional setting that restricts the tables reported to a subset of all available tables. For example, Tables=TableA, TableB, TableC.
Views Optional setting that restricts the views reported to a subset of the available tables. For example, Views=ViewA, ViewB, ViewC.
Schema The type of schema to use.

Miscellaneous

Property Description
IncludeDetails A Boolean value indicating if you will get extra details (for example, the ShippingAddress fields when querying the Invoices table).
MaxRows Specifies the maximum rows returned for queries without aggregation or GROUP BY.
Other Specifies additional hidden properties for specific use cases. These are not required for typical provider functionality. Use a semicolon-separated list to define multiple properties.
PseudoColumns Specifies the pseudocolumns to expose as table columns. Use the format 'TableName=ColumnName;TableName=ColumnName'. The default is an empty string, which disables this property.
Timeout Specifies the maximum time, in seconds, that the provider waits for a server response before throwing a timeout error. The default is 60 seconds. Set to 0 to disable the timeout.
UserDefinedViews Specifies a filepath to a JSON configuration file defining custom views. The provider automatically detects and uses the views specified in this file.

Authentication

This section provides a complete list of authentication properties you can configure.

Property Description
AuthScheme The type of authentication to use when connecting to PayPal.
User Specifies the user ID of the authenticating PayPal user account.
Password Specifies the password of the authenticating user account.
Signature The signature required to use the SOAP API.
UseSandbox A Boolean value indicating if you are using a Sandbox account.

AuthScheme

The type of authentication to use when connecting to PayPal.

Data Type

string

Default Value

Basic

Remarks
  • OAuth: Set this to perform OAuth authentication.
  • Basic: Set this to use BASIC user / password / signature authentication.

User

Specifies the user ID of the authenticating PayPal user account.

Data Type

string

Default Value

""

Remarks

The authenticating server requires both User and Password to validate the user's identity.

Password

Specifies the password of the authenticating user account.

Data Type

string

Default Value

""

Remarks

The authenticating server requires both User and Password to validate the user's identity.

Signature

The signature required to use the SOAP API.

Data Type

string

Default Value

""

Remarks

The signature required to use the SOAP API.

Along with Signature, User and Password are required to access the Transaction and TransactionDetails tables.

To create an API signature, you need a PayPal business account. To create the signature, log in and click Profile. Click My Selling Tools and, in the Selling Online section, click Update in the API Access section. On the resulting page, click Request API Credentials.

UseSandbox

A Boolean value indicating if you are using a Sandbox account.

Data Type

bool

Default Value

false

Remarks

A Boolean value indicating if you are using a Sandbox account.

OAuth

This section provides a complete list of OAuth properties you can configure.

Property Description
InitiateOAuth Specifies the process for obtaining or refreshing the OAuth access token, which maintains user access while an authenticated, authorized user is working.
OAuthClientId Specifies the client ID (also known as the consumer key) assigned to your custom OAuth application. This ID is required to identify the application to the OAuth authorization server during authentication.
OAuthClientSecret Specifies the client secret assigned to your custom OAuth application. This confidential value is used to authenticate the application to the OAuth authorization server.
OAuthAccessToken Specifies the OAuth access token used to authenticate requests to the data source. This token is issued by the authorization server after a successful OAuth exchange.
OAuthSettingsLocation Specifies the location of the settings file where OAuth values are saved. Storing OAuth settings in a central location avoids the need for users to enter OAuth connection properties manually each time they log in. It also enables credentials to be shared across connections or processes.
CallbackURL Identifies the URL users return to after authenticating to PayPal via OAuth. (Custom OAuth applications only.).
OAuthRefreshToken Specifies the OAuth refresh token used to request a new access token after the original has expired.
OAuthExpiresIn Specifies the duration in seconds, of an OAuth Access Token's lifetime. The token can be reissued to keep access alive as long as the user keeps working.
OAuthTokenTimestamp Displays a Unix epoch timestamp in milliseconds that shows how long ago the current Access Token was created.

InitiateOAuth

Specifies the process for obtaining or refreshing the OAuth access token, which maintains user access while an authenticated, authorized user is working.

Possible Values

OFF, REFRESH, GETANDREFRESH

Data Type

string

Default Value

OFF

Remarks

OAuth is an authorization framework that enables applications to obtain limited access to user accounts on an HTTP service. The OAuth flow defines the method to be used for logging in users, exchanging their credentials for an OAuth access token to be used for authentication, and providing limited access to applications.

PayPal supports the following options for initiating OAuth access:

  1. OFF: No automatic OAuth flow initiation. The OAuth flow is handled entirely by the user, who will take action to obtain their OAuthAccessToken. Note that with this setting the user must refresh the token manually and reconnect with an updated OAuthAccessToken property when the current token expires.
  2. GETANDREFRESH: The OAuth flow is handled entirely by the connector. If a token already exists, it is refreshed when necessary. If no token currently exists, it will be obtained by prompting the user to login.
  3. REFRESH: The user handles obtaining the OAuth Access Token and sets up the sequence for refreshing the OAuth Access Token. (The user is never prompted to log in to authenticate. After the user logs in, the connector handles the refresh of the OAuth Access Token.

OAuthClientId

Specifies the client ID (also known as the consumer key) assigned to your custom OAuth application. This ID is required to identify the application to the OAuth authorization server during authentication.

Data Type

string

Default Value

""

Remarks

This property is required when using a custom OAuth application, such as in web-based authentication flows, service-based authentication, or certificate-based flows that require application registration. It is also required if an embedded OAuth application is not available for the driver. When an embedded OAuth application is available, this value may already be provided by the connector and not require manual entry.

This value is generally used alongside other OAuth-related properties such as OAuthClientSecret and OAuthSettingsLocation when configuring an authenticated connection.

OAuthClientId is one of the key connection parameters that need to be set before users can authenticate via OAuth. You can typically find this value in your identity provider’s application registration settings. Look for a field labeled Client ID, Application ID, or Consumer Key.

While the client ID is not considered a confidential value like a client secret, it is still part of your application's identity and should be handled carefully. Avoid exposing it in public repositories or shared configuration files.

OAuthClientSecret

Specifies the client secret assigned to your custom OAuth application. This confidential value is used to authenticate the application to the OAuth authorization server.

Data Type

string

Default Value

""

Remarks

This property is required when using a custom OAuth application in any flow that requires secure client authentication, such as web-based OAuth, service-based connections, or certificate-based authorization flows. It is not required when using an embedded OAuth application.

The client secret is used during the token exchange step of the OAuth flow, when the driver requests an access token from the authorization server. If this value is missing or incorrect, authentication will fail, and the server may return an invalid_client or unauthorized_client error.

OAuthClientSecret is one of the key connection parameters that need to be set before users can authenticate via OAuth. You can obtain this value from your identity provider when registering the OAuth application. It may be referred to as the client secret, application secret, or consumer secret.

This value should be stored securely and never exposed in public repositories, scripts, or unsecured environments. Client secrets may also expire after a set period. Be sure to monitor expiration dates and rotate secrets as needed to maintain uninterrupted access.

OAuthAccessToken

Specifies the OAuth access token used to authenticate requests to the data source. This token is issued by the authorization server after a successful OAuth exchange.

Data Type

string

Default Value

""

Remarks

The OAuthAccessToken is a temporary credential that authorizes access to protected resources. It is typically returned by the identity provider after the user or client application completes an OAuth authentication flow. This property is most commonly used in automated workflows or custom OAuth implementations where you want to manage token handling outside of the driver.

The OAuth access token has a server-dependent timeout, limiting user access. This is set using the OAuthExpiresIn property. However, it can be reissued between requests to keep access alive as long as the user keeps working.

If InitiateOAuth is set to REFRESH, we recommend that you also set both OAuthExpiresIn and OAuthTokenTimestamp. The connector uses these properties to determine when the token expires so it can refresh most efficiently. If OAuthExpiresIn and OAuthTokenTimestamp are not specified, the connector refreshes the token immediately.

Access tokens should be treated as sensitive credentials and stored securely. Avoid exposing them in logs, scripts, or configuration files that are not access-controlled.

OAuthSettingsLocation

Specifies the location of the settings file where OAuth values are saved. Storing OAuth settings in a central location avoids the need for users to enter OAuth connection properties manually each time they log in. It also enables credentials to be shared across connections or processes.

Data Type

string

Default Value

%APPDATA%\PayPal Data Provider\OAuthSettings.txt

Remarks

You can store OAuth values in a central file for shared access to those values, in either of the following ways:

  • Set InitiateOAuth to either GETANDREFRESH or REFRESH and specify a filepath to the OAuth settings file.
  • Use memory storage to load the credentials into static memory.

The following sections provide more detail on each of these methods.

Specifying the OAuthSettingsLocation Filepath

The default OAuth setting location is %APPDATA%\PayPal Data Provider\OAuthSettings.txt, with %APPDATA% set to the user's configuration directory.

Default values vary, depending on the user's operating system.

  • Windows (ODBC and Power BI): registry://%DSN%
  • Windows: %APPDATA%PayPal Data Provider\OAuthSettings.txt
  • Mac: %APPDATA%//PayPal Data Provider/OAuthSettings.txt
  • Linux: %APPDATA%//PayPal Data Provider/OAuthSettings.txt
Loading Credentials Via Memory Storage

Memory locations are specified by using a value starting with memory://, followed by a unique identifier for that set of credentials (for example, memory://user1). The identifier can be anything you choose, but it should be unique to the user.

Unlike file-based storage, where credentials persist across connections, memory storage loads the credentials into static memory and the credentials are shared between connections using the same identifier for the life of the process. To persist credentials outside the current process, you must manually store the credentials prior to closing the connection. This enables you to set them in the connection when the process is started again.

To retrieve OAuth property values, query the sys_connection_props system table. If there are multiple connections using the same credentials, the properties are read from the previously closed connection.

Supported Storage Types

  • memory://: Stores OAuth tokens in-memory (unique identifier, shared within same process, etc.)
  • registry://: Only supported in the Windows ODBC and Power BI editions. Stores OAuth tokens in the registry under the DSN settings. Must end in a DSN name like registry://PayPal connector Data Source, or registry://%DSN%.
  • %DSN%: The name of the DSN you are connecting with.
  • Default (no prefix): Stores OAuth tokens within files. The value can be either an absolute path, or a path starting with %APPDATA% or %PROGRAMFILES%.

CallbackURL

Identifies the URL users return to after authenticating to PayPal via OAuth. (Custom OAuth applications only.).

Data Type

string

Default Value

""

Remarks

If you created a custom OAuth application, the OAuth authorization server redirects the user to this URL during the authentication process. This value must match the callback URL you specified when you Configured the custom OAuth application.

OAuthRefreshToken

Specifies the OAuth refresh token used to request a new access token after the original has expired.

Data Type

string

Default Value

""

Remarks

The refresh token is used to obtain a new access token when the current one expires. It enables seamless authentication for long-running or automated workflows without requiring the user to log in again. This property is especially important in headless, CI/CD, or server-based environments where interactive authentication is not possible.

The refresh token is typically obtained during the initial OAuth exchange by calling the GetOAuthAccessToken stored procedure. After that, it can be set using this property to enable automatic token refresh, or passed to the RefreshOAuthAccessToken stored procedure if you prefer to manage the refresh manually.

When InitiateOAuth is set to REFRESH, the driver uses this token to retrieve a new access token automatically. After the first refresh, the driver saves updated tokens in the location defined by OAuthSettingsLocation, and uses those values for subsequent connections.

The OAuthRefreshToken should be handled securely and stored in a trusted location. Like access tokens, refresh tokens can expire or be revoked depending on the identity provider’s policies.

OAuthExpiresIn

Specifies the duration in seconds, of an OAuth Access Token's lifetime. The token can be reissued to keep access alive as long as the user keeps working.

Data Type

string

Default Value

""

Remarks

The OAuth Access Token is assigned to an authenticated user, granting that user access to the network for a specified period of time. The access token is used in place of the user's login ID and password, which stay on the server.

An access token created by the server is only valid for a limited time. OAuthExpiresIn is the number of seconds the token is valid from when it was created. For example, a token generated at 2024-01-29 20:00:00 UTC that expires at 2024-01-29 21:00:00 UTC (an hour later) would have an OAuthExpiresIn value of 3600, no matter what the current time is.

To determine how long the user has before the Access Token will expire, use OAuthTokenTimestamp.

OAuthTokenTimestamp

Displays a Unix epoch timestamp in milliseconds that shows how long ago the current Access Token was created.

Data Type

string

Default Value

""

Remarks

The OAuth Access Token is assigned to an authenticated user, granting that user access to the network for a specified period of time. The access token is used in place of the user's login ID and password, which stay on the server.

An access token created by the server is only valid for a limited time. OAuthTokenTimestamp is the Unix timestamp when the server created the token. For example, OAuthTokenTimestamp=1706558400 indicates the OAuthAccessToken was generated by the server at 2024-01-29 20:00:00 UTC.

SSL

This section provides a complete list of SSL properties you can configure.

Property Description
SSLServerCert Specifies the certificate to be accepted from the server when connecting using TLS/SSL.

SSLServerCert

Specifies the certificate to be accepted from the server when connecting using TLS/SSL.

Data Type

string

Default Value

""

Remarks

If using a TLS/SSL connection, this property can be used to specify the TLS/SSL certificate to be accepted from the server. Any other certificate that is not trusted by the machine is rejected.

This property can take the following forms:

Description Example
A full PEM Certificate (example shortened for brevity) -----BEGIN CERTIFICATE----- MIIChTCCAe4CAQAwDQYJKoZIhv......Qw== -----END CERTIFICATE-----
A path to a local file containing the certificate C:\\cert.cer
The public key (example shortened for brevity) -----BEGIN RSA PUBLIC KEY----- MIGfMA0GCSq......AQAB -----END RSA PUBLIC KEY-----
The MD5 Thumbprint (hex values can also be either space or colon separated) ecadbdda5a1529c58a1e9e09828d70e4
The SHA1 Thumbprint (hex values can also be either space or colon separated) 34a929226ae0819f2ec14b4a3d904f801cbb150d

If not specified, any certificate trusted by the machine is accepted.

Certificates are validated as trusted by the machine based on the System's trust store. The trust store used is the 'javax.net.ssl.trustStore' value specified for the system. If no value is specified for this property, Java's default trust store is used (for example, JAVA_HOME\lib\security\cacerts).

Use '*' to signify to accept all certificates. Note that this is not recommended due to security concerns.

Schema

This section provides a complete list of schema properties you can configure.

Property Description
Location Specifies the location of a directory containing schema files that define tables, views, and stored procedures. Depending on your service's requirements, this may be expressed as either an absolute path or a relative path.
BrowsableSchemas Optional setting that restricts the schemas reported to a subset of all available schemas. For example, BrowsableSchemas=SchemaA, SchemaB, SchemaC.
Tables Optional setting that restricts the tables reported to a subset of all available tables. For example, Tables=TableA, TableB, TableC.
Views Optional setting that restricts the views reported to a subset of the available tables. For example, Views=ViewA, ViewB, ViewC.
Schema The type of schema to use.

Location

Specifies the location of a directory containing schema files that define tables, views, and stored procedures. Depending on your service's requirements, this may be expressed as either an absolute path or a relative path.

Data Type

string

Default Value

%APPDATA%\PayPal Data Provider\Schema

Remarks

The Location property is only needed if you want to either customize definitions (for example, change a column name, ignore a column, etc.) or extend the data model with new tables, views, or stored procedures.

Note

Since this connector supports multiple schemas, custom schema files for PayPal should be structured such that:

  • Each schema should have its own folder, named for that schema.
  • All schema folders should be contained in a parent folder.

Location should always be set to the parent folder, and not to an individual schema's folder.

If left unspecified, the default location is %APPDATA%\PayPal Data Provider\Schema, where %APPDATA% is set to the user's configuration directory:

Platform %APPDATA%
Windows The value of the APPDATA environment variable
Mac ~/Library/Application Support
Linux ~/.config

BrowsableSchemas

Optional setting that restricts the schemas reported to a subset of all available schemas. For example, BrowsableSchemas=SchemaA,SchemaB,SchemaC.

Data Type

string

Default Value

""

Remarks

Listing all available database schemas can take extra time, thus degrading performance. Providing a list of schemas in the connection string saves time and improves performance.

Tables

Optional setting that restricts the tables reported to a subset of all available tables. For example, Tables=TableA,TableB,TableC.

Data Type

string

Default Value

""

Remarks

Listing all available tables from some databases can take extra time, thus degrading performance. Providing a list of tables in the connection string saves time and improves performance.

If there are lots of tables available and you already know which ones you want to work with, you can use this property to restrict your viewing to only those tables. To do this, specify the tables you want in a comma-separated list. Each table should be a valid SQL identifier with any special characters escaped using square brackets, double-quotes or backticks. For example, Tables=TableA,[TableB/WithSlash],WithCatalog.WithSchema.`TableC With Space`.

Note

If you are connecting to a data source with multiple schemas or catalogs, you must specify each table you want to view by its fully qualified name. This avoids ambiguity between tables that may exist in multiple catalogs or schemas.

Views

Optional setting that restricts the views reported to a subset of the available tables. For example, Views=ViewA,ViewB,ViewC.

Data Type

string

Default Value

""

Remarks

Listing all available views from some databases can take extra time, thus degrading performance. Providing a list of views in the connection string saves time and improves performance.

If there are lots of views available and you already know which ones you want to work with, you can use this property to restrict your viewing to only those views. To do this, specify the views you want in a comma-separated list. Each view should be a valid SQL identifier with any special characters escaped using square brackets, double-quotes or backticks. For example, Views=ViewA,[ViewB/WithSlash],WithCatalog.WithSchema.`ViewC With Space`.

Note

If you are connecting to a data source with multiple schemas or catalogs, you must specify each view you want to examine by its fully qualified name. This avoids ambiguity between views that may exist in multiple catalogs or schemas.

Schema

The type of schema to use.

Possible Values

REST, SOAP

Data Type

string

Default Value

REST

Remarks

The schemas available are REST (to use the REST API) and SOAP (to use the Classic API).

Note: The SOAP API is DEPRECATED. Use the REST API instead for better access to resources.

Miscellaneous

This section provides a complete list of miscellaneous properties you can configure.

Property Description
IncludeDetails A Boolean value indicating if you will get extra details (for example, the ShippingAddress fields when querying the Invoices table).
MaxRows Specifies the maximum rows returned for queries without aggregation or GROUP BY.
Other Specifies additional hidden properties for specific use cases. These are not required for typical provider functionality. Use a semicolon-separated list to define multiple properties.
PseudoColumns Specifies the pseudocolumns to expose as table columns. Use the format 'TableName=ColumnName;TableName=ColumnName'. The default is an empty string, which disables this property.
Timeout Specifies the maximum time, in seconds, that the provider waits for a server response before throwing a timeout error. The default is 60 seconds. Set to 0 to disable the timeout.
UserDefinedViews Specifies a filepath to a JSON configuration file defining custom views. The provider automatically detects and uses the views specified in this file.

IncludeDetails

A Boolean value indicating if you will get extra details (for example, the ShippingAddress fields when querying the Invoices table).

Data Type

bool

Default Value

false

Remarks

A Boolean value indicating if you will get extra details (for example, the ShippingAddress fields when querying the Invoices table).

MaxRows

Specifies the maximum rows returned for queries without aggregation or GROUP BY.

Data Type

int

Default Value

-1

Remarks

This property sets an upper limit on the number of rows the connector returns for queries that do not include aggregation or GROUP BY clauses. This limit ensures that queries do not return excessively large result sets by default.

When a query includes a LIMIT clause, the value specified in the query takes precedence over the MaxRows setting. If MaxRows is set to "-1", no row limit is enforced unless a LIMIT clause is explicitly included in the query.

This property is useful for optimizing performance and preventing excessive resource consumption when executing queries that could otherwise return very large datasets.

Other

Specifies additional hidden properties for specific use cases. These are not required for typical provider functionality. Use a semicolon-separated list to define multiple properties.

Data Type

string

Default Value

""

Remarks

This property allows advanced users to configure hidden properties for specialized scenarios. These settings are not required for normal use cases but can address unique requirements or provide additional functionality. Multiple properties can be defined in a semicolon-separated list.

Note

It is strongly recommended to set these properties only when advised by the support team to address specific scenarios or issues.

Specify multiple properties in a semicolon-separated list.

Integration and Formatting
Property Description
DefaultColumnSize Sets the default length of string fields when the data source does not provide column length in the metadata. The default value is 2000.
ConvertDateTimeToGMT=True Converts date-time values to GMT, instead of the local time of the machine. The default value is False (use local time).
RecordToFile=filename Records the underlying socket data transfer to the specified file.

PseudoColumns

Specifies the pseudocolumns to expose as table columns. Use the format 'TableName=ColumnName;TableName=ColumnName'. The default is an empty string, which disables this property.

Data Type

string

Default Value

""

Remarks

This property allows you to define which pseudocolumns the connector exposes as table columns.

To specify individual pseudocolumns, use the following format: "Table1=Column1;Table1=Column2;Table2=Column3"

To include all pseudocolumns for all tables use: "*=*"

Timeout

Specifies the maximum time, in seconds, that the provider waits for a server response before throwing a timeout error. The default is 60 seconds. Set to 0 to disable the timeout.

Data Type

int

Default Value

60

Remarks

This property controls the maximum time, in seconds, that the connector waits for an operation to complete before canceling it. If the timeout period expires before the operation finishes, the connector cancels the operation and throws an exception.

The timeout applies to each individual communication with the server rather than the entire query or operation. For example, a query could continue running beyond the timeout value if each paging call completes within the timeout limit.

Setting this property to 0 disables the timeout, allowing operations to run indefinitely until they succeed or fail due to other conditions such as server-side timeouts, network interruptions, or resource limits on the server. Use this property cautiously to avoid long-running operations that could degrade performance or result in unresponsive behavior.

UserDefinedViews

Specifies a filepath to a JSON configuration file defining custom views. The provider automatically detects and uses the views specified in this file.

Data Type

string

Default Value

""

Remarks

This property allows you to define and manage custom views through a JSON-formatted configuration file called UserDefinedViews.json. These views are automatically recognized by the connector and enable you to execute custom SQL queries as if they were standard database views. The JSON file defines each view as a root element with a child element called "query", which contains the SQL query for the view. For example:

{
    "MyView": {
        "query": "SELECT * FROM Payments WHERE MyColumn = 'value'"
    },
    "MyView2": {
        "query": "SELECT * FROM MyTable WHERE Id IN (1,2,3)"
    }

}

You can define multiple views in a single file and specify the filepath using this property. For example: UserDefinedViews=C:\Path\To\UserDefinedViews.json. When you use this property, only the specified views are seen by the connector.

Refer to User Defined Views for more information.