{"id":7822,"date":"2019-08-24T08:36:05","date_gmt":"2019-08-24T08:36:05","guid":{"rendered":"https:\/\/zappysys.com\/blog\/?p=7822"},"modified":"2019-09-14T05:21:15","modified_gmt":"2019-09-14T05:21:15","slug":"read-paypal-api-data-ssis","status":"publish","type":"post","link":"https:\/\/zappysys.com\/blog\/read-paypal-api-data-ssis\/","title":{"rendered":"How to read PayPal API data in SSIS"},"content":{"rendered":"<h2><span id=\"Introduction\">Introduction<\/span><\/h2>\n<p><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/08\/paypal-logo-preview.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-7825 size-thumbnail\" title=\"PayPal\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/08\/paypal-logo-preview-150x150.png\" alt=\"PayPal\" width=\"150\" height=\"150\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/08\/paypal-logo-preview-150x150.png 150w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/08\/paypal-logo-preview-300x300.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/08\/paypal-logo-preview.png 512w\" sizes=\"(max-width: 150px) 100vw, 150px\" \/><\/a>In this article, we will see how to read PayPal API data in SSIS and load into SQL Server.\u00a0This blog mainly focuses on SSIS approach but steps mentioned to call PayPal APIs can be useful for any developer regardless of which programming language or tool set you use. We will also see\u00a0How to send basic Authorization header along with body in OAuth2.<\/p>\n<p>We will go through the steps to read data from PayPal Transactions and Load into MS SQL Server.<\/p>\n<p>In nutshell,\u00a0this post will focus on how to make PayPal API Call using SSIS.<\/p>\n<p>&nbsp;<\/p>\n<h2><span id=\"Prerequisites\">Prerequisites<\/span><\/h2>\n<p>Before we perform the steps listed in this article, you will need to make sure the following prerequisites are met:<\/p>\n<ol>\n<li><abbr title=\"SQL Server Integration Services\">SSIS<\/abbr>\u00a0designer installed.\u00a0Sometimes it is referred to as\u00a0<abbr title=\"Business Intelligence Development Studio\">BIDS<\/abbr>\u00a0or\u00a0<abbr title=\"SQL Server Data Tools\">SSDT<\/abbr>\u00a0(<a href=\"https:\/\/docs.microsoft.com\/en-us\/sql\/ssdt\/download-sql-server-data-tools-ssdt\" target=\"_blank\" rel=\"noopener\">download it from Microsoft site<\/a>).<\/li>\n<li>Basic knowledge of SSIS package\u00a0development using\u00a0<em>Microsoft SQL Server Integration Services<\/em>.<\/li>\n<li>Make sure\u00a0<a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/\" target=\"_blank\" rel=\"noopener\">ZappySys SSIS PowerPack<\/a>\u00a0is installed (<a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/download\/\" target=\"_blank\" rel=\"noopener\">download it<\/a>).<\/li>\n<li>Credentials of PayPal API. Click\u00a0<a href=\"https:\/\/developer.paypal.com\/developer\/applications\/\" target=\"_blank\" rel=\"noopener\">here<\/a>\u00a0to create API.<\/li>\n<\/ol>\n<h2><span id=\"What_is_Walmart\"><span id=\"What_is_WordPress\">What is PayPal?<\/span><\/span><\/h2>\n<p><a href=\"https:\/\/www.paypal.com\" target=\"_blank\" rel=\"noopener\">PayPal<\/a> is an American company operating a worldwide online payments system that supports online money transfers and serves as an electronic alternative to traditional paper methods like checks and money orders. The company operates as a payment processor for online vendors, auction sites, and many other commercial users, for which it charges a fee in exchange for benefits such as one-click transactions and password memory. PayPal&#8217;s payment system, also called PayPal, is considered a type of payment rail.<\/p>\n<h2 class=\"dx-content-title\">Get Started with PayPal API<\/h2>\n<p>If you have need to automate PayPal operations (e.g. read \/ write \/ update \/ delete ) then you can use PayPal REST API. Before you can integrate a PayPal product or solution, you must set up your development environment to get OAuth 2.0 client ID and secret credentials for the sandbox and live environments. You exchange these credentials for an access token that authorizes your REST API calls. To test your web and mobile apps, you create sandbox accounts.<\/p>\n<h3 id=\"get-credentials\" class=\"dx-anchor\">Get PayPal credentials<\/h3>\n<p>To generate OAuth 2.0 credentials for the sandbox and live environments:<\/p>\n<ol>\n<li><a href=\"https:\/\/www.paypal.com\/signin?returnUri=https%3A%2F%2Fdeveloper.paypal.com%2Fdeveloper%2Fapplications\" target=\"_blank\" rel=\"noopener\"><strong>Log into Dashboard<\/strong><\/a>\u00a0and type your PayPal personal or business account email and password.<\/li>\n<li>In the\u00a0<strong>REST API apps<\/strong>\u00a0section, click\u00a0<strong>Create App<\/strong>. The purpose of this app is to generate your credentials.<\/li>\n<li>Type a name for your app and click\u00a0<strong>Create App<\/strong>. The page shows your sandbox app information, which includes your credentials.<br \/>\n<blockquote class=\"dx-blockquote-note\"><p><strong>Note:<\/strong>\u00a0To show your live app information, toggle to\u00a0<strong>Live<\/strong>.<\/p><\/blockquote>\n<\/li>\n<li>Copy and save the client ID and secret for your sandbox app.\n<div id=\"attachment_7837\" style=\"width: 730px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/08\/paypal-client-ID-and-secret.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-7837\" class=\"wp-image-7837 size-medium_large\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/08\/paypal-client-ID-and-secret-768x443.png\" alt=\"PayPal Client ID and Secret\" width=\"720\" height=\"415\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/08\/paypal-client-ID-and-secret-768x443.png 768w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/08\/paypal-client-ID-and-secret-300x173.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/08\/paypal-client-ID-and-secret.png 940w\" sizes=\"(max-width: 720px) 100vw, 720px\" \/><\/a><p id=\"caption-attachment-7837\" class=\"wp-caption-text\">PayPal Client ID and Secret<\/p><\/div><\/li>\n<li>Review your app details and save your app.<\/li>\n<\/ol>\n<h2><span id=\"Read_Walmart_API_Data_using_SSIS_JSON_Source\"><span id=\"Read_data_fromWordPressusing_SSIS_JSON_Source\">Read PayPal API Data using SSIS JSON Source<\/span><\/span><\/h2>\n<p>Let\u2019s start with an example. We use SSIS JSON Source component to make the call to PayPal API, we will read PayPal data and load into SQL Server.\u00a0First of All, Open Visual Studio and Create New SSIS Package Project.<\/p>\n<p>In REST API calls, include the URL to the API service for the environment:<\/p>\n<ul class=\"compact\">\n<li>Sandbox:\u00a0<code>https:\/\/api.sandbox.paypal.com<\/code><\/li>\n<li>Live:\u00a0<code>https:\/\/api.paypal.com<\/code><\/li>\n<\/ul>\n<h3><span id=\"GetDynamic_Token_Configure_ZS-HTTP_Connection\"><span id=\"Step-1_GetDynamic_Token_Configure_ZS-HTTP_Connection\">Create Basic OAuth Client Credentials Grant (Configure ZS-OAuth Connection)<\/span><\/span><\/h3>\n<p>To get API response data using SOAP \/ REST API call, you\u00a0need\u00a0to get an API Token from your\u00a0token request URL. Follow the steps mentioned below to get API Token:<\/p>\n<ol>\n<li>Now, Right Click on Connection Managers Window, and one Context menu appears for creating a new\u00a0connection manager.\n<div id=\"attachment_4382\" style=\"width: 730px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/07\/ssis-connection-manager-create-new-connection-e1531164541889.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-4382\" class=\"wp-image-4382 size-medium_large\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/07\/ssis-connection-manager-create-new-connection-768x462.png\" alt=\"Connection Manager Window: Create New Connection\" width=\"720\" height=\"433\" \/><\/a><p id=\"caption-attachment-4382\" class=\"wp-caption-text\">Connection Manager Window: Create New Connection<\/p><\/div><\/li>\n<li>Select ZS-OAuth Connection Manager from the list of Connection Managers and, double-click on it or click on Add button to add a new Connection Manager. By Default, The created connection manager is of Package-Level. You can set Project Level Connection manager too If you want.\n<div id=\"attachment_4724\" style=\"width: 681px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/ssis-connection-managers-list-select-zs-oauth-connection-manager.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-4724\" class=\"wp-image-4724 size-full\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/ssis-connection-managers-list-select-zs-oauth-connection-manager.png\" alt=\"SSIS Connection Maangers List: Select O-AUTH Connection Manager\" width=\"671\" height=\"549\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/ssis-connection-managers-list-select-zs-oauth-connection-manager.png 671w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/ssis-connection-managers-list-select-zs-oauth-connection-manager-300x245.png 300w\" sizes=\"(max-width: 671px) 100vw, 671px\" \/><\/a><p id=\"caption-attachment-4724\" class=\"wp-caption-text\">SSIS Connection Mangers List: Select O-AUTH Connection Manager<\/p><\/div><\/li>\n<li>In the SSIS ZS OAuth Connection Manager, Select Provider as Custom, select version as OAuth2 and select Grant Type as\u00a0 Client Credentials Grant. Enter the credentials and access token url and test the connection.\n<pre class=\"lang:default decode:true \">https:\/\/api.sandbox.paypal.com\/v1\/oauth2\/token<\/pre>\n<p>&nbsp;<\/p>\n<div id=\"attachment_7841\" style=\"width: 671px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/08\/ssis-oauth-basic-client-credential-grant.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-7841\" class=\"wp-image-7841 size-full\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/08\/ssis-oauth-basic-client-credential-grant.png\" alt=\"ZS OAuth Connection \u2013 Client Credentials Grant \" width=\"661\" height=\"694\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/08\/ssis-oauth-basic-client-credential-grant.png 661w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/08\/ssis-oauth-basic-client-credential-grant-286x300.png 286w\" sizes=\"(max-width: 661px) 100vw, 661px\" \/><\/a><p id=\"caption-attachment-7841\" class=\"wp-caption-text\">ZS OAuth Connection \u2013 Client Credentials Grant<\/p><\/div><\/li>\n<li>Click on OK button to save OAuth Connection configure settings.<\/li>\n<\/ol>\n<p>That\u2019s it we have successfully configured Connection for PayPal API in SSIS. In the next section, we will see how to use this connection and read various data from PayPal API.<\/p>\n<h3>Read\u00a0<span id=\"Read_Walmart_API_Data_in_SSIS\"><span id=\"Read_YouTube_Playlists_in_SSIS\">PayPal\u00a0<\/span><\/span><span id=\"Read_Walmart_API_Data_in_SSIS\"><span id=\"Read_YouTube_Playlists_in_SSIS\">API Data in SSIS<\/span><\/span><\/h3>\n<p>Once we have done creating HTTP Connection Manager we can move forward to read PayPal API data inside Data Flow. So lets Configure SSIS JSON \/ REST API Source.<\/p>\n<ol>\n<li>First\u00a0of All, Drag and drop Data Flow Task from SSIS Toolbox and double click it to edit.\n<div id=\"attachment_7934\" style=\"width: 470px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/09\/ssis-drag-drop-data-flow-task.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-7934\" class=\"size-full wp-image-7934\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/09\/ssis-drag-drop-data-flow-task.png\" alt=\"Drag and Drop SSIS Data Flow Task from SSIS Toolbox\" width=\"460\" height=\"155\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/09\/ssis-drag-drop-data-flow-task.png 460w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/09\/ssis-drag-drop-data-flow-task-300x101.png 300w\" sizes=\"(max-width: 460px) 100vw, 460px\" \/><\/a><p id=\"caption-attachment-7934\" class=\"wp-caption-text\">Drag and Drop : SSIS Data Flow Task from SSIS Toolbox<\/p><\/div><\/li>\n<li>From the SSIS toolbox drag and drop JSON Source on the dataflow designer surface.\n<div id=\"attachment_3766\" style=\"width: 604px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/ssis-json-source-for-getting-basic-profile-from-linkedin.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3766\" class=\"wp-image-3766 size-full\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/ssis-json-source-for-getting-basic-profile-from-linkedin.png\" alt=\"Drag and Drop JSON Source Component\" width=\"594\" height=\"268\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/ssis-json-source-for-getting-basic-profile-from-linkedin.png 594w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/ssis-json-source-for-getting-basic-profile-from-linkedin-300x135.png 300w\" sizes=\"(max-width: 594px) 100vw, 594px\" \/><\/a><p id=\"caption-attachment-3766\" class=\"wp-caption-text\">Drag and Drop JSON Source Component<\/p><\/div><\/li>\n<li>Double click JSON Source and enter the following URL as below to get invoices and select that created OAuth Connection.\n<pre class=\"lang:default decode:true \">https:\/\/api.sandbox.paypal.com\/v1\/invoicing\/invoices?page=0&amp;page_size=100&amp;total_count_required=true<\/pre>\n<div id=\"attachment_7842\" style=\"width: 730px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/08\/ssis-json-source-set-url-connection.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-7842\" class=\"wp-image-7842 size-medium_large\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/08\/ssis-json-source-set-url-connection-768x682.png\" alt=\"SSIS JSON Source\" width=\"720\" height=\"639\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/08\/ssis-json-source-set-url-connection-768x682.png 768w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/08\/ssis-json-source-set-url-connection-300x266.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/08\/ssis-json-source-set-url-connection.png 826w\" sizes=\"(max-width: 720px) 100vw, 720px\" \/><\/a><p id=\"caption-attachment-7842\" class=\"wp-caption-text\">SSIS JSON Source<\/p><\/div><\/li>\n<li>Now Go to Pagination tab select mode as Url Parameter and add indicator as <span class=\"lang:default decode:true crayon-inline \">page<\/span>\u00a0 and Add the increment value same as <span class=\"lang:default decode:true crayon-inline \">page_size<\/span>\u00a0 value we set in url, there for in our case we set 100. For pagination call please click\u00a0here\u00a0for reference to this link.\n<div id=\"attachment_7843\" style=\"width: 730px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/08\/ssis-paypal-pagination.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-7843\" class=\"size-medium_large wp-image-7843\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/08\/ssis-paypal-pagination-768x682.png\" alt=\"PayPal Pagination\" width=\"720\" height=\"639\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/08\/ssis-paypal-pagination-768x682.png 768w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/08\/ssis-paypal-pagination-300x266.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/08\/ssis-paypal-pagination.png 826w\" sizes=\"(max-width: 720px) 100vw, 720px\" \/><\/a><p id=\"caption-attachment-7843\" class=\"wp-caption-text\">PayPal Pagination<\/p><\/div><\/li>\n<li>Select the desire Array Filter and click on preview.\n<div id=\"attachment_7844\" style=\"width: 730px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/08\/ssis-paypal-preview.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-7844\" class=\"size-medium_large wp-image-7844\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/08\/ssis-paypal-preview-768x528.png\" alt=\"PayPal Preview\" width=\"720\" height=\"495\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/08\/ssis-paypal-preview-768x528.png 768w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/08\/ssis-paypal-preview-300x206.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/08\/ssis-paypal-preview-1024x705.png 1024w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/08\/ssis-paypal-preview.png 1071w\" sizes=\"(max-width: 720px) 100vw, 720px\" \/><\/a><p id=\"caption-attachment-7844\" class=\"wp-caption-text\">PayPal Preview<\/p><\/div><\/li>\n<li>That\u2019s it, you are ready to load PayPal API Data into SQL Server.<\/li>\n<\/ol>\n<h3><span id=\"Load_Walmart_API_data_into_SQL_Server\">Load PayPal API data into SQL Server<\/span><\/h3>\n<div class=\"content_block\" id=\"custom_post_widget-5617\"><p>ZappySys SSIS PowerPack makes it easy to load data from various sources such as REST, SOAP, JSON, XML, CSV or from other source into SQL Server, or PostgreSQL, or Amazon Redshift, or other  targets. The <strong>Upsert Destination<\/strong> component allows you to automatically insert new records and update existing ones based on key columns. Below are the detailed steps to configure it.<\/p>\r\n<h3>Step 1: Add Upsert Destination to Data Flow<\/h3>\r\n<ol>\r\n<li>Drag and drop the <strong>Upsert Destination<\/strong> component from the SSIS Toolbox.<\/li>\r\n<li>Connect your source component (e.g., JSON \/ REST \/ Other Source) to the Upsert Destination.<\/li>\r\n<\/ol>\r\n<div class=\"wp-caption aligncenter\">\r\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2017\/08\/ssis-data-flow-drag-drop-upsert-destination.png\">\r\n<img loading=\"lazy\" decoding=\"async\" class=\"size-full\" alt=\"\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2017\/08\/ssis-data-flow-drag-drop-upsert-destination.png\" \/><\/a>\r\n<p class=\"wp-caption-text\">SSIS - Data Flow - Drang and Drop Upsert Destination Component<\/p>\r\n<\/div>\r\n<h3>Step 2: Configure Target Connection<\/h3>\r\n<ol>\r\n<li>Double-click the <strong>Upsert Destination<\/strong> component to open the configuration window.<\/li>\r\n<li>Under <strong>Connection<\/strong>, select an existing target connection or click <strong>NEW<\/strong> to create a new connection.\r\n<ul>\r\n<li>Example: SQL Server, or PostgreSQL, or Amazon Redshift.<\/li>\r\n<\/ul>\r\n<\/li>\r\n<\/ol>\r\n<h3>Step 3: Select or Create Target Table<\/h3>\r\n<ol>\r\n<li>In the <strong>Target Table<\/strong> dropdown, select the table where you want to load data.<\/li>\r\n<li>Optionally, click <strong>NEW<\/strong> to create a new table based on the source columns.<\/li>\r\n<\/ol>\r\n<div class=\"wp-caption aligncenter\">\r\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/09\/upsert-destination-configuration.png\">\r\n<img loading=\"lazy\" decoding=\"async\" class=\"size-full\" alt=\"\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/09\/upsert-destination-configuration.png\" \/><\/a>\r\n<p class=\"wp-caption-text\">Configure SSIS Upsert Destination Connection - Loading data (REST \/ SOAP \/ JSON \/ XML \/CSV) into SQL Server or other target using SSIS<\/p>\r\n<\/div>\r\n<h3>Step 4: Map Columns<\/h3>\r\n<ol>\r\n<li>Go to the <strong>Mappings<\/strong> tab.<\/li>\r\n<li>Click <strong>Auto Map<\/strong> to map source columns to target columns by name.<\/li>\r\n<li>Ensure you <strong>check the Primary key column(s)<\/strong> that will determine whether a record is inserted or updated.<\/li>\r\n<li>You can manually adjust the mappings if necessary.<\/li>\r\n<\/ol>\r\n <div class=\"wp-caption aligncenter\">\r\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/09\/upsert-destination-key.png\">\r\n<img loading=\"lazy\" decoding=\"async\" class=\"size-full\" alt=\"\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/09\/upsert-destination-key.png\" \/><\/a>\r\n<p class=\"wp-caption-text\">SSIS Upsert Destination - Columns Mappings<\/p>\r\n<\/div>\r\n<h3>Step 5: Save Settings<\/h3>\r\n<ul>\r\n<li>Click <strong>OK<\/strong> to save the Upsert Destination configuration.<\/li>\r\n<\/ul>\r\n<h3>Step 6: Optional: Add Logging or Analysis<\/h3>\r\n<ul>\r\n<li>You may add extra destination components to log the number of inserted vs. updated records for monitoring or auditing purposes.<\/li>\r\n<\/ul>\r\n<h3>Step 7: Execute the Package<\/h3>\r\n<ul>\r\n<li>Run your SSIS package and verify that the data is correctly inserted and updated in the target table.<\/li>\r\n<\/ul>\r\n<div class=\"wp-caption aligncenter\">\r\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/12\/ssis-upsert-destination-execute.png\">\r\n<img loading=\"lazy\" decoding=\"async\" class=\"size-full\" alt=\"\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/12\/ssis-upsert-destination-execute.png\" \/><\/a>\r\n<p class=\"wp-caption-text\">SSIS Upsert Destination Execution<\/p>\r\n<\/div><\/div>\n<h2><span id=\"Conclusion\">Conclusion<\/span><\/h2>\n<p>After all, we saw you how to extract information from REST API such as PayPal REST API using HTTP Connection and load into SQL Server. We also learned techniques like How to get Dynamic Token using HTTP Connection. To explore many other scenarios not discussed in this article download\u00a0<a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/\">SSIS PowerPack from here (includes 70+ Components)<\/a>.<\/p>\n<h2><span id=\"References\">References<\/span><\/h2>\n<p>Finally, you can use the following links for more information:<\/p>\n<ul>\n<li>Help File:\u00a0<a href=\"https:\/\/zappysys.com\/onlinehelp\/ssis-powerpack\/scr\/json-source.htm\" target=\"_blank\" rel=\"noopener\">JSON Source(REST API or File)<\/a>,\u00a0<a href=\"https:\/\/zappysys.com\/onlinehelp\/ssis-powerpack\/scr\/ssis-logging-task.htm\" target=\"_blank\" rel=\"noopener\">ZS Logging Task<\/a><\/li>\n<li><a href=\"https:\/\/developer.paypal.com\/docs\/api\/overview\/\" target=\"_blank\" rel=\"noopener\">PayPal API<\/a><\/li>\n<li><a href=\"https:\/\/zappysys.com\/blog\/call-soap-rest-api-using-dynamic-token-ssis\/\" target=\"_blank\" rel=\"noopener\">Dynamic token generation<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Introduction In this article, we will see how to read PayPal API data in SSIS and load into SQL Server.\u00a0This blog mainly focuses on SSIS approach but steps mentioned to call PayPal APIs can be useful for any developer regardless of which programming language or tool set you use. We will also see\u00a0How to send [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":7825,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[176,225,17,145],"tags":[6,60,25,548,12],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\r\n<title>How to read PayPal API data in SSIS | ZappySys Blog<\/title>\r\n<meta name=\"description\" content=\"How to read PayPal API data in SSIS, We will go through the steps to read data from PayPal Transactions and Load into MS SQL Server.\" \/>\r\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\r\n<link rel=\"canonical\" href=\"https:\/\/zappysys.com\/blog\/read-paypal-api-data-ssis\/\" \/>\r\n<meta property=\"og:locale\" content=\"en_US\" \/>\r\n<meta property=\"og:type\" content=\"article\" \/>\r\n<meta property=\"og:title\" content=\"How to read PayPal API data in SSIS | ZappySys Blog\" \/>\r\n<meta property=\"og:description\" content=\"How to read PayPal API data in SSIS, We will go through the steps to read data from PayPal Transactions and Load into MS SQL Server.\" \/>\r\n<meta property=\"og:url\" content=\"https:\/\/zappysys.com\/blog\/read-paypal-api-data-ssis\/\" \/>\r\n<meta property=\"og:site_name\" content=\"ZappySys Blog\" \/>\r\n<meta property=\"article:published_time\" content=\"2019-08-24T08:36:05+00:00\" \/>\r\n<meta property=\"article:modified_time\" content=\"2019-09-14T05:21:15+00:00\" \/>\r\n<meta property=\"og:image\" content=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/08\/paypal-logo-preview.png\" \/>\r\n\t<meta property=\"og:image:width\" content=\"512\" \/>\r\n\t<meta property=\"og:image:height\" content=\"512\" \/>\r\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\r\n<meta name=\"author\" content=\"ZappySys\" \/>\r\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\r\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"ZappySys\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\r\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/zappysys.com\/blog\/read-paypal-api-data-ssis\/\",\"url\":\"https:\/\/zappysys.com\/blog\/read-paypal-api-data-ssis\/\",\"name\":\"How to read PayPal API data in SSIS | ZappySys Blog\",\"isPartOf\":{\"@id\":\"https:\/\/zappysys.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/zappysys.com\/blog\/read-paypal-api-data-ssis\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/zappysys.com\/blog\/read-paypal-api-data-ssis\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/08\/paypal-logo-preview.png\",\"datePublished\":\"2019-08-24T08:36:05+00:00\",\"dateModified\":\"2019-09-14T05:21:15+00:00\",\"author\":{\"@id\":\"https:\/\/zappysys.com\/blog\/#\/schema\/person\/c9dc782c929d0027e2e87e3951ce9d35\"},\"description\":\"How to read PayPal API data in SSIS, We will go through the steps to read data from PayPal Transactions and Load into MS SQL Server.\",\"breadcrumb\":{\"@id\":\"https:\/\/zappysys.com\/blog\/read-paypal-api-data-ssis\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/zappysys.com\/blog\/read-paypal-api-data-ssis\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/zappysys.com\/blog\/read-paypal-api-data-ssis\/#primaryimage\",\"url\":\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/08\/paypal-logo-preview.png\",\"contentUrl\":\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/08\/paypal-logo-preview.png\",\"width\":512,\"height\":512,\"caption\":\"PayPal\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/zappysys.com\/blog\/read-paypal-api-data-ssis\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/zappysys.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to read PayPal API data in SSIS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/zappysys.com\/blog\/#website\",\"url\":\"https:\/\/zappysys.com\/blog\/\",\"name\":\"ZappySys Blog\",\"description\":\"SSIS \/ ODBC Drivers \/ API Connectors for JSON, XML, Azure, Amazon AWS, Salesforce, MongoDB and more\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/zappysys.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/zappysys.com\/blog\/#\/schema\/person\/c9dc782c929d0027e2e87e3951ce9d35\",\"name\":\"ZappySys\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/zappysys.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/076a738938c19d459fbfe125c759a0ea?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/076a738938c19d459fbfe125c759a0ea?s=96&d=mm&r=g\",\"caption\":\"ZappySys\"},\"url\":\"https:\/\/zappysys.com\/blog\/author\/hshah\/\"}]}<\/script>\r\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to read PayPal API data in SSIS | ZappySys Blog","description":"How to read PayPal API data in SSIS, We will go through the steps to read data from PayPal Transactions and Load into MS SQL Server.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/zappysys.com\/blog\/read-paypal-api-data-ssis\/","og_locale":"en_US","og_type":"article","og_title":"How to read PayPal API data in SSIS | ZappySys Blog","og_description":"How to read PayPal API data in SSIS, We will go through the steps to read data from PayPal Transactions and Load into MS SQL Server.","og_url":"https:\/\/zappysys.com\/blog\/read-paypal-api-data-ssis\/","og_site_name":"ZappySys Blog","article_published_time":"2019-08-24T08:36:05+00:00","article_modified_time":"2019-09-14T05:21:15+00:00","og_image":[{"width":512,"height":512,"url":"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/08\/paypal-logo-preview.png","type":"image\/png"}],"author":"ZappySys","twitter_card":"summary_large_image","twitter_misc":{"Written by":"ZappySys","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/zappysys.com\/blog\/read-paypal-api-data-ssis\/","url":"https:\/\/zappysys.com\/blog\/read-paypal-api-data-ssis\/","name":"How to read PayPal API data in SSIS | ZappySys Blog","isPartOf":{"@id":"https:\/\/zappysys.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/zappysys.com\/blog\/read-paypal-api-data-ssis\/#primaryimage"},"image":{"@id":"https:\/\/zappysys.com\/blog\/read-paypal-api-data-ssis\/#primaryimage"},"thumbnailUrl":"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/08\/paypal-logo-preview.png","datePublished":"2019-08-24T08:36:05+00:00","dateModified":"2019-09-14T05:21:15+00:00","author":{"@id":"https:\/\/zappysys.com\/blog\/#\/schema\/person\/c9dc782c929d0027e2e87e3951ce9d35"},"description":"How to read PayPal API data in SSIS, We will go through the steps to read data from PayPal Transactions and Load into MS SQL Server.","breadcrumb":{"@id":"https:\/\/zappysys.com\/blog\/read-paypal-api-data-ssis\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/zappysys.com\/blog\/read-paypal-api-data-ssis\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/zappysys.com\/blog\/read-paypal-api-data-ssis\/#primaryimage","url":"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/08\/paypal-logo-preview.png","contentUrl":"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/08\/paypal-logo-preview.png","width":512,"height":512,"caption":"PayPal"},{"@type":"BreadcrumbList","@id":"https:\/\/zappysys.com\/blog\/read-paypal-api-data-ssis\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/zappysys.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to read PayPal API data in SSIS"}]},{"@type":"WebSite","@id":"https:\/\/zappysys.com\/blog\/#website","url":"https:\/\/zappysys.com\/blog\/","name":"ZappySys Blog","description":"SSIS \/ ODBC Drivers \/ API Connectors for JSON, XML, Azure, Amazon AWS, Salesforce, MongoDB and more","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/zappysys.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/zappysys.com\/blog\/#\/schema\/person\/c9dc782c929d0027e2e87e3951ce9d35","name":"ZappySys","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/zappysys.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/076a738938c19d459fbfe125c759a0ea?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/076a738938c19d459fbfe125c759a0ea?s=96&d=mm&r=g","caption":"ZappySys"},"url":"https:\/\/zappysys.com\/blog\/author\/hshah\/"}]}},"_links":{"self":[{"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/posts\/7822"}],"collection":[{"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/comments?post=7822"}],"version-history":[{"count":22,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/posts\/7822\/revisions"}],"predecessor-version":[{"id":8007,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/posts\/7822\/revisions\/8007"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/media\/7825"}],"wp:attachment":[{"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/media?parent=7822"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/categories?post=7822"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/tags?post=7822"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}