# Quick Start

Welcome to the Quickstart Guide for Prepay.dev! This guide is designed to help you swiftly integrate and utilize Prepay.dev in your system. By following these steps, you'll gain a comprehensive understanding of how to effectively implement our prepayment solution.

## Step 1: Register in Prepay.dev

To begin, you need to register and set up your Prepay.dev account:

* Visit the prepay.dev signup page.
* Complete the registration form with details like company name, email, and password.
* Verify your email by clicking the confirmation link sent to your inbox.

## Step 2: Connect to Stripe

Integrate your Stripe account with Prepay.dev:

* Log in to your Prepay.dev dashboard.
* Go to the 'Stripe Integration' section.
* Follow the instructions to connect your Prepay.dev account with your Stripe account.

## Step 3: API Key Generation

Generate an API key for secure API interactions:

* In the dashboard, navigate to the 'API Keys' section.
* Click 'Create New API Key'.
* Save your API key securely, as it's crucial for authenticating your API requests.

## Step 4: Install SDK

For smoother integration, use our SDKs available for various programming languages:

```bash
# For example, to install our Python SDK, you would use:
pip install prepaydev-sdk
```

## Step 5: Create Your First Account

Start by integrating Prepay.dev into your application to manage client accounts:

```python
# Python example for creating a new account
from prepaydev import Client

# Initialize the client
client = Client(api_key='your_api_key_here')

# Create a new prepayment account
account = client.accounts.create(client_id='stripe_customer_id')
print(f"New account created: {account.id}")
```

Refer to our [API Reference](https://prepay.dev/docs/api) for more details on endpoints and parameters.

## Step 6: Make Your First Transaction

Begin managing transactions for your clients:

```python
# Record a service usage
client.accounts.record_usage(account_id=account.id, amount=20)

# Add funds to an account
client.accounts.add_funds(account_id=account.id, amount=50)
```

## Step 7: Configure Automatic Recharge Settings

To ensure uninterrupted service, configure automatic recharge settings for each account:

1. **Enable Auto-Recharge**: Decide whether an account should have automatic recharging enabled.
2. **Set Threshold and Amount**:
   * Define a balance threshold at which auto-recharge should trigger.
   * Specify the recharge amount to be added automatically when the threshold is reached.

```python
# Update recharge settings for an account
client.accounts.update_recharge_settings(
    account_id='account_id',
    autorecharge_enabled=True,
    autorecharge_threshold=50,  # Trigger recharge when balance falls below $50
    autorecharge_amount=100     # Recharge $100 automatically
)
```

Explore this feature to maintain optimal balance levels and prevent service disruptions.

## Step 8: Transfer Funds Between Accounts

Transfer funds easily between accounts of the same Stripe customer:

```python
# Transfer funds from one account to another
client.accounts.transfer_funds(source_account_id='source_id', destination_account_id='dest_id', amount=30)
```

## Step 9: Explore Advanced Features

Now that you're familiar with the basics, delve into more complex functionalities:

* Implement advanced integration techniques.
* Utilize webhooks and notifications for real-time updates.
* Follow security best practices to safeguard your transactions.

## Need Assistance?

If you face any challenges or have questions, you can contact us at <hello@prepay.dev> for direct support.

Happy coding, and welcome to the enhanced world of prepayment solutions with Prepay.dev!

***

This guide offers a clear pathway for new users to get started with Prepay.dev, covering everything from initial setup to conducting transactions and exploring advanced features. It's adaptable to include any additional aspects of your platform as needed.


---

# 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://prepay-dev.gitbook.io/prepay-accounts/quick-start.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.
