# How to Connect to Stripe

This guide will help you connect your Stripe account to Apideck's Unified API. Stripe is a widely used payment processing platform that provides APIs for online payments, invoicing, billing, and financial reporting. Through Stripe's API, you can access accounting-related data including customers, invoices, credit notes, payments, expenses, refunds, tax rates, products, and bank accounts.

## Prerequisites

Before you begin, make sure you have:

- An active Stripe account
- Admin or owner access to the Stripe account

## Connection Steps

### Step 1: Initiate the Connection

In the Apideck Vault, select Stripe as your integration. You will be redirected to Stripe's authorization page.

### Step 2: Authorize Access

On the Stripe authorization page:

- Log in to your Stripe account if prompted
- Review the permissions being requested
- Click **Authorize access** to grant Apideck access to your Stripe data

### Step 3: Confirm the Connection

After authorizing, you will be redirected back to Apideck. The connection status will show as **connected** once the OAuth flow completes successfully.

## What Data Is Accessed

Once connected, Apideck can access the following Stripe resources through the Accounting API:

- **Customers** - Customer records and contact details
- **Invoices** - Invoice data including line items and payment status
- **Credit Notes** - Credit note records and allocations
- **Payments** - Payment intent records and transaction details
- **Expenses** - Charge records mapped as expenses
- **Refunds** - Refund transaction records
- **Tax Rates** - Tax rate configurations
- **Products** - Product catalog (mapped as invoice items)
- **Bank Accounts** - External bank account records
- **Company Info** - Your Stripe account details

## Troubleshooting

### Connection Failed

If the OAuth authorization fails:

- Ensure you are logged in to the correct Stripe account
- Check that your Stripe account is fully activated (not in restricted mode)
- Try clearing your browser cookies and attempting the connection again

### Missing Data

If certain data is not appearing:

- Verify that the relevant features are enabled in your Stripe account (e.g., Stripe Invoicing for invoice data)
- Check that you have the appropriate permissions on your Stripe account
- Some data types require Stripe to be used in live mode

## Additional Resources

- [Stripe Documentation](https://stripe.com/docs)
- [Stripe Dashboard](https://dashboard.stripe.com)
- [Apideck Documentation](https://developers.apideck.com/apis/accounting/stripe)
