> ## Documentation Index
> Fetch the complete documentation index at: https://docs.antei.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Setup

> Step-by-step guide to connecting your Stripe account to Antei securely and reliably.

<Icon icon="sign-post" size={22} color="#4B5563" />

# Stripe – Integration Setup

This guide outlines how to connect your Stripe account to Antei. Once connected, Antei syncs critical billing data and enables jurisdiction-aware checkout, invoice generation, and tax workflows.

***

<Icon icon="lock" size={22} color="#4B5563" />

## Authentication Method

Antei uses **OAuth 2.0 authorization** to securely connect with your Stripe account.

* **Type:** OAuth 2.0 (Authorization Code Flow)
* **Scopes Requested:**
  * Read access to invoices, customers, subscriptions, pricing, products
  * Write access to create invoices, checkouts, and attach tax rates
* **Token Management:** Tokens are encrypted and auto-refreshed
* **Security:** No access to payment methods or card data

> 🔐 Antei is SOC 2 compliant. All API activity is permissioned and fully logged.

***

<Icon icon="link" size={22} color="#4B5563" />

## Step-by-Step Setup

### 1. Navigate to Integrations → Stripe

In the Antei dashboard, go to **Integrations** and click **Connect Stripe**.

![Connect Stripe Button](https://via.placeholder.com/800x200?text=Connect+Stripe+Button)

***

### 2. Authorize Access via Stripe

You will be redirected to Stripe’s OAuth screen. Approve the listed scopes and select your account.

![Stripe OAuth Screen](https://via.placeholder.com/800x400?text=Stripe+OAuth+Consent+Screen)

***

### 3. Configure Sync Preferences

After authorization, configure your data preferences:

* **Jurisdiction Assignment** – map your Stripe account to a country
* **Sync Window** – choose how far back to sync invoices, purchases, and subscriptions
* **Checkout Options** – optionally predefine tax rules on checkouts and payment links

![Stripe Sync Settings](https://via.placeholder.com/800x300?text=Stripe+Sync+Settings)

> ✅ Antei only syncs required financial metadata. No customer billing credentials are accessed.

***

## Verification & Testing

After setup, Antei performs:

* **API validation** – Ensures access to invoices, subscriptions, and tax rates
* **Webhook test** – Confirms Stripe events are received for real-time actions
* **Audit logging** – All activity recorded under **Settings → Logs**

***

## FAQs

<Icon icon="help-circle" size={18} color="#4B5563" />

**Does Antei access Stripe payment methods?**\
No. Antei does not access card tokens or payment methods. Only metadata required for tax logic is fetched.

**Can I disable write actions like checkout creation?**\
Yes. You can manage action permissions from the Antei dashboard under integration settings.

**What happens if I disconnect?**\
All tokens are revoked. Data sync stops immediately, and you'll be prompted to reauthorize.

**Can I test in a sandbox Stripe account?**\
Yes. Stripe test mode is supported. You can connect both test and live environments as separate entities.

***

## Need Help?

For any setup issues, contact [tech@antei.com](mailto:tech@antei.com).\
→ Visit the [Stripe Integration Scope](/integrations/Stripe/StripeData) page to see all synced and actioned models.
