# Paystack

### Connect to Paystack

1\. Go to the **Resources** page and click the <img src="/files/luUqNwhjG7IZbheUpaBG" 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;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.acho.io/acho-studio/resources/import-data/paystack.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
