# Paystack

### Connect to Paystack

1\. Go to the **Resources** page and click the <img src="https://3574406564-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MB_fx7PCUqvFEdrucJC%2Fuploads%2Fct5RJC2cjHhrvymOWWGx%2Fimage.png?alt=media&#x26;token=b4ff0c44-5510-49d1-97dd-a155af254113" alt="" data-size="line">  button.&#x20;

2\. Select **Paystack**.

3\. Enter your account credentials and click **Connect**.&#x20;

* **`Lookback Window (in days)`**
* **`Secret Key`**: Please visit [here](https://dashboard.paystack.com/#/settings/developer) to find your secret key.&#x20;
* **`Start Date`**: Retrieve data starting from a specific date and time. The date should be defined in UTC date and time.

4\. Choose the tables you want to import. If there are any other required forms or fields, ensure that you fill them out with the necessary information to proceed.

5\. Click **Test** to verify the connection and see a preview of the connected data.

6\. Click **Create Resource** to finish the setup. You will be redirected to the resource page where you can see your newly connected resource displayed at the top.

### How do I get a new secret key?

1. On your Dashboard, go to the [settings](https://dashboard.paystack.com/#/settings/developer) page and click on '[*API Keys & Webhooks*](https://dashboard.paystack.com/#/settings/developer)'.
2. Underneath both your live and test secret keys, you will see the option to *'Generate new secret key'*. Click on this.\
   \
   \ <br>

   <figure><img src="https://support.paystack.com/hc/article_attachments/6522787563036" alt=""><figcaption></figcaption></figure>
3. When you select this, you have the option to choose when your old key expires and provide a password to complete the process. Once you're done, hit *'Generate new secret key'.*

### Supported table <a href="#output-schema" id="output-schema"></a>

* [Customers](https://paystack.com/docs/api/#customer-list) (Incremental)&#x20;
* [Invoices](https://paystack.com/docs/api/#invoice-list) (Incremental)
* [Subscriptions](https://paystack.com/docs/api/#subscription-list) (Incremental)&#x20;
* [Transactions](https://paystack.com/docs/api/#transaction-list) (Incremental)&#x20;
