Paypal
This page contains the setup guide and reference information for the Paypal source connector.
This connector uses PayPal APIs OAuth 2.0 access token to authenticate requests.
Prerequisites
You will need a Paypal account, which you can get following these steps
In the same page, you will also find how to setup a Sandbox so you can test the connector before using it in production.
Setup guide
Step 1: Get your Paypal secrets
After creating your account you will be able to get your Client ID
and Secret
. You can find them in your Apps & Credentials page.
Step 2: Set up the Paypal Transaction connector in Airbyte
-
Log into your Airbyte account
- For Cloud Log in here.
-
In the left navigation bar, click Sources.
a. If this is your first time creating a source, use the search bar and enter Paypal Transaction and select it.
b. If you already have sources configured, go to the top-right corner and click +new source. Then enter Paypal Transaction in the searech bar and select the connector.
-
Set the name for your source
-
Enter your
Client ID
-
Enter your
Client secret
-
Start Date
: Use the provided datepicker or enter manually a UTC date and time in the formatYYYY-MM-DDTHH:MM:SSZ
. -
Switch ON/Off the Sandbox toggle. By defaukt the toggle is OFF, meaning it work only in a produciton environment.
-
_(Optional)
Dispute Start Date Range
: Use the provided datepicker or enter manually a UTC date and time in the formatYYYY-MM-DDTHH:MM:SS.sssZ
.- If you don't add a date and you sync the
lists_disputes stream
, it will use the default value of 180 days in the past to retrieve data - It is mandatory to add the milliseconds is you enter a datetime.
- This option only works for
lists_disputes stream
- If you don't add a date and you sync the
-
(Optional)
Refresh Token
: You can enter manually a refresh token. Right now the stream does this automatically. -
(Optional)
Number of days per request
: You can specify the days used by the connector when requesting data from the Paypal API. This helps in cases when you have a rate limit and you want to lower the window of retrieving data.- Paypal has a 10K record limit per request. This option is useful if your sync is every week and you have more than 10K per week
- The default value is 7
- This Max value you can enter is 31 days
-
Click Set up source
By default, syncs are run with a slice period of 7 days. If you see errors with the message Result set size is greater than the maximum limit
or an error code like RESULTSET_TOO_LARGE
:
- Try lower the the size of the slice period in your optional parameters in your connection configuration.
- You can try to lower the scheduling sync window in case a day slice period is not enough. Lowering the sync period it may help avoid reaching the 10K limit.
Supported sync modes
The PayPal Transaction source connector supports the following sync modes:
Feature | Supported? |
---|---|
Full Refresh Sync | Yes |
Incremental - Append Sync | Yes |
Namespaces | No |
Supported Streams
This Source is capable of syncing the following core Streams:
- Transactions
- Balances
- List Products
- Show Product Details
- List Disputes
- Search Invoices
- List Payments
Transactions Stream
The below table contains the configuraiton parameters available for this connector and the default values and available features
Param/Feature | Transactions |
---|---|
Start Date | Timestamp with TZ (no ms) |
Dispute Start Date Range | NA |
Refresh token | Auto |
Number of days per request | Max 31 , 7(D) |
Pagination Strategy | Page Increment |
Page size | Max 500 (F) |
Full Refresh | ✅ |
Incremental | ✅ (D) |
D: Default configured Value
F: Fixed Value. This means it is not configurable.
Balances Stream
The below table contains the configuraiton parameters available for this connector and the default values and available features
Param/Feature | Balances |
---|---|
Start Date | Timestamp with TZ (no ms) |
Dispute Start Date Range | NA |
Refresh token | Auto |
Number of days per request | NA |
Pagination Strategy | NA |
Page size | NA |
Full Refresh | ✅ |
Incremental | ✅ (D) |
D: Default configured Value
F: Fixed Value. This means it is not configurable.
List Products Stream
The below table contains the configuraiton parameters available for this connector and the default values and available features
Param/Feature | List Products |
---|---|
Start Date | NA |
Dispute Start Date Range | NA |
Refresh token | Auto |
Number of days per request | NA |
Pagination Strategy | Page Increment |
Page size | Max 20 (F) |
Full Refresh | ✅ (D) |
Incremental | ❌ |
D: Default configured Value
F: Fixed Value. This means it is not configurable.
When configuring your stream take in consideration that the way the API works limits the speed on retreiving data. In some cases a +30K catalog retrieval could take between 10-15 minutes.
Show Products Stream
The below table contains the configuraiton parameters available for this connector and the default values and available features
Param/Feature | Show Prod. Details |
---|---|
Start Date | NA |
Dispute Start Date Range | NA |
Refresh token | Auto |
Number of days per request | NA |
Pagination Strategy | NA |
Page size | NA |
Full Refresh | ✅ (D) |
Incremental | ❌ |
D: Default configured Value
F: Fixed Value. This means it is not configurable.
When configuring this stream consider that the parent stream paginates with 20 number of items (Max alowed page size). The Paypal API calls are not concurrent, so the time it takes depends entirely on the server side.
This stream could take a considerable time syncing, so you should consider running the sync of this and the parent stream (list_products
) at the end of the day.
Depending on the size of the catalog it could take several hours to sync.
List Disputes Stream
The below table contains the configuraiton parameters available for this connector and the default values and available features
Param/Feature | List Disputes |
---|---|
Start Date | NA |
Dispute Start Date Range | Timestamp with TZ (w/ms) |
Refresh token | Auto |
Number of days per request | Max 180 , 7(D) |
Pagination Strategy | Page Token |
Page size | Max 50 (F) |
Full Refresh | ✅ |
Incremental | ✅ (D) |
D: Default configured Value
F: Fixed Value. This means it is not configurable.
Search Invoices Stream
The below table contains the configuraiton parameters available for this connector and the default values and available features
Param/Feature | Search Invoices |
---|---|
Start Date | Timestamp with TZ (no ms) |
Dispute Start Date Range | NA |
Refresh token | Auto |
Number of days per request | ND |
Pagination Strategy | Page Number |
Page size | Max 100 (F) |
Full Refresh | ✅ (D) |
Incremental | ❌ |
D: Default configured Value
F: Fixed Value. This means it is not configurable.
ND: Not Defined in the source.
The start_end
from the configuration, is passed to the body of the request and uses the creation_date_range.start
and creation_date_range.end
. More information in the Paypal Developer API documentation.
List Payments Stream
The below table contains the configuraiton parameters available for this connector and the default values and available features.
Param/Feature | List Payments |
---|---|
Start Date | Timestamp with TZ (no ms) |
Dispute Start Date Range | NA |
Refresh token | Auto |
Number of days per request | NA , 7(D) |
Pagination Strategy | Page Cursor |
Page size | Max 20 (F) |
Full Refresh | ✅ |
Incremental | ✅ (D) |
D: Default configured Value
F: Fixed Value. This means it is not configurable.
Performance Considerations
- Data Availability: It takes a maximum of 3 hours for executed transactions to appear in the list transactions call.
- Number of days per request: The maximum supported date range is 31 days.
- Historical Data: You can't retrieve more than 3yrs of data for the
transactions
stream. Fordispute_start_date
you can only retrieve 180 days of data (see specifications per stream) records_per_request
: The maximum number of records in a single request are 10K (API Server restriction)page_size
: The maximum page size is 500. This has been configured by default.requests_per_minute
= The maximum limit is 50 requests per minute from IP address to all endpoint (API Server restriction).
Data type map
Integration Type | Airbyte Type |
---|---|
string | string |
number | number |
array | array |
object | object |